Distinguish EP+Private vs Private programs in HackerOne
Two unauthenticated endpoints returned different HTTP status codes depending on whether a HackerOne program was sandbox, external, external plus private, private, public or a user. By comparing the responses, an attacker could tell an external-plus-private program apart from a private one without logging in.
- Triaged in 3 days
- Fixed in 5 days
- Paid in 12 days
- Disclosed after 59 days
Hi! I would like to provide the following matrix in order to distinguish between EP+Private vs Private programs in HackerOne, without the need to login.
I am using two endpoints. These are:
If ENTITY is SANDBOX the response in 1 is 401 and the response in 2 is 401 If ENTITY is EP the response in 1 is 500 and the response in 2 is 401 If ENTITY is EP+Private the response in 1 is 500 and the response in 2 is 401 If ENTITY is Private the response in 1 is 401 and the response in 2 is 401 If ENTITY is Public the response in 1 in 500 and the response in 2 is 200 If ENTITY is User the response in 1 is 404 and the response in 2 is 404
As you may see from the above matrix, you can distinguish between EP+Private and Private programs based on the Return number.
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 two endpoints handled unknown or restricted program types inconsistently, returning a server error for some program types and an authorisation error for others, which leaked the program's type.
Impact
An unauthenticated person could tell whether a named program is external-plus-private rather than private.
What the attacker needed
No account needed; know the program name
How it was found
- Request the first thanks endpoint for a given program name.
- Request the second thanks endpoint for the same program name.
- Compare the two status codes against the matrix to infer the program type.
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 request gets a status code back, such as 200 for success, 401 for 'not allowed' and 500 for a server error. The author found that two public URLs on HackerOne answered with different codes depending on what kind of program the name belonged to. That let anyone work out whether a program was private or external-plus-private without having an account.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.