Skip to content
Info disclosure Disclosed report Intermediate

Disclosure of external users invited to a specific report

A DELETE endpoint on a report's external-user resource returned different HTTP status codes depending on whether a given user was an external participant on that report, letting an attacker enumerate the external users of any non-public report. This could reveal which researchers know about an unresolved vulnerability.

kirils Follow

Originally disclosed on HackerOne

  • Triaged in 43 hours
  • Fixed in 10 days
  • Paid in 16 days
  • Disclosed after 23 days

It is possible to verify whether a specific user is invited to participate as an external user to a specific report. Thus it is possible to enumerate all external users added to a specific (non-public) report of interest.

PoC:

curl 'https://hackerone.com/reports/(**report_id**)/external_users/(**user_id**)' -X DELETE -H 'User-Agent: Mozilla/5.0' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'X-CSRF-Token: (**session**)' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: (**session**)' -D-

session parameters must be copied from a recent request in legitimate user's session.

Different HTTP status codes will be returned depending on whether the user is participating as an external user for a specific report:

  • HTTP/1.1 404 Not Found => yes
  • HTTP/1.1 500 Internal Server Error => no
  • (HTTP/1.1 412 Precondition Failed means you provided invalid session parameters)

user_id can either be enumerated from 1000 up, or for a more realistic scenario, user ID can be gathered from https://hackerone.com/leaderboard/all-time or https://hackerone.com/hacktivity/new. ID of a specific username can of course be pulled by any visitor even without authentication: curl 'https://hackerone.com/(**username**)' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'X-Requested-With: XMLHttpRequest'

Impact: This vulnerability may prove critical for non-resolved reports. This basically provides an attacker a list of researchers who know about an existing 0day and are not getting paid.

Unfortunately more and more of the researchers on h1 are proving to be greedy (see #154096 et al.) or at least "in-for-the-money". These people could easily succumb to a black market offer from the attacker and you've just given him the list of researchers to contact.

Suggested fix: Check access rights to the report_id first and make sure to return the same status code and content in both cases. For extra measure make sure to drop out of execution flow at a single location to curb timing side channel attacks.

The original report as published on HackerOne, by kirils. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the endpoint checked the report's access rights and the external-user relationship inconsistently, returning a distinct status code for 'exists' versus 'does not exist' instead of a uniform response.

Impact

An attacker could learn which external researchers are invited to a specific non-public report, which may be critical for unresolved reports because it reveals who knows about an existing 0day.

What the attacker needed

A valid session; a non-public report identifier; user identifiers to test

How it was found

  1. Copy the session and CSRF token parameters from a recent request in a legitimate user's session.
  2. Send a DELETE request to the report's external_users path with a chosen report identifier and user identifier.
  3. Read the returned status code: 404 means the user is an external participant, 500 means they are not.
  4. Repeat with different user identifiers, gathered from the leaderboard, hacktivity or a username lookup, to enumerate the full list.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A website sometimes answers a request with different error codes depending on a hidden fact, such as whether a particular person is on a private list. By trying many user identifiers and watching which code comes back, an attacker can rebuild that private list without ever being allowed to see it. This is called enumeration: learning secret information just from how the server responds.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by kirils

View all

1 more disclosed report, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.