Skip to content
IDOR Disclosed report Beginner

Insecure Direct Object Reference (IDOR) Allows Viewing Private Report Details via /bugs.json Endpoint

The /bugs.json endpoint accepted an organization_id and a text_query without checking that the caller was allowed to see the matching reports. An attacker could search another organisation's private reports and read their titles, URLs, states, severities, timestamps and reporter names.

bate5a Follow

Originally disclosed on HackerOne

Critical 9.3 View original
  • Triaged in 5 days
  • Fixed in 12 days
  • Paid in 11 days
  • Disclosed after 21 days

Hi H1 i hope you are Doing Well Today :)

Explaining

  • I Found that any private reports can be accessed by sending a POST request to the /bugs.json endpoint. This vulnerable endpoint requires organization_id, which takes the organization's ID as a value. It also requires text_query, which is used to search for report IDs. within this org , Now you can append the example organization ID mentioned on the policy page, 58579. and For the text_query, you can simply append a single digit, such as 1, or any other single number. This will query all reports containing this digit, provided they belong to the specified organization

Step To Reproduce

1.Send a POST request to this endpoint. You can change the organization_id to anything, but leave it as it is


POST /bugs.json HTTP/2
Host: hackerone.com
Cookie:  __Host-session=Your-Session-Here
X-Csrf-Token: Your-Csrf-Here
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Te: trailers
Content-Length: 390

text_query=1&organization_id=58579&persist=true&sort_type=pg_search_rank&view=message&substates%5B%5D=new&substates%5B%5D=needs-more-info&substates%5B%5D=triaged&substates%5B%5D=resolved&substates%5B%5D=informative&substates%5B%5D=not-applicable&substates%5B%5D=duplicate&substates%5B%5D=retesting&substates%5B%5D=pending-program-review&substates%5B%5D=spam&duplicates_must_have_no_ref=true

Poc Video

█████████

Impact

idor lead to view private reports title,url,id,state,substate,severity_rating,readable_substate,created_at,submitted_at,reporter_name

The original report as published on HackerOne, by bate5a. 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

Root cause

Likely the endpoint used the supplied organization_id to scope the search but never verified that the requesting user was a member of that organisation.

Impact

An authenticated user could view private report metadata such as title, URL, state, severity, timestamps and reporter name for another organisation's reports.

What the attacker needed

A valid account and session; knowledge of a target organisation ID

How it was found

  1. Send a POST request to the /bugs.json endpoint with a session cookie and CSRF token.
  2. Set organization_id to the target organisation's ID.
  3. Set text_query to a single digit so the search matches many reports.
  4. Read the returned private report details for that organisation.

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 website often uses an identifier (here an organisation number) to decide which records to show. If the server trusts that number without checking whether you belong to that organisation, you can swap in someone else's number and see their data. This is called an insecure direct object reference, or IDOR: the object is the organisation, and the reference is the number you send.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by bate5a

View all

1 more disclosed report, 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.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.