# Account deletion using the /v1/account/destroy API endpoint using account password without 2FA verification

Firefox Accounts /v1/account/destroy accepted password-derived authPW without 2FA or auth header, letting anyone with a known password delete the account.

- Payout: $1,000
- Severity: medium
- Program: Mozilla
- Found by: erdy
- Disclosed: 2024-06-17
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/2197244
- Library page: https://bugbountylibrary.com/r/h1%3A2197244
- Tags: area:web domain:api domain:web impact:integrity kind:bounty platform:hackerone sev:medium tech:rest vuln:access-control vuln:auth-bypass vuln:mfa-bypass

**Target:** POST /v1/account/destroy on api-accounts (FxA auth server)
**Root cause:** The account destroy endpoint authenticates solely via client-computed authPW derived from the password and does not enforce a 2FA/session check, so password knowledge alone suffices.
**Steps:**
1. Compute authPW from the victim's password using the public fxa-auth-client crypto.ts logic
2. Send `POST /v1/account/destroy` with body `{"email":"<email>","authPW":"<authPW>"}` and no Authorization header
3. Account is deleted without any 2FA prompt
**How found:** Noticed the destroy endpoint lacked an Authorization header requirement and 2FA check, then derived authPW from the public client crypto code to confirm deletion works with password alone.
**Exploitation:** Attacker who obtained the victim's password (e.g. credential stuffing/leak) computes authPW client-side and calls the destroy endpoint directly, bypassing the 2FA gate that normally protects destructive actions.
**Insight:** Destructive/irreversible endpoints often reuse the same password-derived authPW as login but skip the session/2FA layer applied elsewhere; test sensitive account-management endpoints directly with just authPW and no auth header.

## Proof of concept (copied exactly from the original report)

**POST /v1/account/destroy request body without auth header**

```
{"email":"<email>","authPW":"<authPW>"}
```

