View any user email using the Team's audit log section
A sandbox program's audit log displayed the email address of any HackerOne user when a bounty was awarded to them via the API. An attacker with a sandbox program and an API token could therefore reveal the email addresses of arbitrary users by awarding them a bounty.
- Triaged in 5 days
- Paid in 16 days
- Disclosed after 20 days
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
What the report shows
The target is the HackerOne API at api.hackerone.com, specifically the bounty-awarding endpoint of a sandbox program. The researcher found that awarding a bounty to an arbitrary user causes that user's email address to be written into the team's audit log, which the token holder can then read.
The reproduction steps are short and self-contained:
- Create a sandbox program at
https://hackerone.com/teams/new/sandbox. - Create an API token with the report manager role at
https://hackerone.com/organizations/demo/settings/api_tokens. - Obtain the user ID of any HackerOne account.
- Award a bounty to that user through the API. In the payload,
recipient_idis the victim's user ID and{id}is the sandbox program's ID.
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);
});
- The request returns a success message.
- Open the audit log section of the sandbox team.
- The log contains the line
"@api" awarded a $51.00 bounty to "[redacted]".
The audit entry resolves the recipient to an email address rather than to a username or opaque identifier, so the token holder learns the email of any user whose ID they know. The report's impact statement is a single line: view emails of other users. The platform records the report as critical with a CVSS score of 9.3, weakness Information Disclosure, disclosed on 26 March 2024. The report does not describe a fix.
Root cause
The report does not explain why the audit log shows the email address. The bounty endpoint accepted the supplied recipient_id, and the audit entry then showed the associated email. The email appears in the audit log entry, not in the bounty response.
Impact
The attacker needs a sandbox program and a report manager token. With those, and a user ID, they can recover the email address tied to that account. If user IDs can be guessed or enumerated, an attacker could harvest addresses in bulk. The report does not claim more than email disclosure, and the practical consequences (targeting, credential-stuffing lists, linking accounts to identities) follow from that disclosure rather than from anything the report states.
How this kind of bug works
Audit logs and activity feeds are secondary views over primary data. They are built to be human-readable, so developers join in related records and print friendly fields. When the joined record is a user, the convenient friendly field is often the email, and the code that assembles the log entry does not apply the same authorisation checks as the user-facing profile endpoint. The result is a data flow from a sensitive column into a page that a broader set of roles can read.
The bug class is an access-control and data-minimisation failure: a low-privilege actor can cause a lookup on an arbitrary identifier and observe a sensitive attribute of the result. Defences are field-level allowlists for anything rendered in logs, avoiding direct object references to other tenants' users in write operations, and treating audit logs as a privileged surface that needs its own review.
How to test for it
- Map the write operations available to your role: bounty awards, invitations, mentions, transfers, assignments. Anything that names another user is a candidate.
- Perform the operation against a second account you control, then read every derived view: audit log, activity feed, notifications, exports, webhooks, emails sent to administrators.
- Look for fields that should not be there: email, phone, real name, internal IDs, tenant identifiers.
- Repeat with an identifier you do not own and observe whether the operation is accepted and what the log shows.
- Check whether identifiers are enumerable. Sequential integers or short hashes make bulk disclosure practical and raise severity.
- Compare what the same data looks like through the proper endpoint. If the profile API hides the email but the audit log shows it, you have a clear inconsistency to demonstrate.
A positive result is a log entry or notification that contains a sensitive attribute of an account you do not control, produced by an action your role is allowed to take. Common false positives: the address belongs to your own account, the value is a masked form, the field is a public display name that happens to look like an address, or the operation was rejected and the log merely echoes your input.
How it is fixed
Render audit entries with an allowlisted set of fields, using display names or opaque identifiers for referenced users. Do not join sensitive columns into log views. Where an email must appear, mask it. Apply the same authorisation model to audit logs and exports as to the underlying records, and restrict who can read entries that reference other accounts.
Hunting notes
These bugs cluster around multi-tenant features that reference users by ID: bounty and payout flows, team invitations, transfer of ownership, comment mentions, API tokens scoped to organisations. Recon signals include sandbox or demo environments, role-scoped API tokens, and audit or activity endpoints that return richer objects than the main API. To make the report land, show the full chain from a role any user can obtain to a sensitive field of an account you do not control, demonstrate the disclosure with a user ID you do not control, and state the disclosure precisely rather than inflating it.
What happened, in plain words
HackerOne is a platform where security researchers report bugs to companies and can receive money, called a bounty, for useful reports. A team on HackerOne can create a sandbox program, which is a practice copy of a program used for testing. The platform also offers an API, which is a way for programs to talk to the platform directly instead of clicking through a website. The researcher found that one API action, awarding a bounty, quietly reveals the email address of the person who receives it.
Here is the chain in everyday terms. Imagine a club where members are known only by a membership number. A staff member can hand a cash prize to any membership number, and afterwards the club's noticeboard prints "a prize was given to [the member's home address]". The noticeboard was meant to be a friendly summary, but it exposes something private. On HackerOne, the "noticeboard" is the audit log, a page that records every action taken on a team so people can review what happened. The "membership number" is the user ID, a number that identifies each account.
The researcher could create a sandbox program and an API token, which is a password-like key that lets a script act on your behalf. With that token they could award a bounty to any user ID. The bounty itself succeeded, and the audit log then showed the recipient's email address. If user IDs can be guessed, someone could try many of them and collect many email addresses.
The platform rated this report critical, with a CVSS score of 9.3, a standard severity score where 10 is the worst. The weakness is classified as Information Disclosure, meaning private information was exposed. The report was disclosed on 26 March 2024. It does not describe how the issue was fixed.
The steps, line by line
The researcher's reproduction is short. Each step matters because it shows the whole chain from something any account holder can set up to a private field of someone else's account.
- Create a sandbox program at
https://hackerone.com/teams/new/sandbox. A sandbox is a practice team, so testing does not touch a real program. - Create an API token with the report manager role at
https://hackerone.com/organizations/demo/settings/api_tokens. A role is a set of permissions; the token used the report manager role. The token is the key the script will use. - Copy the user ID of any HackerOne account. The ID is the only thing needed to point at a victim.
- Award a bounty to that user through the API. In the payload below,
recipient_idis the victim's user ID and{id}is the sandbox program's ID.
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);
});
What the pieces do:
inputBodyis the message sent to the platform, written in JSON, a common text format for structured data. It says the object is a bounty and lists its attributes: who receives it (recipient_id), how much (amount), a reference label, a title, the currency and a severity rating.userandpasswordhold the token credentials.btoaencodes them into the Basic authentication format, a standard way of sending a username and password with a request.- The
Authorizationheader carries those credentials. Headers are extra lines of information attached to a request, like the label on a parcel. Content-TypeandAccepttell the server the body is JSON and that JSON is expected back.fetchsends the request tohttps://api.hackerone.com/v1/programs/{id}/bountiesusing the POST method, which is used to create something. The response is converted to JSON and printed to the browser console.
- The request returns a success message. This matters because the email appears later, in the audit log.
- Open the audit log section of the sandbox team. The audit log is the record of actions on the team.
- The log contains the line
"@api" awarded a $51.00 bounty to "[redacted]".
That last line is the bug. The log names the recipient by email address instead of by username or ID, so anyone who can read the log learns the address behind the ID they supplied. The report's impact statement is one line: view emails of other users.
In general, how this kind of bug works
Audit logs and activity feeds are secondary views built on top of the main data. They are made to be readable by people, so developers often pull in related records and print friendly fields. When the related record is a user, the convenient friendly field is often the email address, and the code that builds the log entry may not apply the same permission checks as the normal profile page. The result is private data flowing into a page that more roles can read.
This is an access-control and data-minimisation failure: a low-privilege user can trigger a lookup on any identifier and see a sensitive attribute of the result. The usual defences are to allow only a fixed list of fields in logs, to show display names or opaque IDs for referenced users, to mask emails where they must appear, and to treat audit logs as a privileged surface with their own review.
If you want to look for similar issues, a simple approach works:
- List the actions your role can take that name another user: awards, invitations, mentions, transfers, assignments.
- Do the action against a second account you control, then read every derived view: audit log, activity feed, notifications, exports, webhooks, emails to administrators.
- Look for fields that should not be there: email, phone, real name, internal IDs.
- Repeat with an identifier you do not own and see whether the action is accepted and what the log shows.
- Check whether identifiers are easy to guess, which would make bulk collection practical.
- Compare with the proper endpoint. If the profile page hides the email but the audit log shows it, you have a clear inconsistency to demonstrate.
A positive result is a log entry or notification containing a sensitive attribute of an account you do not control, produced by an action your role is allowed to take. Common false positives: the address is your own, the value is masked, the field is a public display name that looks like an address, or the action was rejected and the log merely echoes your input.
Glossary
- API: a way for software to talk to a service directly, without a browser page.
- API token: a password-like key that lets a script act on your account with limited permissions.
- Audit log: a record of actions taken on a team, kept so people can review what happened.
- Authentication header: an extra line in a request that carries credentials.
- Basic authentication: a standard way of sending a username and password together in a request.
- Bounty: a payment made for a useful security report.
- CVSS: a standard score from 0 to 10 for how severe a vulnerability is.
- Data minimisation: the principle of showing only the data that is needed.
- Endpoint: a specific address on a service that accepts requests.
- Enumeration: trying many identifiers in sequence to collect results.
- Information Disclosure: a weakness where private information is exposed to someone who should not see it.
- JSON: a text format for structured data, used in requests and responses.
- Payload: the body of a request, containing the data being sent.
- POST: an HTTP method used to create something on a server.
- Role: a set of permissions given to an account or token.
- Sandbox: a practice copy of a program used for testing.
- User ID: a number that identifies an account on the platform.