Account takeover through multistage CSRF at https://autochoice.fas.gsa.gov/AutoChoice/changeQAOktaAnswer and ../AutoChoice/changePwOktaAnswer
The change security question/answer and change password endpoints did not validate the CSRF token on the server side. An attacker could use a multistage CSRF attack to first set a new secret answer and then set a new password, taking over the victim's account.
- Triaged in 18 hours
- Fixed in 28 days
- Disclosed after 59 days
Hi,
Account takeover is possible through CSRF vulnerability at 'Change Security Question/Answer' & ' Change Password'. The endpoints - https://autochoice.fas.gsa.gov/AutoChoice/changeQAOktaAnswer & https://autochoice.fas.gsa.gov/AutoChoice/changePwOktaAnswer both are vulnerable to CSRF attack .==The CSRF token/or its presence is not validated at server side.==
Since, the password update functionality requires 'Secret Answer' Value & 'New Password'. Therefore, in multistage CSRF Secret Answer was updated first & then using that new secret answer, new password was set for the account using second stage.
Both CSRF request are performed through the same html POC. Upon execution of POC html, changes will be reflected after few seconds as timeout is set for the first request to complete. Also, there is no need to know the security question either, which itself is updated in the first stage.
POC Video -
CSRF Html file - (Attachment on the original report: secret_answer_and_pwd_csrf.html)
@Triage Team - Since, this report involves two CSRFs for different functionalities, should I have filed two different reports ? as I would be losing rep. points.
Impact
Account takeover through CSRF
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
Impact
An attacker could take over a victim's account through CSRF.
What the attacker needed
Victim is logged in; victim visits attacker-controlled page
How it was found
- Create an HTML proof-of-concept page that sends a request to change the security question and answer.
- Set a timeout so the first request completes before the second request is sent.
- Send a second request to change the password using the new secret answer.
- Deliver the page to a logged-in victim; after a few seconds the account changes take effect.
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.
CSRF (Cross-Site Request Forgery) is when a malicious website makes a logged-in user's browser send a request to another site without the user knowing. Here, the site accepted changes to the security question and password without checking a secret token, so an attacker could trick a victim into changing both and then log in as them.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.