Skip to content
CSRF Disclosed report Beginner

CSRF Account Deletion on ███ Website

The site performed account deletion without a proper anti-CSRF check, so a request triggered from another website could delete a logged-in user's account. An attacker could get a victim to visit a malicious page and have the victim's account removed.

notdeghost Follow

Originally disclosed on HackerOne

  • Triaged in 35 hours
  • Fixed in 2 months
  • Disclosed after 3 months

Summary:

A CSRF vulnerability against the ███████ allows attackers to delete user accounts.

Impact

Users who visit a malicious website could find their ████████ account deleted.

Step-by-step Reproduction Instructions

  1. Create and login to a new account on the ██████
  2. Open the provided HTML file and press the "POC" button. Note that the POC button is used only to make testing easier, and is not necessary in an actual attack scenario.
  3. Refresh the page on the ███ website. You should find that you have been logged out, and are unable to sign back into your account.

██████

Product, Version, and Configuration (If applicable)

Website: ███████

Suggested Mitigation/Remediation Actions

Enforce proper CSRF control on the ██████, for example with Google captcha (which is already implemented through much of the site).

Impact

Users who visit a malicious website could find their account deleted.

The original report as published on HackerOne, by notdeghost. 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

Root cause

Likely the account deletion endpoint accepted state-changing requests without verifying a CSRF token or otherwise confirming the request originated from the site itself.

Impact

Users who visit a malicious website could have their account deleted.

What the attacker needed

Victim is logged in; victim visits attacker page

How it was found

  1. Create and log in to a new account on the site.
  2. Open the provided HTML file and press the POC button.
  3. Refresh the site and observe that you are logged out and cannot sign back in.

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, your browser automatically sends your session cookie with every request to that site. If the site does not check that a state-changing request really came from its own pages, another website can make your browser send that request for you. Here that request deletes the account, so simply visiting a bad page could wipe it.

What is CSRF?

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

More from U.S. Dept Of Defense

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.