Skip to content
Access control Write-up Intermediate

Improper Access Control Leading to Account Deletion Without 2FA

A hidden Cancel button in the user interface triggered a DELETE request to a non-existent endpoint, but the real account deletion endpoint existed under a locale path and required no second-factor check. An attacker with an authenticated session could delete the account without any 2FA prompt or confirmation.

medium.com

Published on medium.com

So I’d already found a hidden vulnerability on [REDACTED] before (wrote about it here: Hidden Page with 2FA Bypass). After that success,I shifted my entire focus to finding hidden Functions.

Excessium, 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

Impact

An authenticated user could delete an account without passing the second-factor check, bypassing 2FA protection entirely.

What the attacker needed

An authenticated session; ability to send a modified DELETE request

How it was found

  1. While testing the 2FA implementation, run a script that reveals elements hidden with CSS.
  2. Notice a hidden Cancel button and click it; a DELETE request is sent to a path that does not exist.
  3. Recall that account creation and email changes used a locale-prefixed path.
  4. Resend the DELETE request with the locale prefix added to the path.
  5. Observe that the account is deleted with no 2FA prompt or confirmation.

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.

Two-factor authentication (2FA) is a second proof of identity, such as a code from an app, asked at sensitive moments. Here the account deletion action skipped that check entirely, so anyone already logged in could remove the account without proving they owned the second factor. The button was hidden in the page, but the server still accepted the request.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.