Skip to content
Account takeover Write-up Beginner

How I hacked my college website and was able to change my marks ;)

The password reset endpoint accepted an email parameter without any token or verification, so an attacker could change the email to a victim's address and set a new password. This allowed the attacker to take over the teacher's account and change marks.

Vishnu Chebolu Follow

Published on systemweakness.com

Welcome to my story. In this article I going to tell story of me, hacking my college website.

Vishnu Chebolu, on systemweakness.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 password reset endpoint did not validate a token or verify that the requester owned the email address before changing the password.

Impact

An attacker could take over any user's account, including a teacher's, and change marks.

What the attacker needed

A student account; knowledge of victim's email

The fix

The password reset endpoint should require a valid token or OTP verification before allowing a password change.

How it was found

  1. Request a password reset for your own account to capture the request.
  2. Change the email parameter to the victim's email address.
  3. Submit the modified request to change the victim's password.
  4. Log in as the victim using the new 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 reset a password, the website should check that you really own the account. Here, the website trusted whatever email address was sent in the request, so anyone could put someone else's email and set a new password for them. This is called parameter tampering.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.