Skip to content
Access control Write-up Intermediate

How I was able to delete MFA of any user without Authentication

An MFA reset endpoint accepted requests without authentication and did not verify that the MFA identifier belonged to the requesting user. An attacker who knew another user's MFA identifier could delete that user's multi-factor authentication, though obtaining the identifier required the victim's password.

medium.com

Published on medium.com

The original lives on medium.com

We do not hold its text, 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 MFA reset endpoint lacked both an authentication check and an ownership check on the supplied MFA identifier.

Impact

An attacker who already had a victim's password and could learn the MFA identifier could remove the victim's second factor, but the program rated this medium because the password was still required.

What the attacker needed

Victim's account password; victim's MFA identifier

The fix

The endpoint should require authentication and verify that the MFA identifier belongs to the authenticated user before allowing a reset.

How it was found

  1. Log in and delete your own MFA to observe the DELETE request to the MFA reset endpoint.
  2. Replace your MFA identifier with another user's identifier and send the request with your session.
  3. Open the MFA reset URL in a browser without being logged in.
  4. Click the delete button on the loaded page to remove that MFA.

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.

Multi-factor authentication (MFA) is a second proof of identity, such as a code from a phone, on top of a password. The website had a page for turning off MFA, and it did not check who was asking or whether the MFA record belonged to them. So anyone who knew the secret identifier for someone's MFA setup could switch that protection off.

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.