Skip to content
IDOR Write-up Beginner

How Chaining Two IDORs Led to a Mass Data Harvesting of a Governm

Two IDOR vulnerabilities existed: one endpoint returned student profile pictures by National ID, and another returned arbitrary attachments by sequential attachID. An attacker could enumerate attachments to obtain a spreadsheet containing valid National IDs, then use those IDs to fetch every student's photo, enabling mass harvesting of personal and financial data.

0xmones Follow

Published on medium.com

Hello, hackers and bug hunters! Today, I’m thrilled to share a story about patience ,And how a seemingly “dead-end” target turned into a goldmine of data through a beautifully chained exploit.

0xmones, 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 server performed no object-level authorization checks, trusting user-supplied identifiers (attachID and stID) to decide which records to return.

Impact

An attacker could harvest the complete identity of every student, including financial history, phone numbers, home addresses, and official photos.

What the attacker needed

A free account; knowledge of a valid attachID; a valid National ID

How it was found

  1. Register a fake account on the portal.
  2. Download a document from the fake profile and note the attachID parameter.
  3. Change the attachID by one digit and observe another student's file being downloaded.
  4. Increment the attachID repeatedly to obtain many files, including a large spreadsheet of student records.
  5. Take a real National ID from the spreadsheet and use it in the getQPic stID parameter.
  6. Observe the corresponding student's photo being 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 is when a website lets you change an identifier in a link (like a number) and see someone else's data because it never checks that the data belongs to you. Here, one link showed files by a simple number, and another showed photos by a national ID number. By walking through the file numbers, the researcher found a spreadsheet full of real national IDs, which then unlocked the photo endpoint for every student.

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.