HSTS Bypass Vulnerability in IE Preview
A partial HSTS bypass in Internet Explorer allowed a man-in-the-middle attacker to redirect a user to an HSTS-protected site and then present a self-signed certificate, with IE still offering a 'continue' option that would send the victim's cookies to the attacker.
Published on medium.com
{{media:0}}
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the browser failed to enforce the HSTS rule that blocks users from bypassing certificate errors when a redirect led to an HSTS domain.
Impact
A man-in-the-middle attacker could steal cookies for an HSTS-protected site if the victim clicked through the certificate warning, but this only affected a preview build of Internet Explorer.
What the attacker needed
Victim uses IE 11 on Windows 10 Technical Preview; attacker can intercept network traffic; victim clicks through certificate warning
The fix
Microsoft released a patch to users on June 9, 2015.
How it was found
- A user visits a non-HSTS site over HTTP.
- A man-in-the-middle attacker redirects the request to an HSTS-protected site over HTTPS.
- The attacker intercepts the TLS connection with a self-signed certificate.
- Internet Explorer shows a certificate error page but still offers a 'Continue to this website' option.
- If the user clicks through, the victim's cookies for the HSTS site are sent to the attacker.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
HSTS is a security feature that tells browsers to always use encrypted HTTPS connections for certain sites and never let users click past certificate warnings. This bug meant that if an attacker could redirect you to a protected site, Internet Explorer would still show a 'continue anyway' button, so you could be tricked into sending your login cookies over an insecure connection.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.