Missing HSTS header in https://app.simplenote.com
The website app.simplenote.com does not send the HTTP Strict Transport Security (HSTS) header. An attacker could potentially intercept the initial HTTP request and redirect the user to a malicious site or perform a man-in-the-middle attack.
Originally disclosed on HackerOne
- Disclosed after 33 days
Hi,
Vulnerable Website:
I tested the website using firefox add-on called: Strict Transport Security Detector
https://addons.mozilla.org/en-US/firefox/addon/strict-transport-security-d/
HSTS addresses the following threats:
User bookmarks or manually types http://example.com and is subject to a man-in-the-middle attacker:
HSTS automatically redirects HTTP requests to HTTPS for the target domain
Web application that is intended to be purely HTTPS inadvertently contains HTTP links or serves content over HTTP:
HSTS automatically redirects HTTP requests to HTTPS for the target domain
A man-in-the-middle attacker attempts to intercept traffic from a victim user using an invalid certificate and hopes the user will accept the bad certificate:
HSTS does not allow a user to override the invalid certificate message
more :
HSTS mitigates the following threats.
- HTTP request to an HTTPS site
For example:
- User wants to visit SecureSite.com
- User types SecureSite.com into the address bar
- Browser automatically appends "http://" making the following request: http://SecureSite.com
- Server responds with 301 (permanent redirect) to the following location: https://SecureSite.com
- Browser makes request to above URL
The above scenario allows for a man-in-the-middle attack as a result of the unintentional HTTP request to SecureSite.com. An attacker can leverage a tool such as ssltrip to transparently hijack the HTTP request prior to the 301 redirect. HSTS eliminates this attack window as long as the user previously accessed SecureSite.com over HTTPS and obtained the HSTS header.
Even with HSTS enabled, a user's initial request to SecureSite.com would remain unprotected from attacks. As a result, both Chrome and Mozilla introduced HSTS preload lists. If SecureSite.com is on Chrome's HSTS preload list, a freshly installed Chrome browser will only allow secure connections to that site, even if the user never accessed it before. 2. Insecure link referencing an HSTS enabled site
For example:
- Forum.com includes a link to http://SecureSite.com
- HSTS will automatically convert the link to HTTPS for the HSTS-enabled site
- Invalid Certificate
The following would be considered invalid certificates:
- Self-signed and/or untrusted CA signed certificate
- Expired
- Wrong name specified
references:
http://blog.nvisium.com/2014/04/is-your-site-hsts-enabled.html
https://www.owasp.org/index.php/HTTP_Strict_Transport_Security#Threats
https://developer.mozilla.org/en-US/docs/Web/Security/HTTP_strict_transport_security
https://www.owasp.org/index.php/Test_HTTP_Strict_Transport_Security_(OTG-CONFIG-009)
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could potentially perform a man-in-the-middle attack by intercepting the initial HTTP request before it is redirected to HTTPS, but this only affects users who have not previously visited the site over HTTPS.
What the attacker needed
Victim on same network; victim types http:// URL or follows http link; victim has not previously visited site over HTTPS
The fix
The site should send the HSTS header so browsers redirect HTTP requests to HTTPS.
How it was found
- Visit the website https://app.simplenote.com
- Use a browser add-on that checks for the HSTS header
- Observe that the HSTS header is not present
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 report has not been written yet. The Original tab links to the source.
HSTS is a security header that tells browsers to always use a secure HTTPS connection when visiting a site. Without it, the first request might be sent over insecure HTTP, allowing an attacker on the same network to intercept or redirect it. This report says the header is missing, so that risk exists.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.