HSTS doesn't work for non-default ports
Categories
(Core :: Networking, defect)
Tracking
()
Tracking | Status | |
---|---|---|
blocking2.0 | --- | betaN+ |
People
(Reporter: dveditz, Assigned: geekboy)
Details
Reporter | ||
Updated•14 years ago
|
Comment 1•14 years ago
|
||
Reporter | ||
Comment 2•14 years ago
|
||
Comment 3•14 years ago
|
||
Assignee | ||
Comment 4•14 years ago
|
||
Reporter | ||
Comment 5•14 years ago
|
||
Reporter | ||
Comment 6•14 years ago
|
||
Comment 7•14 years ago
|
||
Comment 8•5 years ago
|
||
Okay, but that can't work. Either the port is speaking HTTP, or it's speaking HTTPS. If the port is actually configured to redirect http://server:8080/ to https://server:8443/ , it speaks HTTP, and if the browser rewrites it to https://server:8080/ you're just going to get a protocol error.
So what this system needs is a consistent port mapping convention; like if the http: url has a port number we map it to some other known port number. Then you can have an actual port using http to redirect to the destination, and make it work the same as a browser that is doing
internal port mapping. Since the urls without the port numbers implicitly add (443 - 80) = 363, perhaps the convention should be to
always add 363 to the port number when changing it from http: to https:.
Comment 9•2 years ago
|
||
I tried :
- load by entering URL into URL bar: http://localhost:8080/foo
redirects with status 302 to https://localhost:8443/foo - loads (due to above redirect) https://localhost:8443/foo which has Strict-Transport-Security: max-age=60
- load by entering URL into URL bar: http://localhost:8080/foo
redirects with status 302 to https://localhost:8443/foo
In third step, why does Firefox load the HTTP page instead of going to HTTPS directly?
It seems HSTS is ignored. It also does not match behavior described in comment 0.
I use Firefox 105.0.3 64 bit on Windows 10.
Is this a regression? Bug? Intended?
Description
•