Skip to content
IDOR Write-up Beginner

Hunting an Unauthenticated IDOR in a Registration API

A registration API endpoint returned registration details for any supplied incident identifier without requiring authentication or checking ownership. An attacker with a valid identifier could retrieve other users' email addresses, nicknames and internal registration identifiers.

am8337 Follow

Published on medium.com

While assessing the registration workflow of a web application during a bug bounty engagement, I came across an interesting API request that caught my attention. Registration endpoints are often overlooked because they are assumed to contain only temporary data, but they can sometimes expose sensitive information if…

Adham Mohamed, 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

The endpoint used a client-supplied identifier to look up a record and returned it without any authentication or ownership check.

Impact

An attacker who obtains a valid IncidentId could retrieve registration information including email addresses and nicknames without logging in, which could enable user enumeration, privacy violations and targeted phishing; the program rated this Low because the 24-character hexadecimal identifier made brute-force guessing impractical.

What the attacker needed

A valid IncidentId; no account needed

The fix

The endpoint should require authentication and verify that the authenticated user owns the requested registration record, rather than relying on identifier randomness.

How it was found

  1. Walk through the registration flow while intercepting requests.
  2. Notice the FindRegisterInfo request that takes an IncidentId parameter.
  3. Send the request with a valid IncidentId and observe registration details returned.
  4. Remove all cookies and authentication headers and resend; the same data is returned.
  5. Repeat from a different IP address and with a different valid IncidentId; other records are returned.

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 (Insecure Direct Object Reference) happens when a website lets you ask for a record by its identifier and does not check that the record belongs to you. Here, the registration API returned someone's sign-up details to anyone who knew or guessed the identifier, even without logging in. The identifier was long and random, so guessing was hard, but the missing check was still a real flaw.

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.

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.