Skip to content
Info disclosure Disclosed report Beginner

Cookie Does Not Contain The "secure" Attribute

Several cookies set by the site were issued without the secure attribute, so they could be sent over plain HTTP. An attacker able to observe that traffic could capture the cookies and potentially impersonate the user.

staytuned Follow

Originally disclosed on HackerOne

  • Fixed in 9 hours
  • Paid in 9 hours
  • Disclosed after 16 days

Poc :

https://gratipay.com/ -- optimizelyBuckets=%7B%7D; expires=Sat Mar 14 21:28:25 2026; path=/; domain=.gratipay.com; max-age=315359448,https://gratipay.com/ -- optimizelyEndUserId=oeu1458188905178r0.282567850779742; expires=Sat Mar 14 21:28:25 2026; path=/; domain=.gratipay.com; max-age=315359448,https://gratipay.com/ -- optimizelySegments=%7B%7D; expires=Sat Mar 14 21:28:25 2026; path=/; domain=.gratipay.com; max-age=315359448,https://gratipay.com/ -- optimizelyPendingLogEvents=%5B%5D; expires=Wed Mar 16 21:28:40 2016; path=/; domain=.gratipay.com

Impact: Cookies with the "secure" attribute are only permitted to be sent via HTTPS. Session cookies sent via HTTP expose an unsuspecting user to sniffing attacks that could lead to user impersonation or compromise of the application account.

Solution: If the associated risk of a compromised account is high, apply the "secure" attribute to cookies and force all sensitive requests to be sent via HTTPS.

The original report as published on HackerOne, by staytuned. 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 application set cookies without the secure attribute and did not force all traffic over HTTPS.

Impact

Cookies could be sent over HTTP, exposing users to sniffing attacks that could lead to impersonation or account compromise.

What the attacker needed

Attacker can observe plain HTTP traffic

The fix

The cookies should be set with the secure attribute and all sensitive requests forced over HTTPS.

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 to remember who you are. The 'secure' flag tells the browser to send that cookie only over an encrypted connection, so someone watching the network cannot read it. Here the cookies lacked that flag, meaning they could travel unencrypted and be seen by a snooper.

What is Info disclosure?

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

More by staytuned

View all

1 more disclosed report, best first.

More from Gratipay

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.