Skip to content
Account takeover Write-up Intermediate

$500 Bounty for Account Takeover on European Bug Bounty Platform

The password reset function of a WordPress plugin accepted an empty reset code, so an attacker could set a new password for any account. This allowed full account takeover, including administrative accounts.

0vulns Follow

Published on 0vulns.medium.com

A critical vulnerability in the password reset functionality of a popular European bug bounty platform allowed attackers to perform an account takeover by submitting an empty reset code. This flaw could lead to full site compromise, including data breaches and privilege escalation.

0vulns 🇸🇩, on 0vulns.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

The reset check compared the submitted code with the stored code but did not reject an empty submitted code, so an empty value could satisfy the comparison.

Impact

An attacker could take over any account, including administrators, which could lead to data breaches, privilege escalation and full site compromise.

What the attacker needed

Knowledge of the victim's username; attacker has a valid account or email

The fix

The reset code should be rejected when it is empty or null before any password change is allowed.

How it was found

  1. Request a password reset for your own account and open the emailed link.
  2. Intercept the password change request.
  3. Change the user parameter to the victim's username and leave the code parameter empty.
  4. Submit the request to set a new password on 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 secret code to prove the request is yours. This plugin compared the code you sent with the stored one but never checked that the code was not blank, so sending nothing matched when the stored value was also empty. Anyone who knew a username could then choose a new password for that person.

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.