Skip to content
Account takeover Write-up Beginner

Cloudflare Bug Bounty: First Old Password Does Not Expire After

The Cloudflare dashboard accepted the original password as the 'old password' during a second password change, even though it had already been replaced. An attacker who once knew the original password could keep using it to change the password again and retain access to the account.

Buvaneshvaran K Follow

Published on medium.com

The issue? The original password remains valid even after multiple password changes.

Buvaneshvaran K, 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 system does not invalidate prior credentials or expire old authentication state when a password is changed, so several passwords stay valid at once.

Impact

An attacker who once knew the original password could keep using it to change the password and retain persistent access, potentially leading to account takeover.

What the attacker needed

Attacker knows the original password; valid account on the dashboard

The fix

The password change should require the current password and immediately invalidate the previous password and any active sessions or tokens.

How it was found

  1. Log in to the Cloudflare dashboard with the original password.
  2. Open the profile authentication settings and choose to change the password.
  3. Set a new password using the original password as the old password.
  4. Change the password a second time, again entering the original password as the old password.
  5. The application accepts it and confirms the password was changed.

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 change a password, the old one is supposed to stop working straight away. Here, the site kept accepting the very first password as proof of identity during later password changes. That means someone who learned the old password earlier could still use it to take over the account.

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.

More by Buvaneshvaran K

View all

2 more disclosed reports, best first.

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.