4 ms·
Very good point. However, even if the attacker MITMs an HTTP request that would have been redirected, for a site that didn't use HSTS, they won't get cookies m
by JoshTriplett 11y ago
Very good point.
However, even if the attacker MITMs an HTTP request that would have been redirected, for a site that didn't use HSTS, they won't get cookies marked "secure", and they won't get permissions that require HTTPS. So the browser mechanism limiting those permissions to HTTPS still works even in that case, though the user and site both have other problems.
- konklone 11y agoThey won't get secure cookies [for the site they're attacking], though they could plausibly redirect the user to a similar-looking HTTPS domain under their control and get permissions requiring a secure origin.
- JoshTriplett 11y agoTrue, but they won't get permissions that the user grants on a site-by-site basis, which also means the attack can't silently happen in the background.