Summary
A privacy-sensitive social platform issued its login cookie, a long-lived session token, to the whole registrable domain rather than to the one API host that needed it. One subdomain on that domain was not the platform’s own server: it was a CNAME to a third-party ad-tracking service. Because browsers send a domain-scoped cookie to every subdomain, the tracker’s infrastructure received users’ identity cookies on each page load, and the session token rode along whenever it fired in a logged-in session.
Everything here came from passively watching my own account’s traffic in browser DevTools. No other user’s data was accessed and no endpoint was tested beyond normal use.
How it worked (redacted)
Hostnames, cookie names, token contents, and request paths are removed. The point is the logic, not a recipe.
- Logging in returned the session cookie with
Domain=.<redacted>instead of leaving theDomainattribute off (host-only). - The cookie was the sole bearer credential for the API. Its token
carried no expiry claim, so its only lifetime bound was a cookie
expiry about a year out. It was also missing
SecureandSameSite. - The site’s pages loaded a tracking script from
<tracker>.<redacted>, a subdomain pointed at the ad vendor’s CDN-hosted infrastructure rather than the platform’s origin. - The capture showed identity cookies set at the same domain scope arriving at the tracker. The session token, set at that same scope, follows by ordinary cookie rules.
Impact
Anyone holding that token could act as the user: read the account, change it, send messages as them. That access lasted until the token aged out, up to a year. On a platform where discretion is the core promise to users, the account credential and persistent identifiers were reaching an ad vendor’s servers with no way for users to opt out.
The realistic risk is a compromised or careless third party (logs, analytics pipelines, an insider), not a remote attacker who can reach the token directly.
Scoring
CVSS 3.1, my assessment: AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N, base
10.0. Scope is Changed because the bug lives in the platform’s cookie
issuance while the exposure happens on third-party infrastructure.
A more conservative reading treats integrity as secondary (I:L), which
gives 9.3. The program accepted the report as valid and rewarded it at
its critical tier, while keeping its own formal classification at High
because parts of the exploit chain were not independently verified.
Timeline
- Reported: 11 October 2026.
- Confirmed valid by the program’s engineers: 15 October 2026.
- Award reconsidered upward: 9 November 2026.
- Fixed by the program; disclosed after the fix.
What the fix looks like
- Issue the session cookie host-only, from the API host that actually uses it, so no other subdomain ever receives it.
- Keep third-party tracking off the registrable domain entirely, or
strip
Cookieheaders to that host at the edge. - Add
Secure; SameSite=Lax, and give the token a short, real expiry with rotation so a leaked token has a small window.