Skip to content
IDOR Write-up Beginner

Hacking my college intranet (Bug Bounty)

The intranet exposed student details through an endpoint that took a base64-encoded student ID, and the server did not check that the requester owned that ID. An authenticated student could change the ID to another student's and read their personal and banking data, and could enumerate IDs to harvest everyone's records.

Boogsta Follow

Published on medium.com

This bug took place on the intranet of the college I was studying at back in 2019 so this required a user/attacker to have access to the intranet already with some sort of valid credentials. First thing to do in any bug hunt is to see what is being sent through the network. to my surprise I seen a request that was…

Boogsta, 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 endpoint trusted the student ID supplied in the URL and returned the matching record without verifying that it belonged to the authenticated user.

Impact

An authenticated student could read other students' names, phone numbers, home addresses and, where applicable, banking information, and could enumerate all records.

What the attacker needed

Valid intranet credentials; knowledge of student ID format

The fix

The issue was fixed within a week after being reported to the head of IT.

How it was found

  1. Observe the request to the student details endpoint and notice the student ID is base64-encoded in the URL.
  2. Decode the base64 to confirm it is your own student ID.
  3. Find a friend's student ID (for example from their email address) and base64-encode it.
  4. Replace the ID in the URL with the encoded friend's ID and send the request with your authorisation header.
  5. Confirm the response contains the friend's details.
  6. Write a script that iterates through the known ID prefix and numeric range, encodes each ID, requests the endpoint, and saves successful responses.

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 app sometimes puts an identifier in the URL, like a student number, and uses it to decide whose data to show. If the server does not check that the logged-in user is allowed to see that particular record, anyone can swap in a different number and see someone else's information. 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.

More by Boogsta

View all

2 more disclosed reports, best first.

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.