Skip to content
IDOR Write-up Beginner

IDOR in ‘stuno’ parameter leading to unauthorized data exposu

An API endpoint that returns student grading information accepted a student number in a request parameter without checking that the caller was entitled to that student's data. By changing the number to another student's ID, an attacker could retrieve that student's full grading history.

akili Follow

Published on medium.com

Preface: the proper personnel have been notified of this vulnerability and it has since been fixed.

akili, 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 API endpoint looked up grading records purely from the supplied student number and degree programme code without verifying that the authenticated user owned that student number.

Impact

An attacker could read the full grading history of any student whose ID they knew, and could automate the requests to collect data on many students, since student IDs are readily available within the student population.

What the attacker needed

An authenticated student account; knowledge of another student's ID; ability to intercept HTTP requests

The fix

The report says the issue was fixed; its suggested remedies were to stop exposing raw student IDs as parameter values and to add authorization checks so users cannot request another individual's records.

How it was found

  1. Intercept the two GET requests the grading page makes.
  2. Change the stuno parameter in the first request to another student's ID.
  3. Read the degreeProgramCode value from the first response.
  4. Send the second request with the other student's stuno and the returned degreeProgramCode as dprog.
  5. Record the grading data returned in the second response.

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.

Many websites use a number or name in a link to pick which record to show, such as a student number. If the server trusts that number and does not check that the person asking is allowed to see that record, anyone can swap in someone else's number and read their data. This is called an insecure direct object reference, or IDOR.

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.