Password token validation in https://demo.weblate.org/
The password reset system on the demo Weblate instance allows multiple reset tokens to remain valid simultaneously, so an attacker who obtains an older token could still use it even after a newer one is issued. The report does not demonstrate an actual attack, only the policy gap.
- Triaged in 42 hours
- Fixed in 42 hours
- Disclosed after 39 days
Hi team,
I noticed that when requesting multiple reset links at https://demo.weblate.org/ all tokens are valid and can be used.
In numerous applications the following policy is adopted as an additional security measure:
- keep valid only that token with shorter lifetime (last requested)
or
- invalidate all reset links generated after successful use of one of these tokens
Please check it.
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 does not invalidate previously issued password reset tokens when a new one is generated or when one is successfully used.
What the attacker needed
Attacker obtains a previously issued reset token
The fix
The report suggests invalidating older reset tokens when a new one is requested or after one is used.
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 with a secret code (a token) to reset it. Normally, if you ask for a new link, the old one should stop working. Here, all the old links keep working, which means if someone got hold of an old link, they could still use 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.