Skip to content
CSRF Disclosed report Beginner

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.

ahmd_halabi Follow

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

  1. Navigate to your account in https://█████████/████/
  2. Copy and paste the below code in an html file
<html>
  <body>
    <form action="https://████/████/███/">
      <input type="hidden" name="action" value="delete&#95;profile" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
  1. 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.

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

  1. Navigate to your account page on the target site.
  2. Create an HTML file containing a form that submits a delete action to the target endpoint.
  3. Open the HTML file in a browser and submit the form.
  4. 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.

More by ahmd_halabi

View all

12 more disclosed reports, best first.

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.