How I hacked University
The university portal exposed user profiles via an IDOR, leaked credentials for logging and mail servers, and allowed exam time restrictions to be bypassed by changing a request parameter. An attacker could access PII, impersonate staff, take over accounts, and view exam questions early.
medium.com
Published on medium.com
Hey everyone! This is my second write up, and I’m excited to share it with you.
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 missing access control checks on object identifiers, exposed credentials in an endpoint, and client-side enforcement of exam time restrictions.
Impact
An attacker could access PII, impersonate higher authorities via email, take over admin, teacher, and student accounts, and view or modify exam question papers.
What the attacker needed
A student account on the portal; use of Burp Suite or similar proxy
The fix
The vulnerabilities were reported and the team patched the issues, though the text does not detail the fixes.
How it was found
- Log into the portal and use Burp Suite to capture requests.
- In the 'My Profile' section, change the last character of the unique identifier in the URL to load another user's profile.
- Find an endpoint that exposes credentials for the logging system and mail server.
- Use the logging system credentials to access JWT tokens and take over accounts.
- Intercept the exam access request and change the CommonVerifiedAccess parameter from False to True to bypass time restrictions.
- After the fix, use an API request to retrieve exam questions directly without starting the exam.
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.
The portal used a simple identifier in the URL to decide whose profile to show, and it did not check that the person asking was allowed to see that profile. Separately, it stored passwords for internal systems in a place an attacker could find, and it trusted a value sent by the browser to decide if an exam could be opened. This let someone see other people's data, read emails, and get exam papers early.
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.