session id missing secure flag - Hosted Website
The session cookie was issued without the Secure flag, so the browser could send it over plain HTTP. A man-in-the-middle attacker on an unencrypted connection could capture the session value and take over the account.
- Fixed in under an hour
- Disclosed after 20 days
Hey folks,
Looks like the sessionid cookie handles session id but misses Secure flag. Cookies without this flag will transmitted over unencrypted channel and let's the man in the middle attackers to grab the value.
Attack Vector
- Attacker passes a http:// hosted website link
- Victim clicks the link
- Browser passes the session cookie over http
- MITIM attacker gets the value and take over the account
With the #224287, this made more simpler.
Suggested Fix
Set the Secure flag true for the session id and any other sensitive cookies.
Example h1 reports: https://hackerone.com/reports/58679 https://hackerone.com/reports/6877
Attachments

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
Root cause
Likely the session cookie was set without the Secure attribute, allowing it to be sent over unencrypted HTTP.
Impact
A man-in-the-middle attacker could capture the session cookie and take over the victim's account, though this requires the victim to be on an insecure connection.
What the attacker needed
Victim on an insecure network; victim clicks an HTTP link; man-in-the-middle position
The fix
The session cookie and any other sensitive cookies should be set with the Secure flag.
How it was found
- The attacker sends the victim a link to an HTTP-hosted page.
- The victim clicks the link.
- The browser sends the session cookie over HTTP.
- A man-in-the-middle attacker captures the value and takes over the account.
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.
A website gives your browser a small piece of text called a cookie so it can remember you are logged in. The Secure flag tells the browser to send that cookie only over encrypted connections. Without it, someone sharing an insecure network could read the cookie and pretend to be you.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.