Strict Transport Security Misconfiguration
The server did not send a Strict-Transport-Security header on its HTTPS responses. An attacker on the same network could potentially intercept or manipulate traffic if the application mixes HTTP and HTTPS or if a user is tricked into visiting an HTTP URL.
Originally disclosed on HackerOne
- Triaged in 2 days
- Fixed in 5 months
- Disclosed after 5 months
URL :- https://www.reddapi.com/docs/
Description :- There was no "Strict-Transport-Security" header in the server response.
Remediation detail :- A Strict-Transport-Security HTTP header should be sent with each HTTPS response. The syntax is as follows:
Strict-Transport-Security: max-age=<seconds>[; includeSubDomains]
The parameter max-age gives the time frame for requirement of HTTPS in seconds and should be chosen quite high, e.g. several months. A value below 7776000 is considered as too low by this scanner check. The flag includeSubDomains defines that the policy applies also for sub domains of the sender of the response.
Issue background :- The HTTP Strict Transport Security policy defines a timeframe where a browser must connect to the web server via HTTPS. Without a Strict Transport Security policy the web application may be vulnerable against several attacks: If the web application mixes usage of HTTP and HTTPS, an attacker can manipulate pages in the unsecured area of the application or change redirection targets in a manner that the switch to the secured page is not performed or done in a manner, that the attacker remains between client and server. If there is no HTTP server, an attacker in the same network could simulate a HTTP server and motivate the user to click on a prepared URL by a scoial engineering attack. The protection is effective only for the given amount of time. Multiple occurrence of this header could cause undefined behaviour in browsers and should be avoided.
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
Without this header, if the application mixes HTTP and HTTPS or a user is lured to an HTTP URL, an attacker on the same network could intercept or alter traffic, though the text does not demonstrate a specific exploit.
What the attacker needed
Attacker on same network; user visits HTTP URL or mixed content
The fix
The server should send a Strict-Transport-Security header with a sufficiently long max-age on every HTTPS response.
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.
When you visit a secure website, your browser uses HTTPS to encrypt the connection. A special response header called Strict-Transport-Security tells the browser to always use HTTPS for that site for a set period, so it never falls back to insecure HTTP. Without this header, someone on the same network could pretend to be the website over HTTP and trick the user.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.