# Cookie poisoning leads to DOS and Privacy Violation

Avatar cookie validated only by substring match, letting attacker point it at their server to leak support agent IPs or force logout via CS Money logout URL.

- Payout: $700
- Severity: high
- Program: CS Money
- Found by: benjamin-mauss
- Disclosed: 2021-02-25
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1067809
- Library page: https://bugbountylibrary.com/r/h1%3A1067809
- Tags: area:web domain:web impact:data-leak impact:dos impact:pii-leak kind:bounty platform:hackerone sev:high technique:param-pollution vuln:dos vuln:info-disclosure

**Target:** support.cs.money chat avatar cookie
**Root cause:** Server validates avatar cookie with a substring `contains()` check for the Steam CDN prefix instead of parsing and enforcing the full URL origin, so any URL containing that substring passes.
**Steps:**
1. Set avatar cookie to `[hacker_server]/?https://steamcdn-a.akamaihd.net/steamcommunity/`
2. Open chat with support and send a message
3. Support browser loads avatar URL, sending request to hacker server revealing IP
4. Alternatively set avatar cookie to `https://cs.money/logout?https://steamcdn-a.akamaihd.net/steamcommunity/`
5. Support browser requests logout URL, disconnecting the agent
**How found:** Observed avatar cookie holds a Steam CDN URL and tested whether validation was a naive substring check by prepending an attacker server while retaining the required substring.
**Exploitation:** Attacker controls avatar cookie value; when support agent views the chat, their browser fetches the attacker-controlled URL. Pointing it at attacker server leaks agent IP; pointing it at cs.money/logout forces logout of all online support agents.
**Escalation:** Affects not just the current agent but all online support agents, enabling mass forced logout (support DoS) and IP harvesting for phishing.
**Insight:** When a cookie/param holds a URL validated by substring `contains()`, test prefix/suffix injection: prepend your server before the required substring, or append a logout/action URL after it to weaponize the trusted-prefix check.

## Proof of concept (copied exactly from the original report)

**Cookie avatar value pointing to hacker server**

```
`[hacker_server]/?https://steamcdn-a.akamaihd.net/steamcommunity/`
```

**Cookie avatar value pointing to logout URL**

```
`https://cs.money/logout?https://steamcdn-a.akamaihd.net/steamcommunity/`
```

