Skip to content
Account takeover Disclosed report Beginner

Password reset token not expiring within the next hour - Abusing application design

The password reset token did not expire after the stated one-hour period; it remained valid for over nine hours. An attacker who obtained a reset token could use it long after the intended expiry window.

Cyber Doctor Follow

Originally disclosed on Mozilla

  • Fixed in 9 days
  • Paid in 14 days
  • Disclosed after 9 days
Text
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

Steps to reproduce:

Hello team,

I discovered that Password reset token not expiring within the next hour. In the Password reset token email stating below [Create a new password by clicking the button below. This link will expire within the next hour]. But I tried keeping the token for 9+ hours, it was still alive.

PoC:

- Go to accounts.firefox.com/reset_password > Get a Password reset token on your email
- Open the email and scroll down below > Above Create new password button stating that [Create a new password by clicking the button below. This link will expire within the next hour].
- Use the reset token after 9+ hours > The token will still going to be alive
- Abusing application design (Mozilla's other products are also affected).

If you need any more info just let me know!

Regards,
cyber-doctor

The original report as published on Mozilla's Bugzilla, by Cyber Doctor. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application did not enforce the token expiry time that it advertised in the email.

Impact

An attacker who obtained a reset token could use it for at least nine hours instead of one, increasing the window for account takeover.

What the attacker needed

Access to the victim's email or reset token; a password reset request

The fix

The application should enforce the advertised one-hour expiry on password reset tokens.

How it was found

  1. Request a password reset token from the Firefox accounts reset page.
  2. Open the email and note the stated one-hour expiry.
  3. Wait more than nine hours.
  4. Use the reset token; it still works.

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 report has not been written yet. The Original tab links to the source.

When you forget your password, a website emails you a special link to set a new one. That link is supposed to stop working after a short time, like one hour, so if someone else finds it later it is useless. Here, the link kept working for many hours, giving an attacker more time to misuse it.

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 Mozilla

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.