Skip to content
Account takeover Write-up Beginner

[POC] CARA SAYA TAKE OVER AKUN MAHASISWA & DOSEN DIOASIS UTB

The password reset link contained both a reset token and the user's student number (NIM) in the URL, and the server checked only the token, not that it belonged to that NIM. Anyone holding a valid reset token for their own account could swap in another person's NIM and set a new password for that student or lecturer account.

medium.com

Published on medium.com

Dalam dunia keamanan siber, salah satu kerentanan yang cukup sering ditemukan adalah kelemahan pada mekanisme reset password. Jika implementasinya tidak dilakukan dengan benar, fitur ini justru dapat dimanfaatkan oleh pihak tidak bertanggung jawab untuk mengambil alih akun pengguna.

argareksapati, on medium.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 reset endpoint validated the token's existence but never bound it to the account identifier supplied in the URL, so any valid token worked for any user.

Impact

An attacker could take over student and lecturer accounts and reach academic records and personal data such as national ID and family card numbers; the text does not say whether any defence limited this.

What the attacker needed

A valid reset token from own account; victim's student number known

The fix

The reset token should be tied directly to one specific account so that changing the identifier in the link has no effect; the text does not say it was fixed.

How it was found

  1. Open the login page and choose the forgot-password option.
  2. Enter a registered email address and receive the reset link by email.
  3. Change the student number (NIM) part of the link to another user's number.
  4. Open the modified link; the reset page still loads for the target account.
  5. Set a new password and gain full access to the victim's account.

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 forget your password, a site emails you a special link that lets you set a new one. This link contained two parts: a secret code and your student ID number. The site only checked the secret code was real, not that it was issued for the ID in the link, so changing the ID let someone reset a different person's 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.

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.