Skip to content
IDOR Write-up Beginner

I Changed One Number. Then I Found Everything.

A school registration portal exposed student records through a sequential registration number parameter with no authorization check, allowing enumeration of other students' data. The same unsanitised parameter was also vulnerable to SQL injection, which the author used to dump a user table containing admin and management credentials across multiple school branches.

medium.com

Published on medium.com

How a single predictable parameter unraveled into IDOR, SQL injection, multi-school data exposure, and admin credential leakage — all from a school registration portal.

Drash Tyagi, 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 application trusted a user-supplied record identifier for both object lookup and database queries without any authorization check or parameterisation.

Impact

Student personal data, including minors' details, and admin credentials across multiple school branches could be accessed; the text notes no alerts or logs were likely triggered.

What the attacker needed

No account needed; knowledge of a receipt URL

The fix

The text does not state that a fix was applied; it should be fixed by adding authorization checks on every data endpoint, using non-sequential or tokenised identifiers, and using parameterised queries.

How it was found

  1. Open a payment receipt URL containing a sequential registration number.
  2. Change the registration number by one and observe another student's full registration data returned without error.
  3. Probe further endpoints and notice the same parameter is not sanitised before reaching database queries.
  4. Run an automated SQL injection tool against the parameter to dump the user table.
  5. Change the directory in the URL path to reach records from a previous academic year.

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.

A web page used a number in its address to decide which student's receipt to show, but never checked whether the person asking was allowed to see that student. By changing the number by one, the author could view someone else's records, and the same input also let them run database commands that revealed staff login details.

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.