HackerOne Account Takeover: The $20K Leaked Cookie
A HackerOne analyst accidentally pasted a live session cookie into a report reply. A hacker reused it to see customer reports.
Published on masimshahzad.medium.com
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 full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Context
HackerOne runs a bug bounty platform, and it also runs a bug bounty program for its own platform. Reports submitted to that program are triaged by HackerOne security analysts, who read submissions, try to reproduce them, and reply in the report thread with the steps they attempted. That reply workflow is the feature at the centre of this case: an analyst writing back to a researcher, in a comment on the report.
The incident is a credential exposure. In November 2019, 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 hacker haxta4ok00 reused the cookie, reached reports from the programs the analyst supported, and reported the account takeover. HackerOne revoked the cookie and paid $20,000.
There is no exploit chain here, no phishing and no brute force. The platform handed over the key itself.
Setup
The report does not describe the researcher's tooling beyond the act of replaying a cookie. The relevant preconditions are on the HackerOne side:
- The analyst was signed in through multi-factor single sign-on. The leaked cookie was the product of that login, so it carried the authenticated session rather than a pre-authentication state.
- The analyst had access to the reports of the programs they supported, including a pre-screening inbox.
- Sessions were not tied to the location where they were created. HackerOne describes this as a known, accepted risk, because many users work over mobile networks and proxies.
- The report arrived on a Sunday, when Slack alerts were unreliable.
Finding it
The researcher did not have to look for a vulnerability in the usual sense. A HackerOne security analyst posted a valid session cookie in a report thread, inside a cURL command copied from the browser console. Twenty minutes after the cookie appeared, the hacker reported that it worked.
What made it wrong is straightforward once you look at what a session cookie is: it is the artefact that proves the SSO and MFA step already happened. Anyone holding it skips both. The analyst's reply was visible in the thread, so the credential was exposed to whoever could read that comment.
Exploitation
Step 1: obtain the leaked cookie
The analyst's reply contained part of a cURL command copied from the browser console, and that snippet still carried the session cookie. The report does not reproduce the command or the cookie value.
Step 2: replay the cookie from another location
The hacker used the cookie from a different location. Because sessions were not bound to where they were created, the platform accepted it.
Step 3: reach customer data
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.
Step 4: report and remediation
The report arrived on a Sunday. It took two hours to triage, and the cookie was revoked three minutes after triage began.
Root cause
The mistake is a credential leak in a user-facing comment field: an analyst pasted a console command that embedded their own session cookie, and nothing in the comment pipeline detected or redacted it before it was posted. HackerOne added detection and redaction of tokens in comments.
The reason the leak turned into an account takeover is the session design. Sessions were not tied to where they were created. HackerOne's own analysis is candid about this: it was a known, accepted risk, because many users work over mobile networks and proxies. That trade-off is reasonable for regular users and much weaker for staff whose sessions reach cross-customer data. The SSO and MFA in front of the analyst's login did nothing to protect the session once the cookie existed, because the cookie was the product of that login.
Impact
The session gave access to reports from the programs the analyst supported, including a pre-screening inbox. Vulnerability details from multiple customers were exposed, and affected customers were notified. The report rates the issue High, CVSS 8.3, and HackerOne paid $20,000. HackerOne's minimum for high severity was $7,500; it chose to treat the case as critical given the data at risk.
Fix
HackerOne's incident report describes three preventive measures:
- Catch secrets before they post. Detection and redaction of tokens in comments was added.
- Bind privileged sessions. Short term, staff sessions were pinned to the sign-in IP; longer term, device binding.
- Shrink the blast radius. Least-privilege analyst access, and paging someone for critical reports.
The write-up also includes illustrative code for the first two controls:
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))
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)
alert("staff_session_replay", s.user_id, request.ip)
return anonymous()
return s
The first function scans comment text against secret patterns and asks the author to redact before saving. The second revokes a privileged session and raises an alert when the device proof does not match the session's device key.
Variants to test
- Comment and ticket fields on any triage or support platform. Paste a fake cookie-shaped string into a comment and see whether it is flagged or redacted before posting. A positive result is a warning, a preview of the redacted text, or a block.
- Session replay from a second network. Authenticate as a staff or privileged user, then reuse the session cookie from a different IP or network. A positive result is that the session is accepted with no step-up, which is the condition that made this incident possible.
- Console snippets in bug reports. Look for analysts or support staff pasting cURL commands, browser console output or HAR fragments into threads. A positive result is any request header carrying a live cookie or bearer token.
- Least-privilege checks on triage roles. Confirm whether an analyst account can read reports from programs it does not support. A positive result is cross-program visibility from a single account.
- Weekend alerting. Submit a critical report outside business hours and observe how long it takes to be triaged. A positive result is a long window with no page, which is the kind of delay seen here.
What happened, in plain words
HackerOne is a company that runs a bug bounty platform. A bug bounty platform is a website where security researchers report mistakes in other companies' software and get paid for it. HackerOne also runs a bug bounty program for its own platform, so people can report mistakes in HackerOne itself.
When someone sends in a report, a HackerOne security analyst reads it. The analyst tries to make the same problem happen on their own screen, a process called reproducing the report. Then the analyst writes back in the report thread, which is the public conversation attached to that report, with the steps they tried.
That reply feature is where this case begins. In November 2019, an analyst could not reproduce a submission. They replied with the steps they had tried, and those steps included part of a cURL command that they had copied from their browser console. A cURL command is a line of text that tells a computer to send a web request, and the browser console is a built-in developer panel in browsers where you can watch and copy the requests a page makes. That copied snippet still carried the analyst's session cookie.
A session cookie is a small piece of text that a website gives your browser after you log in. Your browser sends it back with every request, and the website uses it to recognise you without asking for your password again. Think of it like a wristband you get at a festival: you show it once at the gate, and after that staff let you back in just by looking at your wrist. Anyone wearing the same wristband gets in too, no questions asked.
The hacker haxta4ok00 took that cookie and used it. They reached reports from the programs the analyst supported, and then reported the account takeover. An account takeover means someone else is able to act as you inside a service. HackerOne revoked the cookie, which means it cancelled it so it stopped working, and paid $20,000.
There is no clever exploit chain here, no phishing email and no brute force guessing. An exploit chain is a series of small weaknesses joined together to do something bigger. Phishing is tricking someone into handing over their details, and brute force is trying many passwords until one works. None of that happened. The platform handed over the key itself.

Context
HackerOne runs a bug bounty platform, and it also runs a bug bounty program for its own platform. Reports submitted to that program are triaged by HackerOne security analysts. Triaging means sorting and checking a report: reading it, deciding whether it is real, and replying. Analysts read submissions, try to reproduce them, and reply in the report thread with the steps they attempted.
That reply workflow is the feature at the centre of this case: an analyst writing back to a researcher, in a comment on the report. A comment is just text typed into a box and saved, the same kind of box you would use to leave a review or a reply on any website.
The incident is a credential exposure. A credential is anything that proves who you are, such as a password, a key or a cookie. Exposure means it became visible to people who should not have seen it. In November 2019, 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 hacker haxta4ok00 reused the cookie, reached HackerOne's own triage views, and reported the account takeover. HackerOne revoked the cookie and paid $20,000.
There is no exploit chain here, no phishing and no brute force. The platform handed over the key itself.
Setup
The report does not describe the researcher's tooling beyond the act of replaying a cookie. Replaying a cookie means taking a cookie value and sending it again from somewhere else, as if you were the original browser.
The relevant preconditions are on the HackerOne side. A precondition is something that has to be true before the problem can happen at all.
- The analyst was signed in through multi-factor single sign-on. Single sign-on, or SSO, is a login system where one account signs you in to many services. Multi-factor means you prove who you are in more than one way, for example a password plus a code from your phone. The leaked cookie was the product of that login, so it carried the authenticated session rather than a pre-authentication state. In plain terms: the cookie was the receipt proving the login had already happened, not a half-finished login.
- The analyst had access to the reports of the programs they supported, including a pre-screening inbox. A pre-screening inbox is a place where incoming reports are looked at before they are passed on. So the analyst's session could see more than one customer's material.
- Sessions were not tied to the location where they were created. HackerOne describes this as a known, accepted risk, because many users work over mobile networks and proxies. A proxy is a middle computer that passes your traffic along, so your apparent location can change as you move between networks.
- The report arrived on a Sunday, when Slack alerts were unreliable. Slack is a chat tool that companies use internally, and alerts are automatic messages that tell staff something needs attention.
Finding it
The researcher did not have to look for a vulnerability in the usual sense. A vulnerability is a weakness that can be misused. Here, a HackerOne security analyst posted a valid session cookie in a report thread, inside a cURL command copied from the browser console. Twenty minutes after the cookie appeared, the hacker reported that it worked.
What made it wrong is straightforward once you look at what a session cookie is: it is the artefact that proves the SSO and MFA step already happened. MFA is multi-factor authentication, the extra proof beyond a password. Anyone holding the cookie skips both steps. The analyst's reply was visible in the thread, so the credential was exposed to whoever could read that comment.
Exploitation
Step 1: obtain the leaked cookie
The analyst's reply contained part of a cURL command copied from the browser console, and that snippet still carried the session cookie. The report does not reproduce the command or the cookie value.
Why this step matters: the analyst was trying to be helpful by showing exactly what they had tried. Copying a request from the browser console is a normal debugging habit. The problem is that a request copied this way often includes the headers, and headers are the extra lines of information sent with a web request. One of those headers carries the cookie, so the helpful snippet quietly contained a working key.
Step 2: replay the cookie from another location
The hacker used the cookie from a different location. Because sessions were not bound to where they were created, the platform accepted it.
Why this step matters: many websites check that a session is being used from the same place it was created. If the location suddenly changes, the site can refuse the session or ask for another login. HackerOne did not do that at the time, so a cookie used from a new location looked exactly like the analyst's own browser. The twenty minutes is the gap between the cookie being posted and the hacker confirming it worked.
Step 3: reach customer data
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.
Why this step matters: the cookie did not just open the analyst's own profile. It opened whatever that analyst could see, which included other companies' reports. That is why the impact was larger than one person's account.
Step 4: report and remediation
The report arrived on a Sunday. It took two hours to triage, and the cookie was revoked three minutes after triage began.
Why this step matters: remediation means fixing the problem. Here the first fix was simply cancelling the cookie so it stopped working. The two hours before anyone triaged the report is the window during which the cookie stayed live.
Root cause
The root cause is the underlying reason the problem happened, as opposed to the surface symptom. The mistake is a credential leak in a user-facing comment field: an analyst pasted a console command that embedded their own session cookie, and nothing in the comment pipeline detected or redacted it before it was posted. Redacting means blanking out the sensitive part, for example replacing it with asterisks. HackerOne added detection and redaction of tokens in comments. A token is a general word for a piece of text that grants access, and a cookie is one kind of token.
The reason the leak turned into an account takeover is the session design. Sessions were not tied to where they were created. HackerOne's own analysis is candid about this: it was a known, accepted risk, because many users work over mobile networks and proxies. That trade-off is reasonable for regular users and much weaker for staff whose sessions reach cross-customer data. A trade-off is accepting one downside to get a benefit: here, letting people stay logged in while their network changes.
The SSO and MFA in front of the analyst's login did nothing to protect the session once the cookie existed, because the cookie was the product of that login. Going back to the festival comparison: the wristband was issued after a careful ID check, but once it is on, nobody rechecks the ID. Whoever holds the wristband is treated as the person who passed the check.
Impact
The session gave access to reports from the programs the analyst supported, including a pre-screening inbox. Vulnerability details from multiple customers were exposed, and affected customers were notified. The report rates the issue High, CVSS 8.3, and HackerOne paid $20,000. CVSS is a standard scoring system for how serious a security issue is, where a higher number means more severe. HackerOne's minimum for high severity was $7,500; it chose to treat the case as critical given the data at risk.
Fix
HackerOne's incident report describes three preventive measures:
- Catch secrets before they post. Detection and redaction of tokens in comments was added. In other words, the comment box now looks for things that look like keys and blanks them out.
- Bind privileged sessions. Short term, staff sessions were pinned to the sign-in IP; longer term, device binding. An IP address is the number that identifies a computer's connection to the internet. Pinning a session to it means the session only works from that same connection. Device binding goes further and ties the session to the specific device.
- Shrink the blast radius. Least-privilege analyst access, and paging someone for critical reports. Blast radius means how much damage one mistake can do. Least privilege means giving each person only the access they actually need. Paging someone means sending an alert that reaches them immediately, even at a weekend.
The write-up also includes illustrative code for the first two controls:
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))
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)
alert("staff_session_replay", s.user_id, request.ip)
return anonymous()
return s
Line by line, in plain words:
SECRET_PATTERNS = [COOKIE_HEADER, BEARER_TOKEN, CLOUD_ACCESS_KEY]builds a list of the kinds of secret the system knows how to recognise: a cookie header, a bearer token (a token sent in an authorisation header) and a cloud access key (a key for a cloud provider).def submit_comment(author, report, text, confirmed=False):starts the function that runs when someone submits a comment. It receives who is writing, which report it belongs to, the text itself, and a flag saying whether the author has already confirmed they want to post anyway.hits = [p.name for p in SECRET_PATTERNS if p.search(text)]goes through the list of patterns and collects the names of any that appear in the comment text. These are the suspected secrets.if hits and not confirmed:checks whether anything was found and the author has not already confirmed. If both are true, the comment is not saved yet.return ask_to_redact(hits, preview=redact(text))stops the save and asks the author to blank out the found secrets, showing them a preview of the text with the secrets already redacted.return comments.save(report.id, author.id, text)is the normal path: if nothing was found, or the author confirmed, the comment is saved.def load_session(cookie, request):starts the function that runs whenever a request arrives carrying a cookie. It looks up the session and checks whether it should be honoured.s = sessions.get(cookie)looks the session up by its cookie value.if s is None or s.expired():handles the simple cases: no such session, or a session that has timed out. Either way the next line applies.return anonymous()treats the visitor as not logged in.if s.privileged and not device_proof_valid(request, s.device_key_id):is the new check. If the session belongs to a privileged user, such as staff, and the request does not prove it comes from the device the session was created on, then something is wrong.sessions.revoke(s.id)cancels the session so it cannot be used again.alert("staff_session_replay", s.user_id, request.ip)raises an alert naming the event, the user and the IP address the request came from, so someone can investigate.return anonymous()again treats the request as not logged in, so the replay gets nothing.return sis the normal path: the session is valid and the request continues as the logged-in user.
The first function scans comment text against secret patterns and asks the author to redact before saving. The second revokes a privileged session and raises an alert when the device proof does not match the session's device key.
Variants to test
These are checks you could try on systems you are allowed to test, to see whether the same class of mistake exists elsewhere.
- Comment and ticket fields on any triage or support platform. Paste a fake cookie-shaped string into a comment and see whether it is flagged or redacted before posting. A positive result is a warning, a preview of the redacted text, or a block.
- Session replay from a second network. Authenticate as a staff or privileged user, then reuse the session cookie from a different IP or network. A positive result is that the session is accepted with no step-up, which is the condition that made this incident possible. Step-up means asking for extra proof, such as a fresh code, before a sensitive action.
- Console snippets in bug reports. Look for analysts or support staff pasting cURL commands, browser console output or HAR fragments into threads. A HAR file is a recording of everything a browser sent and received on a page. A positive result is any request header carrying a live cookie or bearer token.
- Least-privilege checks on triage roles. Confirm whether an analyst account can read reports from programs it does not support. A positive result is cross-program visibility from a single account.
- Weekend alerting. Submit a critical report outside business hours and observe how long it takes to be triaged. A positive result is a long window with no page, which is the kind of delay seen here.
Glossary
- Account takeover: a situation where someone else can act as you inside a service, using your session or credentials.
- Alert: an automatic message that tells staff something needs attention.
- API: a way for one piece of software to talk to another, usually by sending requests and receiving answers.
- Bearer token: a token sent in a request header that grants access to whoever presents it.
- Blast radius: how much damage a single mistake can cause.
- Brute force: trying many passwords or guesses until one works.
- Bug bounty platform: a website where researchers report security mistakes and receive rewards.
- Comment: text typed into a box on a page and saved, such as a reply in a report thread.
- Cookie: a small piece of text a website gives your browser after you log in, sent back with later requests so the site recognises you.
- Credential: anything that proves who you are, such as a password, key or cookie.
- Credential exposure: a credential becoming visible to people who should not have seen it.
- cURL: a command-line tool, and the name of the command it runs, for sending web requests.
- CVSS: a standard scoring system for the severity of a security issue, where a higher number is more severe.
- Device binding: tying a session to a specific device so it cannot be used from another one.
- Exploit chain: a series of small weaknesses joined together to achieve something bigger.
- HAR file: a recording of everything a browser sent and received on a page.
- Header: extra lines of information sent along with a web request, such as the cookie.
- IP address: the number that identifies a computer's connection to the internet.
- Least privilege: giving each person only the access they actually need to do their job.
- MFA (multi-factor authentication): proving who you are in more than one way, for example a password plus a code from your phone.
- Phishing: tricking someone into handing over their details, usually with a fake message or page.
- Precondition: something that has to be true before a problem can happen at all.
- Pre-screening inbox: a place where incoming reports are looked at before being passed on.
- Privileged user: a user with extra access, such as staff who can see other customers' material.
- Proxy: a middle computer that passes your traffic along, so your apparent location can change.
- Redaction: blanking out a sensitive part of text, for example replacing it with asterisks.
- Remediation: fixing a problem once it has been found.
- Replaying a cookie: taking a cookie value and sending it again from somewhere else, as if you were the original browser.
- Reproducing a report: making the same problem happen on your own screen to confirm it is real.
- Revoke: cancel something so it stops working, such as a cookie or a session.
- Root cause: the underlying reason a problem happened, as opposed to the surface symptom.
- Session: the period during which a website treats you as logged in, tracked by a cookie.
- Session cookie: the cookie that carries your logged-in session.
- Single sign-on (SSO): a login system where one account signs you in to many services.
- Slack: a chat tool companies use internally.
- Step-up: asking for extra proof, such as a fresh code, before a sensitive action.
- Token: a general word for a piece of text that grants access; a cookie is one kind.
- Trade-off: accepting one downside to get a benefit.
- Triage: sorting and checking a report: reading it, deciding whether it is real, and replying.
- Triage views: the internal screens analysts use to read and manage reports.
- Vulnerability: a weakness that can be misused.