How I Hacked My Colleges Student Portal
The student portal's fee status endpoint accepted an admission number parameter and returned another student's fee details and personal information without checking ownership. An attacker could change the admission number to view other students' email, phone, address and exam marks.
Published on infosecwriteups.com
Hey guys, I am back again with another writeup about how I found a seviour bug in my college’s student portal which leads to a data leak of every student in my college. Basically it is a third party web portal for students in which students can check their time table, attandance, profile, fee dues and many other stuff.
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 trusted the admission number supplied in the request and returned the matching student's data without verifying that the requester was that student.
Impact
An attacker could view other students' fee details, email, phone number, address and 10th and 12th class marks, potentially leaking data for every student in the college.
What the attacker needed
Access to the student portal; knowledge of another admission number
How it was found
- Open the fee status page and intercept the request in a proxy.
- Note the admission number parameter in the request body.
- Change the admission number to another student's number and resend.
- Observe the other student's fee status and basic information in the 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.
An IDOR (Insecure Direct Object Reference) happens when a website lets you access a record just by changing an identifier in the request, without checking that the record belongs to you. Here the identifier was a student's admission number, so anyone logged in could swap it and see someone else's private 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.