How I Bypassed My University’s OTP System and Got Admin-Level A
The login and password reset flows allowed the mobile number and email fields to be modified, so an attacker could redirect the OTP to their own phone and reset the account password. This gave access to sensitive student data including contact details and addresses.
Published on medium.com
A few weeks ago, my classmates and I were assigned a task — to submit a university application form on behalf of a student. We were provided with a username and password to log into the university portal.
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 client-supplied mobile number and email fields during the OTP and password reset process instead of using the values stored for the account.
Impact
An attacker could take over accounts and access all first-year students' mobile numbers, parents' contact numbers, home addresses, birthdates, and educational background details.
What the attacker needed
Valid username and password; ability to intercept HTTP requests
The fix
The vulnerability was patched and fixed after responsible disclosure.
How it was found
- Log in with a username and password.
- Intercept the OTP request in Burp Suite.
- Change the mobile number to the attacker's own number.
- Receive the OTP on the attacker's phone.
- Use the Forgot Password feature with the attacker's number and email to reset the account password.
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.
When you log in, a one-time password (OTP) is sent to your phone to prove it's you. The website was trusting a phone number that the user could change in the request, so the attacker could make the OTP go to their own phone instead. That let them take over the account and see other students' personal information.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.