Skip to content
Info disclosure Disclosed report Beginner

Session Cookie without HttpOnly and secure flag set

The PHPSESSID session cookie on the site was set without the HttpOnly flag, so client-side scripts could read it. An attacker who can run script in the page could steal the session cookie and potentially hijack the user's session.

k4yy1s Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 36 hours

vulnerable URL: www.stellar.org The PHPSESSID cookie does not have the HTTPOnly flag set. When a cookie is set with the HTTPOnly flag, it instructs the browser that the cookie can only accessed by the server and not by client-side scripts. This is an important security protection for session cookies.

reference : https://hackerone.com/reports/75357

Screenshot_349.png
Screenshot_349.png From the original on HackerOne

The original report as published on HackerOne, by k4yy1s. 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

Impact

If an attacker can run script in the page, they could read the session cookie and potentially take over the user's session.

What the attacker needed

Attacker can run script in the page

The fix

The session cookie should be set with the HttpOnly flag.

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 session cookie is a small piece of data your browser sends back to a website to prove who you are after you log in. The HttpOnly flag tells the browser to hide that cookie from JavaScript, so if an attacker finds a way to run their own script on the page, they cannot read it. Here the flag was missing, so any script running on the page could read the cookie and send it to an attacker.

What is Info disclosure?

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

More by k4yy1s

View all

1 more disclosed report, best first.

More from Stellar.org

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.