Skip to content
Crypto Disclosed report Beginner

Session Cookie without Secure flag set

A cookie was set without the Secure flag, so it is not restricted to secure SSL channels.

0xsaikiran Follow

Originally disclosed on HackerOne

  • Disclosed after 34 days

vulnerability-Session Cookie without Secure flag set

Vulnerability description

This cookie does not have the Secure flag set. When a cookie is set with the Secure flag, it instructs the browser that the cookie can only be accessed over secure SSL channels. This is an important security protection for session cookies. This vulnerability affects /.

Discovered by: Crawler.

Attack details

Cookie name: "wp_sharing_54117_10_twitter" Cookie domain: "automattic.com"

View HTTP headers

Request

GET / HTTP/1.1 Host: automattic.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 Server: nginx Date: Tue, 15 Apr 2014 15:53:40 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Vary: Accept-Encoding Last-Modified: Tue, 15 Apr 2014 15:53:37 GMT Cache-Control: max-age=297, must-revalidate X-nananana: Batcache Vary: Cookie X-hacker: If you're reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header. X-Pingback: http://automattic.com/xmlrpc.php Link: http://wp.me/Pe4R-am2; rel=shortlink Original-Content-Encoding: gzip

Content-Length: 17919

How to fix this vulnerability

If possible, you should set the Secure flag for this cookie

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

The cookie lacks an important security protection for session cookies.

What the attacker needed

Attacker can intercept network traffic

The fix

The cookie should be set with the Secure 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 data a website stores in your browser. The Secure flag tells the browser to send it only over secure SSL channels. Without it, that protection is missing.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More by 0xsaikiran

View all

4 more disclosed reports, best first.

More from Automattic

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.