HexBrain

Mozilla · Report #3154983

IDOR: Account Deletion via Session Misbinding – Attacker Can Delete Victim Account

Validstatus
highseverity
244upvotes
3 Jun 2025disclosed

Summary

An IDOR vulnerability was identified in the Firefox Accounts API endpoint https://api.accounts.firefox.com/v1/account/destroy that allows an authenticated attacker using SSO (i.e Google login) to delete a user's account using their email address if they are also registered using SSO. The server fails to verify that the session making the deletion request belongs to the account being deleted.

How it was found

Summary:

A critical vulnerability in the Firefox Accounts API allows an authenticated attacker to permanently delete any user's account by sending a POST /v1/account/destroy request using attacker session, but including the victim’s email and authPW (password hash) in the JSON payload. The server fails to verify that the session making the request belongs to the account being deleted.

Steps To Reproduce:

  1. Login to the victim's account. {F4367852}

  2. Use Burp Suite to intercept a request to the endpoint https://api.accounts.firefox.com/v1/account/destroy when deleting the account. Capture the JSON body, for example:

{
"email": "[email protected]",
"authPW": "42b4c2940fe2efecce851a2d8e9754d0f1cb1d37e3ccaabb060f9ac21900caff"
}

███████

  1. Then cancel the request (don't let it reach the server).

  2. Login to the attacker's account. ████████

  3. Again, use Burp Suite to intercept a request to the same endpoint https://api.accounts.firefox.com/v1/account/destroy when deleting the account. Send it to the Repeater and cancel the request. ██████

  4. In the attacker's request, replace the JSON body with the victim's harvested data:

{
"email": "[email protected]",
"authPW": "42b4c2940fe2efecce851a2d8e9754d0f1cb1d37e3ccaabb060f9ac21900caff"
}

Send the request. {F4367860}

  1. The server accepts the request and deletes the victim's account, even if it was from the attacker's session. {F4367861}

Impact

==Allows attackers to delete victim accounts without permission.==

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original