“From Doubt to Discovery: Reporting a CSRF Bug to NASA ”
The profile update form on a NASA web property accepted a POST request without any CSRF token, so a page hosted elsewhere could change a logged-in user's name and email without their consent. The author demonstrated this with a simple HTML page and the change went through silently.
medium.com
Published on medium.com
🌙 I spent sleepless nights going through scopes and documentation… 🔍 Inspected every parameter… 📖 Revisited CSRF concepts — from OWASP to GitHub PoCs…
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 profile update endpoint relied only on the session cookie for authentication and had no anti-CSRF token or origin check.
Impact
A logged-in victim who visited the attacker's page could have their name and email changed without consent, which could also affect account recovery; the report was triaged as informational only.
What the attacker needed
Victim is logged in; victim visits attacker's page
How it was found
- Notice that the profile update form contains no CSRF token.
- Build a basic HTML page that sends a POST request changing the user's name and email.
- Visit that page while logged in and observe the profile details change without consent.
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 are logged in to a site, your browser automatically sends your session cookie with every request to that site. If the site does not check for a secret, one-time value (a CSRF token) that only its own pages know, another website can quietly submit a form on your behalf. Here the profile form lacked that check, so visiting an attacker's page could rename you and change your email address.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.