Skip to content
Business logic Write-up Beginner

Unauthorized Account Deletion via HTTP Method Manipulation.A Busi

The API endpoint for user accounts did not enforce the intended deletion workflow, which required support approval and ownership checks. By changing the HTTP method to DELETE, an authenticated user could delete their own account immediately without any confirmation or re-authentication.

Moataz Follow

Published on medium.com

Hello I’m Moataz (bug bounty hunter) and I will take you for a ride let’s begin.

Moataz, 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 API did not enforce the business rule that account deletion must go through support approval and ownership verification, allowing the DELETE method to bypass the workflow.

Impact

An authenticated user could delete their own account immediately without support approval, confirmation, or re-authentication; the impact was considered limited because the attacker can only delete their own account.

What the attacker needed

A valid user account; ability to intercept and modify HTTP requests

The fix

The API should enforce the intended deletion workflow server-side, requiring support approval and ownership verification before processing a DELETE request.

How it was found

  1. Authenticate as a valid user
  2. Intercept a request to /api/users/{user_id}
  3. Modify the HTTP method to DELETE
  4. Send the request

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.

An API is a way for programs to talk to a server. The server expected account deletion to go through a support process, but it also accepted a direct 'delete' command on the user endpoint. This meant a logged-in user could remove their own account instantly, skipping the intended checks.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.