Account takeover via leaked session cookie
A HackerOne security analyst accidentally pasted part of a cURL command containing their own valid session cookie into a reply on a bug bounty report. The hacker who received it could reuse that cookie to access the analyst's account and view reports and limited metadata for the programs that analyst supported.
Originally disclosed on HackerOne
- Triaged in 28 hours
- Fixed in 9 days
- Paid in 3 days
- Disclosed after 9 days
Summary by the program
Incident Report | 2019-11-24 Account Takeover via Disclosed Session Cookie
Last updated: 2019-11-27
Issue Summary
On November 24, 2019 at 13:08 UTC, HackerOne was notified through the HackerOne Bug Bounty Program by a HackerOne community member (“hacker”) that they had accessed a HackerOne Security Analyst’s HackerOne account. A session cookie was disclosed due to a human error, which led to the hacker being able to access the account. The session cookie was revoked at 15:11 UTC, blocking all unauthorized access to the account.
The technical investigation finished at 21:27 UTC, concluding that there was no malicious intent and that all copies of potentially sensitive information were deleted.
Timeline
| Date | Time (UTC) | Action |
|---|---|---|
| 2019-11-24 | 12:48 | HackerOne Security Analyst’s session cookie was posted on a HackerOne report. |
| 2019-11-24 | 13:08 | HackerOne received a report through its bug bounty program that the session cookie could be used to access sensitive information. |
| 2019-11-24 | 15:08 | A HackerOne Security Analyst began triaging the report. |
| 2019-11-24 | 15:11 | The session cookie was revoked. |
| 2019-11-24 | 16:07 | HackerOne’s Incident Response team started an investigation. |
| 2019-11-24 | 21:27 | HackerOne concluded technical investigation. |
| 2019-11-25 | 08:49 | Impacted customers were alerted that their information was viewable to the hacker who submitted the vulnerability. |
| 2019-11-26 | 01:58 | A change was deployed restricting HackerOne employee and HackerOne Security Analyst sessions to only be accessible from the originating IP address. This mitigates similar incidents in the future. |
Root Cause
HackerOne triages incoming reports for HackerOne’s own bug bounty program. On November 24, 2019, a Security Analyst tried to reproduce a submission to HackerOne’s program, which failed. The Security Analyst replied to the hacker, accidentally including one of their own valid session cookies.
Why was a cookie included? When a Security Analyst fails to reproduce a potentially valid security vulnerability, they go back and forth with the hacker to better understand the report. During this dialogue, Security Analysts may include steps they’ve taken in their response to the report, including HTTP requests that they made to reproduce. In this particular case, parts of a cURL command, copied from a browser console, were not removed before posting it to the report, disclosing the session cookie.
Why was the hacker able to access the account? Session cookies are tied to a particular application, in this case hackerone.com. The application won’t block access when a session cookie gets reused in another location. This was a known risk. As many of HackerOne’s users work from mobile connections and through proxies, blocking access would degrade the user experience for those users. Due to the entropy of session cookies and in-depth defenses such as HackerOne’s strict Content Security Policy, HackerOne had not prioritized any additional defenses that limit a session cookie’s ability to be used in a separate browser.
Why does a session cookie grant access to reports? HackerOne offers a number of additional tools on the platform for Security Analysts to work through security reports. In a normal situation, the Security Analysts go through multi-factor Single Sign-On (SSO) to obtain a valid session cookie for their work. Because a live session cookie was obtained, all platform features were available, which therefore granted access to a number of customers’ reports. This was limited to the customer programs that this particular Security Analyst supports.
Why were reports exposed for programs that don’t use HackerOne Triage? HackerOne offers an optional service called Human-Augmented Signal (HAS). HackerOne Security Analysts have access to a separate HAS Inbox on their account where reports can be inspected before they’re forwarded to the customer. A number of reports from this particular Inbox were accessed.
Why did it take two hours to notice the report? HackerOne aims to reply within 24 hours to any submission, including over the weekend. For high and critical severity vulnerabilities, HackerOne tries to respond within a couple of hours. The report to HackerOne’s bug bounty program was submitted on Sunday morning at 05:00am PST (where the majority of HackerOne’s security team resides). For critical submissions, HackerOne’s security team automatically receives a notification on Slack. This works during business hours but is unreliable over the weekend. Security Analysts who work over the weekend noticed the report two hours after the submission, after which they immediately followed Incident Response procedures.
Resolution and Recovery
The session cookie was revoked by HackerOne on November 24, 2019 at 15:11 UTC, two hours after it was shared, three minutes after the report was opened for triage. Revoking the session cookie rendered it useless to anyone using it. The subsequent investigation focused on affected customers, vulnerability data, intent, communication, and preventative measures, which concluded on November 26, 2019.
HackerOne audited existing comments to see if other session cookies were leaked in the past. This did not yield any results.
The severity of the report was determined to be high based on HackerOne’s environmental score for the selected asset and CVSS 3.0 base metrics (CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H/CR:H/IR:H/AR:H). The minimum bounty award for a high severity vulnerability (based on CVSS) on hackerone.com is currently set to $7,500. A $7,500 reward for disclosing this to HackerOne would mean that HackerOne would award the same amount regardless of which user’s account was compromised. The team looked into the amount of sensitive information that could have been accessed by the account and took that under advisement when deciding on the bounty amount. This led to the decision to treat the submission as a critical vulnerability and award a $20,000 bounty.
Vulnerability Impact on Data
Sensitive information of multiple objects was exposed. During the timeframe the hacker had access, three different features were used to access sensitive information. By default, all inboxes only download the minimal amount of data, such as title, state, severity, and assignee, so the user can view the user interface. Vulnerability information is only disclosed when the user selects a report from the user interface.
In an effort to simplify what data was accessed, HackerOne mapped the access of features to the information disclosed as follows:
- If the hacker accessed their report via HAS Inbox, Triage Inbox, or Inbox features, the report titles and limited metadata were viewable
- If the hacker used the Report View feature, the report contents were viewable
Below is an overview of the features and the data that was exposed in each of them.
Human-Augmented Signal (HAS) Inbox
This Inbox is used by a number of Security Analysts to block or forward submissions that are flagged by HackerOne’s backend of having a high-likelihood being noise. When the hacker accessed the page, the default view loaded up to 25 reports to show the user interface. Reports are sorted by oldest report first. The following information was loaded and displayed:
| Information | Note |
|---|---|
| latest_activity_at | ISO 8601 formatted date/time when the last activity (internal or external) was posted to the report. |
| created_at | ISO 8601 formatted date/time when the report was submitted. |
| title | The title of the report. |
| state | Indicates whether the report is open or closed. |
| substate | Indicates the report’s state (new, triaged, needs-more-info, resolved, informative, spam, not-applicable, duplicate). |
| assignee (group name, username) | The group’s name or user’s username who is currently assigned to the report. |
| reporter (username) | The reporter’s username. |
| program (handle, name) | The program’s handle and name the report was submitted to. |
Triage Inbox
This is the Security Analyst’s main Inbox to interact with reports. When the hacker accessed the page, the default view loaded up to 100 reports to show the user interface. Reports are sorted by oldest report first. The following information was loaded and displayed:
| Information | Note |
|---|---|
| title | The title of the report. |
| substate | Indicates the report’s state (new, triaged, needs-more-info, resolved, informative, spam, not-applicable, duplicate). |
| assignee (group name, username) | The group’s name or user’s username who is currently assigned to the report. |
| triage blockers (reasons, blocked by) | An object that contains the reason why a report is currently blocked on something other than the Security Analysts. |
| program (handle, triage notes) | The program’s handle and name the report was submitted to. |
Inbox
This is the main Inbox hackers and customers use to interact with reports they’ve submitted and received. When the hacker accessed the page, the default view loaded up to 25 reports to show the user interface. Reports are sorted depending on the view that was selected. The following information was loaded and displayed:
| Information | Note |
|---|---|
| latest_activity_at | ISO 8601 formatted date/time when the last activity (internal or external) was posted to the report. |
| created_at | ISO 8601 formatted date/time when the report was submitted. |
| title | The title of the report. |
| state | Indicates whether the report is open or closed. |
| substate | Indicates the report’s state (new, triaged, needs-more-info, resolved, informative, spam, not-applicable, duplicate). |
| reference | Any issue tracker reference that was set on the report. |
| reference_url | The full URL to any issue tracker’s task when set. |
| severity_rating | Indicates the report’s severity (null, none, low, medium, high, critical). |
| assignee (group name, username) | The group’s name or user’s username who is currently assigned to the report. |
| reporter (username) | The reporter’s username. |
| program (handle, name) | The program’s handle and name the report was submitted to. |
| custom_field_attributes (name) | All custom field attributes that reports can be filtered on. |
| assets (identifier) | All asset identifiers that reports can be filtered on. |
| groups (name) | All team member groups associated with the program the report was submitted to. |
| members (name, username) | All team members associated with the program the report was submitted to. |
Report View
Reports are viewable in all of the inboxes in order to help customers, security analysts, and hackers communicate over a vulnerability. Only a single report can be viewed in the same window at any given time. When the hacker viewed the report, the following information was loaded and displayed:
| Information | Note |
|---|---|
| vulnerability_information | The initial description of the vulnerability provided by the reporter. |
| comments (text, internal and to the reporter) | The comments between the reporter and the security team as well as internal comments. |
| latest_activity_at | ISO 8601 formatted date/time when the last activity (internal or external) was posted to the report. |
| created_at | ISO 8601 formatted date/time when the report was submitted. |
| title | The title of the report. |
| state | Indicates whether the report is open or closed. |
| substate | Indicates the report’s state (new, triaged, needs-more-info, resolved, informative, spam, not-applicable, duplicate). |
| reference | Any issue tracker reference that was set on the report. |
| reference_url | The full URL to any issue tracker’s task when set. |
| severity_rating | Indicates the report’s severity (null, none, low, medium, high, critical). |
| assignee (group name, username) | The group’s name or user’s username who is currently assigned to the report. |
| reporter (username) | The reporter’s username. |
| program (handle, name) | The program’s handle and name the report was submitted to. |
| custom_field_attributes (name) | All custom field attributes that reports can be filtered on. |
| assets (identifier) | All asset identifiers that reports can be filtered on. |
| groups (name) | All team member groups associated with the program the report was submitted to. |
| members (name, username) | All team members associated with the program the report was submitted to. |
| weakness | The category of vulnerability. |
Data access was limited to the access the HackerOne Security Analyst had, which does not cover HackerOne’s entire customer base. If your data was accessed during this incident, you have received a separate notification from HackerOne.
Preventative Measures
As part of HackerOne Incident Response process, HackerOne is conducting an internal review and analysis of the incident. HackerOne is taking the following actions to address the underlying causes of issues and to help prevent future occurrence:
Short-term (completed)
These are the short term actions identified. All items have already been addressed and deployed to hackerone.com.
Bind Sessions to IP Addresses
The session cookie is able to be reused on different devices. A short term mitigation of this vulnerability is to bind the user’s session to the IP address used at initial sign-in. If an attempt is made to utilize the session from a different IP address, the session is terminated.
This change was rolled out for HackerOne employees (including all HackerOne Security Analysts) on November 25, 2019.
Block Sessions from Restricted Countries
HackerOne restricts its employees from accessing resources from specific countries. To mitigate account takeovers, the user sessions are prevented from being used from specific restricted list of countries.
This change was rolled out for HackerOne employees (including all HackerOne Security Analysts) on November 26, 2019.
Page on Critical Reports
In order to further reduce the time to notify the security team, the team has decided to move from a Slack notification to paging the on-call security person when a critical report gets submitted to the bug bounty program.
This change was implemented on November 25, 2019.
Update Program Policy regarding Sensitive Information Access
HackerOne has updated their bug bounty program policy to include specific actions on when a hacker may have access to a HackerOne account, sensitive keys, or sensitive data.
This change was implemented on November 26, 2019.
Mid-term (next three months)
Detect & Redact Sensitive Data in Comments
When a user is making a comment, detect possible sensitive information, such as session cookies and authentication tokens, and block submission of the comment until confirmation. Additionally, offer the user the ability to redact the sensitive from the comment automatically.
This change was implemented on December 2, 2019.
Add Additional Logging Context
While HackerOne was able to determine which reports were access based on the executed GraphQL queries, HackerOne is planning to improve their logging of information around data access. This will support Incident Response capabilities and allow the incident response to be performed faster.
Bind Sessions to Devices
A limitation of binding to IPs is that they change for legitimate reasons and will unauthenticate the user, creating a poor user experience. Additionally, IP addresses do not uniquely identify a user (such as with NAT), allowing malicious users to utilize the session, even if it is IP bound. To improve usability and security, HackerOne will investigate binding the session to a specific device that the user is using. Sessions bound to the device will only be usable on that device and using the session elsewhere will terminate the session.
Improve Education for Employees
In addition to HackerOne’s current employee education programs, HackerOne will expand the security training for those who handle vulnerability reports. The training will include additional details on how to share technical reproductions and specifically avoid sharing keys, tokens, and session information.
Long-term (next twelve months)
Overhaul Security Analyst Permission Model
The HackerOne Security Analysts have access to HackerOne customers’ sensitive data in order to triage incoming vulnerability reports. HackerOne has identified that HackerOne can restrict security analyst access in programs, as well as overhaul the allocation of security analysts to a more restrictive list of programs to keep these users to the least privilege required.
Improve Education for Hackers
As the community grows, HackerOne needs to ensure that HackerOne is reinforcing the best practices in bug bounty hunting. The HackerOne Community team will look to increase hacker education around delivering proof of critical severity vulnerabilities in case sensitive information has been accessed by the hacker.
The report
Summary: You are disclose for me you session Description: you are gevi me your session on last report I am can use your session(sorry) ███ ████████ █████████
Impact
HackerOneStaff Access, i can read all reports @security and more program
Context
HackerOne runs its own bug bounty program on hackerone.com, and the same platform is used to triage the reports that arrive through it. Security Analysts work inside the platform with an account that has extra tooling: a Triage Inbox, a Human-Augmented Signal (HAS) Inbox, and the ordinary Inbox that hackers and customers use. In normal operation an analyst goes through multi-factor Single Sign-On (SSO) and receives a session cookie for hackerone.com, and that cookie is what authorises every subsequent request.
The incident covered here is not a flaw in an endpoint. It is the consequence of a session cookie being pasted into a report comment by mistake, and of the platform accepting that cookie from wherever it was replayed.
Setup
The actors are a HackerOne Security Analyst and a member of the HackerOne community who submitted a report to HackerOne's own program. No special tooling is described. The precondition is simply that the analyst, while corresponding with the hacker about a submission that could not be reproduced, included part of a cURL command copied from a browser console in a reply, and that command contained one of the analyst's own valid session cookies.
Finding it
The report submitted by the hacker is short and direct. Under Summary it says:
You are disclose for me you session
and under Description:
You are gevi me your session on last report
I am can use your session(sorry)
followed by a redacted block. The impact statement reads:
HackerOneStaff Access, i can read all reports @security and more program
In other words, the cookie was not discovered by probing. It was handed over in the analyst's own reply, and the hacker noticed that it was live and usable.
Exploitation
Step 1: obtain the cookie from the report thread
The analyst tried to reproduce the hacker's submission and failed. When a Security Analyst cannot reproduce a potentially valid vulnerability, they go back and forth with the hacker, and in those replies they may include the steps they took, including the HTTP requests they made. In this case parts of a cURL command copied from a browser console were not removed before posting, so the session cookie went out with the comment. The analyst's session cookie was posted on a HackerOne report at 12:48 UTC on 2019-11-24.
Step 2: replay the cookie
The hacker used the cookie to reach the analyst's account. The application does not block access when a session cookie is reused from another location, so the replay succeeded. Because a live session cookie was obtained, every platform feature available to that analyst was reachable, which in turn exposed the reports of the customer programs that this particular analyst supports.
Step 3: read reports through the analyst's inboxes
Three features were used to reach sensitive information during the window of access. Each inbox loads only a minimal set of fields by default so that the interface can be rendered, and full vulnerability information is only disclosed when a report is opened.
HAS Inbox. Used by analysts to block or forward submissions that HackerOne's backend flags as likely noise. The default view loaded up to 25 reports, oldest first, and displayed:
| Information | Note |
|---|---|
| latest_activity_at | ISO 8601 formatted date/time when the last activity (internal or external) was posted to the report. |
| created_at | ISO 8601 formatted date/time when the report was submitted. |
| title | The title of the report. |
| state | Indicates whether the report is open or closed. |
| substate | Indicates the report's state (new, triaged, needs-more-info, resolved, informative, spam, not-applicable, duplicate). |
| assignee (group name, username) | The group's name or user's username who is currently assigned to the report. |
| reporter (username) | The reporter's username. |
| program (handle, name) | The program's handle and name the report was submitted to. |
Triage Inbox. The analyst's main inbox for interacting with reports. The default view loaded up to 100 reports, oldest first, and displayed:
| Information | Note |
|---|---|
| title | The title of the report. |
| substate | Indicates the report's state (new, triaged, needs-more-info, resolved, informative, spam, not-applicable, duplicate). |
| assignee (group name, username) | The group's name or user's username who is currently assigned to the report. |
| triage blockers (reasons, blocked by) | An object that contains the reason why a report is currently blocked on something other than the Security Analysts. |
| program (handle, triage notes) | The program's handle and name the report was submitted to. |
Inbox. The inbox hackers and customers use. The default view loaded up to 25 reports, sorted according to the selected view, and displayed:
| Information | Note |
|---|---|
| latest_activity_at | ISO 8601 formatted date/time when the last activity (internal or external) was posted to the report. |
| created_at | ISO 8601 formatted date/time when the report was submitted. |
| title | The title of the report. |
| state | Indicates whether the report is open or closed. |
| substate | Indicates the report's state (new, triaged, needs-more-info, resolved, informative, spam, not-applicable, duplicate). |
| reference | Any issue tracker reference that was set on the report. |
| reference_url | The full URL to any issue tracker's task when set. |
| severity_rating | Indicates the report's severity (null, none, low, medium, high, critical). |
| assignee (group name, username) | The group's name or user's username who is currently assigned to the report. |
| reporter (username) | The reporter's username. |
| program (handle, name) | The program's handle and name the report was submitted to. |
| custom_field_attributes (name) | All custom field attributes that reports can be filtered on. |
| assets (identifier) | All asset identifiers that reports can be filtered on. |
| groups (name) | All team member groups associated with the program the report was submitted to. |
| members (name, username) | All team members associated with the program the report was submitted to. |
Step 4: open individual reports
Reports are viewable from all of the inboxes, and only one report can be viewed in the same window at a time. Opening a report loaded and displayed:
| Information | Note |
|---|---|
| vulnerability_information | The initial description of the vulnerability provided by the reporter. |
| comments (text, internal and to the reporter) | The comments between the reporter and the security team as well as internal comments. |
| latest_activity_at | ISO 8601 formatted date/time when the last activity (internal or external) was posted to the report. |
| created_at | ISO 8601 formatted date/time when the report was submitted. |
| title | The title of the report. |
| state | Indicates whether the report is open or closed. |
| substate | Indicates the report's state (new, triaged, needs-more-info, resolved, informative, spam, not-applicable, duplicate). |
| reference | Any issue tracker reference that was set on the report. |
| reference_url | The full URL to any issue tracker's task when set. |
| severity_rating | Indicates the report's severity (null, none, low, medium, high, critical). |
| assignee (group name, username) | The group's name or user's username who is currently assigned to the report. |
| reporter (username) | The reporter's username. |
| program (handle, name) | The program's handle and name the report was submitted to. |
| custom_field_attributes (name) | All custom field attributes that reports can be filtered on. |
| assets (identifier) | All asset identifiers that reports can be filtered on. |
| groups (name) | All team member groups associated with the program the report was submitted to. |
| members (name, username) | All team members associated with the program the report was submitted to. |
| weakness | The category of vulnerability. |
Step 5: the response
At 13:08 UTC HackerOne received a report through its bug bounty program that the session cookie could be used to access sensitive information. An analyst began triaging at 15:08, and the session cookie was revoked at 15:11, three minutes later and two hours after it had been shared. Revoking it rendered it useless to anyone holding it. The Incident Response team started its investigation at 16:07 and concluded the technical investigation at 21:27, finding no malicious intent and that all copies of potentially sensitive information had been deleted. Impacted customers were alerted on 2019-11-25 at 08:49 that their information had been viewable to the hacker who submitted the vulnerability.
Root cause
The immediate cause is human: a cURL command copied from a browser console was pasted into a report comment with the session cookie still in it. The design decision that turned that mistake into an account takeover is that a session cookie was valid from any location. HackerOne knew of this risk and had accepted it, because many users work from mobile connections and through proxies and blocking reuse would degrade their experience. The team had relied instead on the entropy of session cookies and on defences such as a strict Content Security Policy, and had not prioritised additional controls limiting where a cookie could be used.
The second design factor is that a session cookie is enough on its own. Analysts normally pass multi-factor SSO to obtain one, but once obtained, the cookie carried the full set of platform features, including the HAS Inbox used to inspect reports before they are forwarded to the customer. That is why reports from programs that do not use HackerOne Triage were exposed as well.
The delay in noticing is a process issue: the submission arrived on a Sunday at 05:00 PST, and the Slack notification that fires automatically for critical submissions worked during business hours but was unreliable over the weekend. Analysts working that weekend saw the report two hours after submission.
Impact
The attacker held a live session for a HackerOne Security Analyst and could use every feature that analyst had. Report titles and limited metadata were viewable through the HAS Inbox, Triage Inbox and Inbox features, and full report contents, including the initial vulnerability description and both internal and reporter-facing comments, were viewable through Report View. Access was limited to the customer programs that this particular analyst supports and does not cover HackerOne's entire customer base. Sensitive information of multiple objects was exposed, and HackerOne determined which reports were accessed from the executed GraphQL queries.
The severity was rated high using HackerOne's environmental score for the asset and CVSS 3.0 base metrics:
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H/CR:H/IR:H/AR:H
The minimum bounty for a high severity vulnerability on hackerone.com is $7,500, but paying that would have meant the same award regardless of whose account was compromised. The team weighed how much sensitive information the account could reach and treated the submission as critical, awarding $20,000.
Fix
Short-term measures, all completed and deployed:
- Bind sessions to IP addresses. A session is tied to the IP used at initial sign-in, and use from a different IP terminates it. Rolled out for HackerOne employees, including all Security Analysts, on 2019-11-25.
- Block sessions from restricted countries. Sessions are prevented from being used from a restricted list of countries. Rolled out for employees on 2019-11-26.
- Page on critical reports. The Slack notification for critical submissions was replaced by paging the on-call security person. Implemented 2019-11-25.
- Update program policy on sensitive information access. The bug bounty policy now states specific actions for when a hacker may have access to a HackerOne account, sensitive keys or sensitive data. Implemented 2019-11-26.
Mid-term measures:
- Detect and redact sensitive data in comments. When a comment is submitted, possible sensitive information such as session cookies and authentication tokens is detected and submission is blocked until confirmed, with the option to redact automatically. Implemented 2019-12-02.
- Add logging context. Improve logging around data access to speed up incident response.
- Bind sessions to devices. IP binding breaks for legitimate reasons and does not uniquely identify a user, for example behind NAT, so HackerOne will investigate binding sessions to a specific device and terminating the session when it is used elsewhere.
- Improve employee education. Expand security training for those who handle vulnerability reports, covering how to share technical reproductions without sharing keys, tokens and session information.
Long-term measures:
- Overhaul the Security Analyst permission model. Restrict analyst access within programs and allocate analysts to a more restrictive list of programs, keeping them to least privilege.
- Improve education for hackers. Increase guidance on delivering proof of critical severity vulnerabilities when sensitive information has been accessed.
HackerOne also audited existing comments for other leaked session cookies and found none.
Variants to test
- Cookie leakage in support and triage threads. Look for pasted cURL commands, browser console output, HAR excerpts or screenshots containing
Cookie:headers in any public or semi-public thread. A positive result is a session value that still authenticates when replayed from a different address. - Session reuse across networks. Capture your own session cookie, then replay it from a different IP, a proxy or a mobile connection. If the application keeps the session alive, the same weakness exists, and the question becomes whether a leaked cookie can be found.
- Privileged inboxes reachable with a low-privilege session. If you obtain any staff or analyst session, enumerate the inbox-style views and check whether default list responses already carry metadata such as program handles, assignees, reporter usernames and triage notes.
- Pre-forwarding queues. Where a platform inspects submissions before passing them to the customer, check whether that queue is reachable with the same session and exposes reports from programs that never opted into the service.
- Comment redaction bypass. Once automatic secret detection exists, try splitting a cookie across lines, encoding it, or placing it inside a code block or an attachment to see whether submission is still blocked.
Hunting notes
This class of bug hides in the places where people paste technical material: report comments, support tickets, chat integrations and review threads. The signal is not in recon of the target's endpoints but in the target's own workflow, particularly where staff reproduce submissions and quote their own requests back to the reporter. On the defensive side, the useful signals are sessions that survive a change of network and privileged roles whose cookie alone unlocks more than the interface suggests.
The impact case here rested on showing what the session could reach, not on the cookie itself: the researcher stated access to staff-level reports and multiple programs, and HackerOne's own investigation mapped the exposed fields feature by feature and used the executed GraphQL queries to determine which reports were accessed. That mapping, plus the sensitivity of the data behind the account, is what moved the award from the $7,500 high-severity minimum to $20,000.
What happened, in plain words
HackerOne is a company that runs a website, hackerone.com, where security researchers (often called hackers) report bugs to companies. HackerOne also runs a bug bounty program for its own website: if you find a flaw in hackerone.com, you can report it and get paid. The same website is used by HackerOne's own staff to read and sort those incoming reports.
On 24 November 2019, a HackerOne Security Analyst (a staff member whose job is to read incoming reports and decide whether they are real) was replying to a hacker about a report that could not be reproduced. In that reply, the analyst pasted part of a command copied from their browser, and that command still contained one of the analyst's own session cookies. A session cookie is a small piece of text your browser stores after you log in; the website uses it to recognise you on every later page load, so it works like a wristband you get at an event: show it and you are let back in without showing your ticket again. Anyone who copies that wristband can walk in as you.
The hacker noticed the cookie, used it to get into the analyst's account, and could then read reports. HackerOne was told at 13:08 UTC, revoked the cookie at 15:11 UTC, and later paid a $20,000 bounty. This article walks through the whole incident from zero: what each piece is, what the hacker did, what data was reachable, why it happened, and what HackerOne changed.
The setting: what the platform and its tools are
Before the incident makes sense, you need a picture of the website and the accounts on it.
A bug bounty program is an arrangement where a company invites outsiders to look for security flaws and pays for good reports. HackerOne hosts such programs for many companies, and it also hosts one for itself.
When a report arrives, someone has to read it. That is the job of a Security Analyst. Analysts have accounts with extra tools that ordinary users do not see. The report names three of them:
- Triage Inbox: the analyst's main list of reports to work through.
- Human-Augmented Signal (HAS) Inbox: a separate list for a paid service called Human-Augmented Signal. In that service, HackerOne staff look at a submission before it is passed on to the customer, to filter out noise. Reports in this inbox can belong to programs that do not otherwise use HackerOne's triage service.
- Inbox: the ordinary list that hackers and customers use to talk about reports.
To log in, an analyst goes through multi-factor Single Sign-On (SSO). Single Sign-On means one login is used across services; multi-factor means you need more than a password, for example a password plus a code from a phone app. Once that succeeds, the website gives the browser a session cookie for hackerone.com. From then on, every request the browser makes carries that cookie, and the server treats the request as coming from that logged-in person. The cookie is the proof of identity; the password and the second factor are only needed to obtain it.
An endpoint is simply a specific address on a website that does something, for example a page that lists your reports. A GraphQL query is a way for a web page to ask the server for exactly the data it needs; the page sends a structured request and the server answers with data. HackerOne later used records of these queries to work out which reports had been looked at.
The important point about this incident: it was not a broken endpoint. Nothing was hacked by guessing. A valid cookie was handed over by mistake, and the website accepted it from wherever it was used.
The setup: who was involved and what made it possible
Two people are involved: a HackerOne Security Analyst, and a member of the HackerOne community who sent a report to HackerOne's own bug bounty program. No special tools are described anywhere in the incident.
The only precondition was a human slip. The analyst was corresponding with the hacker about a submission that could not be reproduced. When an analyst cannot reproduce a report, they often go back and forth with the reporter, and in those replies they may include the steps they took, including the HTTP requests they made. In this case, part of a cURL command copied from a browser console was pasted into the reply without being cleaned up first.
Two terms there. cURL is a command-line tool for sending requests to a website; people often copy a request out of their browser's developer tools as a cURL command so they can replay it. The browser console (developer tools) is a panel built into browsers that shows the requests a page makes and lets you copy them. A copied request includes the headers the browser sent, and one of those headers carries the session cookie. So copying a request and pasting it is a normal, useful habit for an analyst, and also a way to leak the cookie if the cookie is not removed first.
Finding it: what the hacker's report said
The report the hacker submitted is short and direct. Under Summary it says:
You are disclose for me you session
In plain words: "you disclosed your session to me". The hacker is saying the analyst gave away their session.
Under Description it says:
You are gevi me your session on last report
I am can use your session(sorry)
Line by line: the first line says the analyst gave the session in the previous report (the earlier reply in the thread). The second line says the hacker is able to use that session, with an apology in brackets. The report then shows a redacted block, which is where the cookie itself would have been.
The impact statement reads:
HackerOneStaff Access, i can read all reports @security and more program
That is: access as HackerOne staff, the ability to read all reports in the security program and in more programs.
So the cookie was not discovered by probing or guessing. It was handed over in the analyst's own reply, and the hacker noticed it was live and usable. That is the whole "finding" step: reading a comment carefully.
Exploitation, step by step
Step 1: obtain the cookie from the report thread
The analyst tried to reproduce the hacker's submission and failed. In the back-and-forth that followed, parts of a cURL command copied from a browser console were not removed before posting, so the session cookie went out with the comment. The analyst's session cookie was posted on a HackerOne report at 12:48 UTC on 2019-11-24.
Why does this step matter? Because a session cookie is a bearer credential: whoever holds it is treated as the logged-in user. There is no second check at each request. Think of a hotel key card: the door does not know your face, only the card. Copy the card and you can open the door.
Step 2: replay the cookie
The hacker used the cookie to reach the analyst's account. The application does not block access when a session cookie is reused from another location, so the replay succeeded. "Replay" here just means sending the same cookie again from a different browser or machine.
Because a live session cookie was obtained, every platform feature available to that analyst was reachable. That in turn exposed the reports of the customer programs that this particular analyst supports. The analyst's normal multi-factor SSO login was bypassed entirely: the second factor protects the moment of login, not the cookie afterwards.
Step 3: read reports through the analyst's inboxes
Three features were used to reach sensitive information during the window of access. Each inbox loads only a minimal set of fields by default, just enough to draw the list on screen. Full vulnerability information is only disclosed when a report is opened. This is why the tables below are split between list views and the report view.
HAS Inbox. Used by analysts to block or forward submissions that HackerOne's backend flags as likely noise. The default view loaded up to 25 reports, oldest first, and displayed:
| Information | Note |
|---|---|
| latest_activity_at | ISO 8601 formatted date/time when the last activity (internal or external) was posted to the report. |
| created_at | ISO 8601 formatted date/time when the report was submitted. |
| title | The title of the report. |
| state | Indicates whether the report is open or closed. |
| substate | Indicates the report's state (new, triaged, needs-more-info, resolved, informative, spam, not-applicable, duplicate). |
| assignee (group name, username) | The group's name or user's username who is currently assigned to the report. |
| reporter (username) | The reporter's username. |
| program (handle, name) | The program's handle and name the report was submitted to. |
A few of those column names need translating. ISO 8601 is just a standard way of writing dates and times, like 2019-11-24T12:48:00Z. state and substate are the report's status: open or closed, and a finer label such as new, triaged or duplicate. assignee is the person or team currently responsible for the report. reporter is the person who submitted it. program handle is the short name a program uses on the platform.
Triage Inbox. The analyst's main inbox for interacting with reports. The default view loaded up to 100 reports, oldest first, and displayed:
| Information | Note |
|---|---|
| title | The title of the report. |
| substate | Indicates the report's state (new, triaged, needs-more-info, resolved, informative, spam, not-applicable, duplicate). |
| assignee (group name, username) | The group's name or user's username who is currently assigned to the report. |
| triage blockers (reasons, blocked by) | An object that contains the reason why a report is currently blocked on something other than the Security Analysts. |
| program (handle, triage notes) | The program's handle and name the report was submitted to. |
A triage blocker is a note saying why a report is waiting on someone else, for example the customer. Triage notes are internal remarks about the program. Notice that this list alone already reveals which programs exist, who handles them and what is stuck.
Inbox. The inbox hackers and customers use. The default view loaded up to 25 reports, sorted according to the selected view, and displayed:
| Information | Note |
|---|---|
| latest_activity_at | ISO 8601 formatted date/time when the last activity (internal or external) was posted to the report. |
| created_at | ISO 8601 formatted date/time when the report was submitted. |
| title | The title of the report. |
| state | Indicates whether the report is open or closed. |
| substate | Indicates the report's state (new, triaged, needs-more-info, resolved, informative, spam, not-applicable, duplicate). |
| reference | Any issue tracker reference that was set on the report. |
| reference_url | The full URL to any issue tracker's task when set. |
| severity_rating | Indicates the report's severity (null, none, low, medium, high, critical). |
| assignee (group name, username) | The group's name or user's username who is currently assigned to the report. |
| reporter (username) | The reporter's username. |
| program (handle, name) | The program's handle and name the report was submitted to. |
| custom_field_attributes (name) | All custom field attributes that reports can be filtered on. |
| assets (identifier) | All asset identifiers that reports can be filtered on. |
| groups (name) | All team member groups associated with the program the report was submitted to. |
| members (name, username) | All team members associated with the program the report was submitted to. |
An issue tracker is a separate system where companies keep a list of tasks; a reference is the ticket number in that system, and reference_url is a link to it. severity_rating is how serious the report is judged to be, from none to critical. custom_field_attributes are extra fields a program can add for filtering. assets are the things a program owns that can be tested, such as a website or an app. groups and members are the customer's own staff on the platform. This list view is therefore richer than the other two: it exposes team member names and usernames.
Step 4: open individual reports
Reports are viewable from all of the inboxes, and only one report can be viewed in the same window at a time. Opening a report loaded and displayed:
| Information | Note |
|---|---|
| vulnerability_information | The initial description of the vulnerability provided by the reporter. |
| comments (text, internal and to the reporter) | The comments between the reporter and the security team as well as internal comments. |
| latest_activity_at | ISO 8601 formatted date/time when the last activity (internal or external) was posted to the report. |
| created_at | ISO 8601 formatted date/time when the report was submitted. |
| title | The title of the report. |
| state | Indicates whether the report is open or closed. |
| substate | Indicates the report's state (new, triaged, needs-more-info, resolved, informative, spam, not-applicable, duplicate). |
| reference | Any issue tracker reference that was set on the report. |
| reference_url | The full URL to any issue tracker's task when set. |
| severity_rating | Indicates the report's severity (null, none, low, medium, high, critical). |
| assignee (group name, username) | The group's name or user's username who is currently assigned to the report. |
| reporter (username) | The reporter's username. |
| program (handle, name) | The program's handle and name the report was submitted to. |
| custom_field_attributes (name) | All custom field attributes that reports can be filtered on. |
| assets (identifier) | All asset identifiers that reports can be filtered on. |
| groups (name) | All team member groups associated with the program the report was submitted to. |
| members (name, username) | All team members associated with the program the report was submitted to. |
| weakness | The category of vulnerability. |
The two new rows are the important ones. vulnerability_information is the reporter's original description of the bug, which is often the most sensitive text in the whole report. comments includes both the conversation with the reporter and internal comments, which are normally hidden from outsiders. weakness is the type of bug, for example a category name from a standard list. This is the step where the actual content of reports was exposed, not just their titles.
Step 5: the response
At 13:08 UTC HackerOne received a report through its bug bounty program that the session cookie could be used to access sensitive information. An analyst began triaging at 15:08, and the session cookie was revoked at 15:11, three minutes later and two hours after it had been shared. Revoking means the server stops accepting that cookie, so it becomes useless to anyone holding it, like cancelling a key card at the front desk.
The Incident Response team started its investigation at 16:07 and concluded the technical investigation at 21:27, finding no malicious intent and that all copies of potentially sensitive information had been deleted. Impacted customers were alerted on 2019-11-25 at 08:49 that their information had been viewable to the hacker who submitted the vulnerability.
Why it happened
The immediate cause is human: a cURL command copied from a browser console was pasted into a report comment with the session cookie still in it.
The design decision that turned that mistake into an account takeover is that a session cookie was valid from any location. HackerOne knew of this risk and had accepted it, because many users work from mobile connections and through proxies, and blocking reuse would degrade their experience. A proxy is an intermediary server that forwards your traffic, so your apparent address can change between requests. The team had relied instead on the entropy of session cookies and on defences such as a strict Content Security Policy, and had not prioritised additional controls limiting where a cookie could be used.
Two more terms there. Entropy means randomness: a long random cookie is hard to guess, so nobody can invent one. Content Security Policy is a set of rules a website sends to the browser saying which scripts and sources are allowed to run, which reduces the damage a script injection can do. Neither defence helps when the real cookie is simply copied.
The second design factor is that a session cookie is enough on its own. Analysts normally pass multi-factor SSO to obtain one, but once obtained, the cookie carried the full set of platform features, including the HAS Inbox used to inspect reports before they are forwarded to the customer. That is why reports from programs that do not use HackerOne Triage were exposed as well.
The delay in noticing is a process issue: the submission arrived on a Sunday at 05:00 PST, and the Slack notification that fires automatically for critical submissions worked during business hours but was unreliable over the weekend. Slack is a chat tool used by teams; a notification there is easy to miss when nobody is watching. Analysts working that weekend saw the report two hours after submission.
What was exposed
The attacker held a live session for a HackerOne Security Analyst and could use every feature that analyst had. Report titles and limited metadata were viewable through the HAS Inbox, Triage Inbox and Inbox features, and full report contents, including the initial vulnerability description and both internal and reporter-facing comments, were viewable through Report View. Access was limited to the customer programs that this particular analyst supports and does not cover HackerOne's entire customer base. Sensitive information of multiple objects was exposed, and HackerOne determined which reports were accessed from the executed GraphQL queries.
The severity was rated high using HackerOne's environmental score for the asset and CVSS 3.0 base metrics:
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H/CR:H/IR:H/AR:H
CVSS is a standard scoring system for vulnerabilities. The string is a list of measurements, each a letter and a value. Reading it left to right: AV:N means the attack can happen over the network; AC:H means it is hard to carry out; PR:N means no privileges are needed beforehand; UI:R means a user has to do something, here the analyst pasting the cookie; S:C means the impact can spread beyond the vulnerable component; C:H, I:H and A:H mean high impact on confidentiality, integrity and availability; CR:H, IR:H and AR:H are the corresponding requirements of the affected organisation. The report rates the severity as high based on this vector.
The minimum bounty for a high severity vulnerability on hackerone.com is $7,500, but paying that would have meant the same award regardless of whose account was compromised. The team weighed how much sensitive information the account could reach and treated the submission as critical, awarding $20,000.
The fixes
Short-term measures, all completed and deployed:
- Bind sessions to IP addresses. A session is tied to the IP used at initial sign-in, and use from a different IP terminates it. An IP address is the number that identifies a device's location on the internet; tying the session to it means a copied cookie stops working from someone else's connection. Rolled out for HackerOne employees, including all Security Analysts, on 2019-11-25.
- Block sessions from restricted countries. Sessions are prevented from being used from a restricted list of countries. Rolled out for employees on 2019-11-26.
- Page on critical reports. The Slack notification for critical submissions was replaced by paging the on-call security person. Paging means alerting someone directly, like a phone ringing, rather than posting in a chat room. Implemented 2019-11-25.
- Update program policy on sensitive information access. The bug bounty policy now states specific actions for when a hacker may have access to a HackerOne account, sensitive keys or sensitive data. Implemented 2019-11-26.
Mid-term measures:
- Detect and redact sensitive data in comments. When a comment is submitted, possible sensitive information such as session cookies and authentication tokens is detected and submission is blocked until confirmed, with the option to redact automatically. Redact means remove or blank out. Implemented 2019-12-02.
- Add logging context. Improve logging around data access to speed up incident response. Logging is keeping a record of what happened, so investigators can reconstruct it later.
- Bind sessions to devices. IP binding breaks for legitimate reasons and does not uniquely identify a user, for example behind NAT, where many devices share one public address. So HackerOne will investigate binding sessions to a specific device and terminating the session when it is used elsewhere.
- Improve employee education. Expand security training for those who handle vulnerability reports, covering how to share technical reproductions without sharing keys, tokens and session information.
Long-term measures:
- Overhaul the Security Analyst permission model. Restrict analyst access within programs and allocate analysts to a more restrictive list of programs, keeping them to least privilege, meaning each person gets only the access their job needs.
- Improve education for hackers. Increase guidance on delivering proof of critical severity vulnerabilities when sensitive information has been accessed.
HackerOne also audited existing comments for other leaked session cookies and found none.
Things worth testing on other sites
These are the general lessons, phrased as checks you could try where you have permission to test.
- Cookie leakage in support and triage threads. Look for pasted cURL commands, browser console output, HAR excerpts or screenshots containing
Cookie:headers in any public or semi-public thread. A HAR file is a recording of browser network activity. A positive result is a session value that still authenticates when replayed from a different address. - Session reuse across networks. Capture your own session cookie, then replay it from a different IP, a proxy or a mobile connection. If the application keeps the session alive, the same weakness exists, and the question becomes whether a leaked cookie can be found.
- Privileged inboxes reachable with a low-privilege session. If you obtain any staff or analyst session, enumerate the inbox-style views and check whether default list responses already carry metadata such as program handles, assignees, reporter usernames and triage notes.
- Pre-forwarding queues. Where a platform inspects submissions before passing them to the customer, check whether that queue is reachable with the same session and exposes reports from programs that never opted into the service.
- Comment redaction bypass. Once automatic secret detection exists, try splitting a cookie across lines, encoding it, or placing it inside a code block or an attachment to see whether submission is still blocked.
Where this kind of bug hides
This class of bug hides in the places where people paste technical material: report comments, support tickets, chat integrations and review threads. The signal is not in scanning the target's endpoints but in the target's own workflow, particularly where staff reproduce submissions and quote their own requests back to the reporter. On the defensive side, the useful signals are sessions that survive a change of network and privileged roles whose cookie alone unlocks more than the interface suggests.
The impact case here rested on showing what the session could reach, not on the cookie itself: The hacker's impact statement claimed staff-level access to reports in the security program and more programs, and HackerOne's own investigation mapped the exposed fields feature by feature and used the executed GraphQL queries to determine which reports were accessed. That mapping, plus the sensitivity of the data behind the account, is what moved the award from the $7,500 high-severity minimum to $20,000.
Glossary
- Bug bounty program: an arrangement where a company invites outsiders to find security flaws and pays for good reports.
- Security Analyst: a HackerOne staff member who reads incoming reports and decides whether they are valid.
- Human-Augmented Signal (HAS) Inbox: a separate list where staff inspect submissions before they are forwarded to the customer.
- Inbox: the ordinary list hackers and customers use to discuss reports.
- Multi-factor Single Sign-On (SSO): one login shared across services, protected by more than a password, for example a code from a phone.
- Session cookie: a small piece of text stored by the browser after login that the website uses to recognise the logged-in user on later requests.
- Bearer credential: a secret that grants access to whoever holds it, with no further check.
- Endpoint: a specific address on a website that performs an action.
- GraphQL query: a structured request a web page sends to ask the server for specific data.
- cURL: a command-line tool for sending requests to a website.
- Browser console: a panel in the browser's developer tools that shows requests and lets you copy them.
- Header: an extra line of information sent with a web request, such as the cookie.
- Replay: sending the same cookie or request again, for example from a different machine.
- Revoke: make a cookie or session stop working on the server.
- ISO 8601: a standard way of writing dates and times.
- State / substate: the report's status, such as open or closed, and a finer label such as new, triaged or duplicate.
- Assignee: the person or team currently responsible for a report.
- Reporter: the person who submitted a report.
- Program handle: the short name a program uses on the platform.
- Triage blocker: a note saying why a report is waiting on someone else.
- Triage notes: internal remarks about a program.
- Issue tracker: a separate system where companies keep a list of tasks.
- Reference / reference_url: the ticket number in an issue tracker and a link to it.
- Severity rating: how serious a report is judged to be, from none to critical.
- Custom field attributes: extra fields a program adds so reports can be filtered.
- Assets: the things a program owns that can be tested, such as a website or an app.
- Groups / members: the customer's own staff on the platform.
- vulnerability_information: the reporter's original description of the bug.
- Comments: the conversation on a report, including internal notes hidden from outsiders.
- Weakness: the category of vulnerability.
- Incident Response: the team and process that handle a security incident.
- Proxy: an intermediary server that forwards your traffic, so your apparent address can change.
- Entropy: randomness; a long random cookie is hard to guess.
- Content Security Policy: rules a website sends to the browser saying which scripts and sources may run.
- Slack: a chat tool used by teams for notifications and discussion.
- PST: Pacific Standard Time, a time zone used in the report.
- CVSS: a standard scoring system for vulnerabilities.
- IP address: the number identifying a device's location on the internet.
- Paging: alerting a person directly, for example by phone, rather than posting in a chat room.
- Redact: remove or blank out sensitive text.
- Logging: keeping a record of what happened for later investigation.
- NAT: a setup where many devices share one public IP address.
- Least privilege: giving each person only the access their job needs.
- HAR file: a recording of browser network activity.