CSRF to change Account Security Keys on secure.login.gov
A page on secure.login.gov that regenerates a user's personal security key could be triggered by a simple cross-site GET request, with no anti-CSRF protection. An attacker who lured a logged-in victim to a crafted page could cause the victim's recovery key to be reset without their knowledge.
- Triaged in 5 days
- Fixed in 2 months
- Disclosed after 2 months
This may not be in scope and nor be eligible for bounty but I read this in your vulnerability disclosure policy:
While not all of our services are in scope for our Bug Bounty program, we do welcome disclosures of vulnerabilities through our Vulnerability Disclosure Policy. We would encourage you to review that policy if you have information about a vulnerability in a TTS service not listed below.
So, I will go ahead and report this, however if you feel I have gone too far or shouldn't test this current sub-domain please inform me so that I can self-close the report as N/A and only focus on the domains, sub-domains and GitHub projects listed on the program page.
Description
There exists a CSRF vulnerability which allows an attacker to reset a victims personal security key aka the key which is required to get access back to your account if you ever lose access to your mobile device or forgot your password for your account on secure.login.gov
POC
Vulnerable Link : https://secure.login.gov/manage/personal_key?resend=true (Click on it after you are logged in to your account on secure.login.gov)
CSRF POC
<html><head> <title>CSRF POC</title> </head><body> <form action="https://secure.login.gov/manage/personal_key?resend=true" method="GET"> <input type='submit' value='Go!' /> </form> </body></html>Also, don't hesitate to ask me if you have any further questions or need some clarifications.
Regards zk34911
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 key-reset action was reachable by a plain GET request with no CSRF token or origin check, so any page could trigger it for a logged-in user.
Impact
An attacker could reset a logged-in victim's personal security key; the report does not demonstrate account takeover.
What the attacker needed
Victim logged in to secure.login.gov; victim visits attacker page or link
How it was found
- Log in to an account on secure.login.gov.
- Visit the personal key management page with the resend parameter set, which regenerates the key.
- Host a page containing a form that submits a GET request to that same URL.
- Get a logged-in victim to load the attacker's page and submit the form, resetting their key.
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 log in to a website, your browser holds a session cookie that proves who you are. A cross-site request forgery (CSRF) attack tricks your browser into sending a request to that site from a different page, and the site treats it as if you asked for it. Here, a page the attacker controls could make your browser visit a link that replaces your account recovery key, so the key you saved no longer works.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.