Skip to content
IDOR Write-up Beginner

The “Unlimited Leave” Hack I Found at My College

The student portal used a leave ID in the URL without checking that the requesting student owned that leave, so changing the ID let a student download their own unapproved outing pass or another student's pass. This bypassed the mentor and warden approval workflow.

medium.com

Published on medium.com

Being a college student living in a hostel means every outing feels like a covert military mission.

Swarnim Bandekar, 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 looked up the outing pass by the leave ID from the request without verifying that the leave belonged to the authenticated student or that it had been approved.

Impact

A student could download their own outing pass before approval and could access other students' outing passes by guessing IDs, bypassing the mentor and warden approval workflow.

What the attacker needed

A student account on the portal; ability to intercept HTTP requests; a valid or guessable leave ID

The fix

The issue was patched in four days after responsible disclosure.

How it was found

  1. Apply for a new leave and observe the request that generates the outing form.
  2. Intercept the request and change the leave ID to an older approved one or another student's ID.
  3. The server returns the outing pass without checking ownership or approval.

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 website often puts an identifier in the address, like a number for a leave request. If the server does not check that the logged-in user is allowed to see that particular record, anyone can change the number and read someone else's 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.