Skip to content
Info disclosure Disclosed report Intermediate

Cookie poisoning leads to DOS and Privacy Violation

The avatar cookie was validated by checking only that it contained a trusted Steam CDN prefix, so an attacker could supply a URL that starts with that prefix but points to an attacker-controlled server or to the site's logout endpoint. When a support agent opened the chat, their browser loaded the attacker's URL, leaking the agent's IP address or logging them out, and all online support agents were affected.

benjamin-mauss Follow

Originally disclosed on HackerOne

Bounty$700incl. $200 bonus High View original
  • Triaged in 15 days
  • Fixed in 42 days
  • Paid in 37 days
  • Disclosed after 58 days

Summary by the program

Summary, submitted by ████████ requires no additions by us and fully expresses impact and reasons behind the vulnerability.

Summary by the researcher

Summary

By change the value of the cookie avatar, a hacker could not only get information of the support agent IP address, but also disconnect all the supports without interaction.

Vulnerability

The cookie avatar should have the value of a link to the user's steam avatar. A normal cookie is like that: https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/ae/ae6680902f4fe18e692ba9ea250bd694b34ad417_medium.jpg

But in the server, there is a verification like that (pseudocode):

bool valid_url = false;
if(cookies["avatar"].contains("https://steamcdn-a.akamaihd.net/steamcommunity/")){
    valid_url = true;
}else{
    valid_url = false;
}
```
Now start a chat with a support by sending a message.

Ok, so what if we insert the url, but after the hacker server?

### Privacy Violation (IP Address exposed)
`[hacker_server]/?https://steamcdn-a.akamaihd.net/steamcommunity/`
The server accept it and, when the support receive a message from the hacker, the support browser will try to load the url of the hacker's avatar and send a request to the hacker server. Now the hacker got his IP address.

### DOS (Forced log out)
`https://cs.money/logout?https://steamcdn-a.akamaihd.net/steamcommunity/`
now think. What if instead of the hacker server, we insert the URL of the logout in cs.money?
Bingo!
The support browser will make a request to the logout URL and it will disconnect him.

### Ending

One thing that I noticed is that not only the current support agent that we are talking, but all the online supports will try to load my avatar cookie.

Ok, now think in the first vulnerability, that is the `Privacy Violation`. The impact is that a hacker could get privacy information of the support and use this for phishing.

What about the second one? I think I don't even need to say the impact, but anyway: 
The impact is that a hacker could set the support function of the website offline: without supports agents there is no support :)
How much days would take to the devs know that this is a security problem, find it and fix it?

I am glad I can help.
#### If would like to contact me, don't hesitate to send a message to ████████#3684 (message, not friend request XD)

The original report as published on HackerOne, by benjamin-mauss. 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 server validated the avatar cookie with a substring check for a trusted URL prefix instead of parsing the URL and verifying the exact host, allowing attacker-controlled URLs that merely contain the prefix.

Impact

An attacker could learn a support agent's IP address for phishing and could force support agents to be logged out, potentially taking the support function offline; the text notes all online support agents load the avatar.

What the attacker needed

Ability to set the avatar cookie; start a chat with support; support agent views the chat

The fix

The server should verify the avatar URL's host rather than checking for a substring.

How it was found

  1. Set the avatar cookie to a URL that contains the trusted Steam CDN prefix but points to an attacker server.
  2. Start a chat with support and send a message.
  3. The support agent's browser loads the attacker URL, revealing the agent's IP address.
  4. Alternatively set the avatar cookie to the site's logout URL containing the trusted prefix.
  5. The support agent's browser requests the logout URL and is disconnected.

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. The site trusted the avatar cookie if it merely contained a certain web address, so an attacker could put that address inside a link to their own server or to the logout page. When a support agent viewed the chat, their browser followed that link, revealing their IP address or signing them out.

What is Info disclosure?

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

More by benjamin-mauss

View all

3 more disclosed reports, best first.

More from CS Money

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.