Skip to content
Info disclosure Disclosed report Beginner

"SESSION" Cookie without HttpOnly flag set

The session cookie 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 and hijack the victim's session.

ashesh Follow

Originally disclosed on HackerOne

  • Disclosed after 30 days

Vulnerability description This 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 be accessed by the server and not by client-side scripts. This is an important security protection for session cookies. This vulnerability affects /. Discovered by: Crawler. Attack details Cookie name: "session" Cookie domain: "www.irccloud.com"

View HTTP headers Request GET / HTTP/1.1 Pragma: no-cache Cache-Control: no-cache Acunetix-Aspect: enabled Acunetix-Aspect-Password: 082119f75623eb7abd7bf357698ff66c Acunetix-Aspect-Queries: filelist;aspectalerts Cookie: session=4.6b060b7018904911e5665ffc9685a5a3 Host: www.irccloud.com Connection: Keep-alive Accept-Encoding: gzip,deflate User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36 Accept: /

Response HTTP/1.1 200 OK X-Frame-Options: SAMEORIGIN X-UA-Compatible: chrome=1 Strict-Transport-Security: max-age=31536000 server: Cowboy date: Fri, 11 Apr 2014 04:24:23 GMT content-length: 80485 content-type: text/html; charset=UTF-8 cache-control: no-cache, must-revalidate, max-age=0, no-store pragma: no-cache expires: 0 Original-Content-Encoding: gzip

The impact of this vulnerability An attacker can hijack session of victim How to fix this vulnerability You should set the HTTPOnly flag for this cookie.

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

An attacker could hijack the victim's session by reading the cookie via client-side scripts.

What the attacker needed

Client-side script access to the cookie

The fix

The 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 cookie is a small piece of data a website stores in your browser, often to keep you logged in. The HttpOnly flag tells the browser to hide that cookie from JavaScript, so if an attacker manages to run their own script on the page, they cannot read it. Here the flag was missing, so such a script could read the session cookie and use it to act as the victim.

What is Info disclosure?

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

More by ashesh

View all

19 more disclosed reports, best first.

More from IRCCloud

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.