Skip to content
CSRF Write-up Beginner

CSRF On Delete Profile: High Severity(7.1) HackerOne

The delete account action lacked any verification, allowing an attacker to craft a CSRF proof-of-concept that deleted a victim's account when the victim visited a malicious page. The attacker could delete any logged-in user's account without their consent.

josuofficial327 Follow

Published on medium.com

I have been hunting on bugs almost for a year now and this is my first high severity bug on hacker-one with a severity rating 7.1.

Josekutty Kunnelthazhe Binu, on medium.com

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 delete account endpoint did not require a CSRF token or any other confirmation, so a forged request from another site was accepted.

Impact

An attacker could delete a logged-in user's account without their consent by tricking them into visiting a malicious page.

What the attacker needed

Victim is logged in; victim visits attacker's page

How it was found

  1. Create an account on the website.
  2. Capture the delete account request and build a CSRF proof-of-concept HTML file.
  3. Log in with another account in the browser.
  4. Open the CSRF proof-of-concept and submit it.
  5. Observe that the account is deleted.

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.

A website should check that a request to delete an account really came from the user, not from another site. Here, it did not, so a malicious page could silently send the delete request using the victim's logged-in session. 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 josuofficial327

View all

7 more disclosed reports, best first.

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.