Security Questions Bypassed to Change User’s Password
The password reset endpoint accepted a request to change the password without verifying that the security questions had been answered. An attacker with a reset token could bypass the security questions and set a new password.
infosecwriteups.com
Published on infosecwriteups.com
Hi everyone, in this article, I’ll walk you guys through a small bypass I found that helped me bypass the security questions altogether and change the user’s password.
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 change endpoint did not check that the security questions had been successfully answered before allowing the password to be changed.
Impact
An attacker who has a password reset token could bypass the security questions and change the account password, leading to account takeover.
What the attacker needed
A password reset token; account has security questions set
How it was found
- Create an account with security questions configured.
- Request a password reset and open the emailed link.
- Submit a random answer to the first security question, which sends a request to the check-answer endpoint.
- Change the request endpoint to the password change endpoint and add new password fields.
- Send the modified request and receive a success response.
- Log in with the 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 may ask secret questions to prove it is you. This report shows that the step checking those answers could be skipped by sending the password change request directly. That let someone with a reset link set a new password without knowing the answers.
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.