Skip to content
IDOR Write-up Intermediate

This is a writeup of how can I get critical $$$$ bounty from PII

A GraphQL query called companyUserInfo lacked access control, allowing an unauthenticated attacker to retrieve PII of any user by supplying a store hash and a numeric customer ID. The attacker could brute-force customer IDs to exfiltrate data for many users.

0xNayel Follow

Published on medium.com

First let me introduce myself, I am 0xNayel. I am a Bug hunter for more than two years on Hackerone.

0xNayel, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the GraphQL query companyUserInfo was implemented without any authentication or authorization checks, as indicated by the comment 'Doesn't require a Token'.

Impact

An unauthenticated attacker could retrieve PII (email, name, phone number, role) of any user by brute-forcing the numeric customer ID, with no rate limiting observed.

What the attacker needed

No authentication required; Knowledge of a valid store hash; Ability to send GraphQL requests

The fix

The vulnerability was fixed by the company, as stated in their email.

How it was found

  1. Open Burp and capture requests to identify technologies and flow.
  2. Send an introspection query to list GraphQL queries.
  3. Search JavaScript files for GraphQL-related terms and find the companyUserInfo query.
  4. Test the query with your own account to confirm it works.
  5. Test with another account's customerId to confirm IDOR.
  6. Test without authentication to confirm no access control.

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 write-up has not been written yet. The Original tab links to the source.

The app had a GraphQL query that returned user details. It did not check if the person making the request was logged in or allowed to see that data. So anyone could ask for other users' information by guessing their numeric ID.

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 0xNayel

View all

1 more disclosed report, best first.

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.