CSRF - Delete Account (Urgent)
The report describes a CSRF bug on a GET request that can deactivate a logged-in user's account when they visit an attacker page or link.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 2.0 years
- Disclosed after 2.1 years
Target Url https://██████████/███/██████/█████████
Summary:
Hello, I found a Cross Site Request Forgery bug in the target endpoint on the GET request ████ which is critical because it can delete authenticated user account whenever he navigates to the attacker website or link.
Step-by-step Reproduction Instructions
- Navigate to your account in
https://█████████/████/ - Copy and paste the below code in an html file
<html>
<body>
<form action="https://████/████/███/">
<input type="hidden" name="action" value="delete_profile" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
- Open it in the browser, hit the button and your account will be deactivated.
Suggested Mitigation/Remediation Actions
Add a csrf-token in the header or in an hidden input to check if the user that is doing this action authorized or not.
Impact
This action is critical and sensitive. Attacker can upload this file to a url. Sends it to the victims. And when the authenticated victims navigate to the url their accounts will be deleted.
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 account deletion action was reachable via a GET request and did not require a CSRF token or other proof that the request came from the site itself.
Impact
An attacker could send a crafted link to a logged-in victim and cause their account to be deleted when the victim visits it.
What the attacker needed
Victim is logged in; victim visits attacker page or link
How it was found
- Navigate to your account page on the target site.
- Create an HTML file containing a form that submits a delete action to the target endpoint.
- Open the HTML file in a browser and submit the form.
- The account is deactivated.
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 are logged in to a site, your browser automatically sends your session cookie with every request to that site. If a site performs a sensitive action like deleting your account just because a request arrives, another website can make your browser send that request without you knowing. This is called cross-site request forgery (CSRF).
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.