Skip to content
IDOR Write-up Beginner

My Bug Bounty Comeback: Two Findings, Two Lessons Learned

The author found an IDOR where one user could modify another user's shopping basket by swapping the basket identifier, and a GraphQL query that revealed whether an email address was registered. The IDOR was closed as a duplicate (P4) and the enumeration as informational (P5), so neither earned a bounty.

doordiefordream Follow

Published on doordiefordream.medium.com

Due to personal reasons, I had to step away from bug bounty hunting for a while. During that break, the security landscape continued to evolve.

DOD cyber solutions, on doordiefordream.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 server used the basket identifier to look up and modify the basket without verifying that the authenticated user owned it.

Impact

One authenticated user could modify another user's shopping basket, though the report notes that obtaining another user's basket identifier may be difficult and the issue was a duplicate.

What the attacker needed

Two accounts controlled by the tester; knowledge of another user's basket identifier

The fix

The server should verify that the authenticated user owns the basket before allowing any create, read, update, or delete operation.

How it was found

  1. Create two accounts controlled by the tester.
  2. Log in as User 1, add products to a basket, and capture the request to find the basket identifier.
  3. Log in as User 2, add products to a second basket, and capture that request.
  4. While authenticated as User 2, replace User 2's basket identifier with User 1's identifier and test create, read, update, and delete operations.
  5. Log back in as User 1 and check whether the basket was changed.

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.

An IDOR happens when a website uses a simple identifier (like a basket number) to decide what data to show, but forgets to check that the person asking actually owns that data. Here, one shopper could change another shopper's basket just by using their basket number. Separately, a GraphQL query (a way to ask an API for specific data) let the author check if an email address had an account, which is called user enumeration.

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 doordiefordream

View all

6 more disclosed reports, 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.