HackerOne Account Takeover: The $20K Leaked Cookie
*AI-assisted: drafted with AI help from public sources, then reviewed and edited. This is an analytical case study of a public disclosure, not my own discovery.*


AI-generated illustration
A HackerOne analyst pasted a live session cookie into a report reply. A hacker reused it, saw customer reports, and earned $20,000
AI-assisted: drafted with AI help from public sources, then reviewed and edited. This is an analytical case study of a public disclosure, not my own discovery.
No exploit, no phishing, no brute force: the bug bounty platform handed over the key itself. In November 2019, hacker haxta4ok00 reported a HackerOne account takeover after a HackerOne security analyst accidentally posted a valid session cookie in a report thread. The cookie worked from anywhere, exposing customer reports. HackerOne revoked it and paid $20,000.
Disclaimer: * Educational and defensive use only. This was fixed in 2019. Reproduction details are intentionally omitted.*
Vulnerability Overview
- Type: Credential exposure (session cookie leaked in a report comment) plus session replay from another location
- Weakness (source-reported): Insufficiently Protected Credentials. CWE (analytical mapping): CWE-522 (Insufficiently Protected Credentials), CWE-294 (Authentication Bypass by Capture-replay)
- CVE: None (per report)
- Severity/Bounty: High, CVSS 8.3 (as rated on the report). Bounty: $20,000 from HackerOne
How the HackerOne Account Takeover Happened (high level)
HackerOne triages reports to its own bug bounty program. An analyst could not reproduce a submission and replied with the steps they had tried, including part of a cURL command copied from the browser console. That snippet still carried their session cookie.
The analyst had signed in through multi-factor single sign-on, but the cookie was the product of that login. Whoever held it skipped SSO and MFA entirely.
HackerOne’s own analysis is candid: sessions were not tied to where they were created. That was a known, accepted risk, because many users work over mobile networks and proxies. Twenty minutes after the cookie appeared, the hacker reported that it worked.
Business Impact
The session reached reports from the programs that analyst supported, including a pre-screening inbox, so vulnerability details from multiple customers were exposed. Affected customers were notified.
The report arrived on a Sunday, when Slack alerts were unreliable. It took two hours to triage, and the cookie was revoked three minutes after triage began. HackerOne’s minimum for high severity was $7,500; it chose to treat the case as critical given the data at risk.
Fixing HackerOne-Style Session Cookie Leaks (my own analysis)
1. Catch secrets before they post. HackerOne added detection and redaction of tokens in comments.
2. Bind privileged sessions. Short term, HackerOne pinned staff sessions to the sign-in IP; longer term, device binding.
3. Shrink the blast radius. Least-privilege analyst access, and page someone for critical reports.
# Pseudocode: block secrets in comments, and reject replayed staff sessions
SECRET_PATTERNS = [COOKIE_HEADER, BEARER_TOKEN, CLOUD_ACCESS_KEY]
def submit_comment(author, report, text, confirmed=False):
hits = [p.name for p in SECRET_PATTERNS if p.search(text)]
if hits and not confirmed:
return ask_to_redact(hits, preview=redact(text)) # nothing is stored yet
return comments.save(report.id, author.id, text)
def load_session(cookie, request):
s = sessions.get(cookie)
if s is None or s.expired():
return anonymous()
if s.privileged and not device_proof_valid(request, s.device_key_id):
sessions.revoke(s.id) # revoke first, then alert
alert("staff_session_replay", s.user_id, request.ip)
return anonymous()
return s
# Test: replay a staff cookie from a second browser -> session revoked, alert fired
Key Takeaways
- A session cookie is a password that already passed MFA. Treat it that way in tickets, chats and logs.
- “Convenience over binding” is a valid trade-off for regular users, rarely for staff with cross-customer access.
- Detection speed is a control: weekend alerting decided how long the window stayed open.
Credit & Sources
Reported by haxta4ok00 (HackerOne). Primary source: HackerOne report #745324, Account takeover via leaked session cookie, disclosed 3 December 2019, including HackerOne’s incident report: timeline, root cause, data exposure, preventive measures, severity and $20,000 bounty. Facts come from that source; analysis and code are original.
Next breakdown: another real bug bounty case. Follow @masimshahzad for daily bug bounty breakdowns.
First published by Adam Hale on Medium.
Sources
Share
Reactions
Comments
Your name and comment appear on this article for other readers.
Corrections and tips:[email protected]

