Private Program Disclosure in /:handle/reports/draft.json endpoint
The /reports/draft.json endpoint returned different HTTP status codes depending on whether a handle belonged to an external program that also ran a private program, versus other handle types. An unauthenticated attacker could use this difference to tell that a given handle was linked to an invite-only program.
- Triaged in 11 hours
- Fixed in 22 hours
- Paid in 5 days
- Disclosed after 5 days
Summary by the program
Analysis of the researcher's PoC revealed an issue in the HTTP codes returned for the /reports/draft.json endpoint:
sandboxed team: https://hackerone.com/[sandboxed team handle]/reports/draft.json
Returned 401
EP (external program): https://hackerone.com/[external program handle]/reports/draft.json
Returned 404
EP + private program: https://hackerone.com/[invite-only team handle]/reports/draft.json
Returned 200 (empty response) <-- This is the information disclosure
private team without EP: https://hackerone.com/[invite-only team handle]/reports/draft.json
Returned 401
public team: https://hackerone.com/[public team handle]/reports/draft.json
Returned 200
user: https://hackerone.com/[user handle]/reports/draft.json
Returned 404
We have corrected the issue by ensuring the same HTTP code is returned for both EP and EP + private program handles.
The report
PoC revealed an issue in the HTTP codes returned for the /reports/draft.json endpoint:
private team: https://hackerone.com/[invite-only team handle]/reports/draft.json Returned {"error":"You need to sign in or sign up before continuing."} with Status Code:401 OK
user: https://hackerone.com/[user handle]/reports/draft.json Returned 404 thanks
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's authorisation check ran in a different order for handles tied to an external program plus a private program, so the response code differed from other handle types.
Impact
An unauthenticated visitor could confirm that a given handle was associated with an invite-only programme, disclosing its private status; no report contents were exposed.
What the attacker needed
No account needed; know the target handle
How it was found
- Request the draft reports endpoint for a sandboxed team handle and note the 401 response.
- Request it for an external program handle and note the 404 response.
- Request it for a handle belonging to an external program that also runs a private program and note the 200 empty response.
- Compare with a private team without an external program (401), a public team (200) and a user handle (404).
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.
Every web address can answer with a numeric status code, such as 401 for 'you must sign in' or 404 for 'not found'. Here the site answered differently for one kind of account, so someone who was not logged in could work out that a particular company was running a secret, invitation-only bug bounty programme.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.