Skip to content
Info disclosure Disclosed report Beginner

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.

pavanw3b Follow

Originally disclosed on HackerOne

  • 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

Screen_Shot_2017-04-27_at_8.40.13_PM.png
Screen_Shot_2017-04-27_at_8.40.13_PM.png From the original on HackerOne

The original report as published on HackerOne, by pavanw3b. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. The attacker sends the victim a link to an HTTP-hosted page.
  2. The victim clicks the link.
  3. The browser sends the session cookie over HTTP.
  4. 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.

More by pavanw3b

View all

8 more disclosed reports, best first.

More from Weblate

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.