Skip to content
CSRF Disclosed report Intermediate

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.

rptl Follow

Originally disclosed on HackerOne

  • 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 -

recording-1621943105665.webm From the original on HackerOne

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

The original report as published on HackerOne, by rptl. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Create an HTML proof-of-concept page that sends a request to change the security question and answer.
  2. Set a timeout so the first request completes before the second request is sent.
  3. Send a second request to change the password using the new secret answer.
  4. 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.

More by rptl

View all

3 more disclosed reports, best first.

More from U.S. General Services Administration

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.