Skip to content
Account takeover Write-up Intermediate

Account Takeover in $Million Company?

The password reset process allowed a user to skip verification and set a new password for any account by only matching the victim's User-Agent header. An attacker who knows the victim's User-Agent could reset the victim's password and take over the account.

0xGodson Follow

Published on web.archive.org

0xGodson

0xGodson, on web.archive.org

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 application used the User-Agent header as the sole identity check during password reset, instead of a secure token or verification code.

What the attacker needed

Knowledge of victim's User-Agent; victim has an account

The fix

The application should verify identity with a secure token sent to the user's email or phone, not with the User-Agent header.

How it was found

  1. Go to the password reset page and enter the victim's email address.
  2. Click the 'Skip' button to bypass any verification step.
  3. Replace your browser's User-Agent with the victim's User-Agent.
  4. Submit the request to set a 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 forget your password, a website usually checks it's really you before letting you set a new one. Here, the site only checked the 'User-Agent' string, which is a piece of text your browser sends to identify itself. Since this string is easy to find out or copy, an attacker could pretend to be the victim and change their 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.

More from Fastmail

View all

The newest disclosed reports for this program.

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.