Hacking My College panel using University Website Like a Pro😎
The college panel's password reset flow leaked the OTP in the HTTP request and exposed user IDs and mobile numbers, and the college code was a brute-forceable four-digit value. An attacker could reset any college account's password and access the panel, which contained student personal data.
Raunak Gupta Aka B1scuit Follow
Published on medium.com
— — — — — — — — — Free Article link: Hereeee!!!— — — — — — — — — Today, I’m excited to share the story of how I successfully gained access to my college panel through a vulnerability in the university’s system.
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 password reset request included the OTP and user identifiers as client-side parameters, and the college code was a short brute-forceable value, allowing an attacker to obtain the OTP and reset the password.
Impact
An attacker could reset the password of any college account and access the college panel, which exposed students' emails, addresses, phone numbers, and roll numbers.
What the attacker needed
Access to the university website; knowledge of a valid college code (brute-forceable)
How it was found
- Visit the university website and navigate to the college panel.
- Click on the forgot password page.
- Enter a four-digit college code, which can be brute-forced.
- The next page leaks the user ID and associated mobile number.
- Intercept the OTP submission request and observe the OTP in the parameters.
- Use the leaked OTP to set a new password and log in.
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 password reset page is meant to send a one-time code (OTP) to your phone or email. Here, the website put that secret code into the web request in a way the user could see, and the college identifier was only four digits so it could be guessed. That let someone else take over an account without knowing the real password.
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.