Skip to content
CSRF Write-up Beginner

CSRF in a subdomain of VISA leads to deletion of account

The account deletion endpoint accepted a POST request without a CSRF token or password parameter, so an attacker could make a logged-in victim submit a forged request and delete their own account. The author demonstrated this with a hosted HTML page that auto-submitted the request.

medium.com

Published on medium.com

When we talk about web vulnerabilities, Cross-Site Request Forgery (CSRF) often gets pushed to the background in favor of flashier bugs like SQL injection or remote code execution. But CSRF, when exploited properly, can be just as damaging — especially when it targets high-impact features like account deletion.

Anonymousshetty, 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 relied only on the session cookie for authentication and did not require a CSRF token or password confirmation.

Impact

An authenticated user could be tricked into permanently deleting their own account, causing loss of data and access, though the report notes the issue was a duplicate.

What the attacker needed

Victim is logged in; victim visits attacker page

The fix

The endpoint should require a unique per-session CSRF token validated server-side, and sensitive actions like account deletion should also require password re-entry or a secondary confirmation step.

How it was found

  1. Log in to the application and open account settings.
  2. Click the delete account button and observe the POST request to the remove-account endpoint.
  3. Notice that the request contains no CSRF token and no password parameter.
  4. Create an HTML page that auto-submits a POST form to that endpoint.
  5. Host the page and have a logged-in victim visit it, which deletes their account.

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.

Cross-Site Request Forgery (CSRF) is when a malicious website makes a logged-in user's browser send a request to another site without the user meaning to. Here, the delete-account request had no secret token or password check, so any page could trigger it. The victim only had to visit the attacker's page while still logged in.

What is CSRF?

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

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.