10 golden minutes for taking over a Chess.com account
After a password change, the new password only applied to email login for 10 minutes, while username login still accepted the old password. An attacker who knew the old password could log in via username during that window, and the lack of rate limiting on the change password form allowed brute-forcing the new password to achieve full account takeover.
Hi folks, this is the second write-up about finding bugs on Chess.com. You can find the first one here.
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 password update was applied asynchronously to different authentication backends, causing a delay for username-based login, and the change password endpoint lacked rate limiting.
Impact
An attacker who knows the old password could log in via username for 10 minutes after a password change, and by brute-forcing the new password (due to no rate limit) could achieve full account takeover.
What the attacker needed
Attacker knows the old password; victim has changed password within last 10 minutes; no rate limit on change password form
How it was found
- Change your password on Chess.com.
- Try to log in with your username and the new password; it fails for 10 minutes.
- Log in with your username and the old password; it still works during that period.
- Use Burp Intruder to brute force the new password on the change password form, which has no rate limit.
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 your password on a website, you expect the old password to stop working immediately. Here, the old password still worked for one type of login (using your username) for 10 minutes after the change. Also, the form to change your password had no limit on how many guesses someone could make, so an attacker could try many passwords quickly and 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.