Skip to content
Access control Write-up Intermediate

Easy MFA Setup bypass Lead to unauthorized access to PII data Of

When an administrator enforced MFA setup for all team members, most endpoints correctly returned 401 to a user who had not yet configured MFA, but the search endpoint still worked. The attacker could therefore query the search function and retrieve PII such as names and emails of users on the instance, including newly added ones.

Abdalah Osman Follow

Published on medium.com

I am Back again With a New idea that I think the most of hunters Ignore to test it when they come to test 2fa Functionality

Abdalah Osman, 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 MFA enforcement was applied per request or per route rather than centrally, so the search endpoint lacked the same authorisation check as other endpoints.

Impact

A user who had not completed the enforced MFA setup could still search and retrieve PII such as names and emails of users on the instance, including newly added users.

What the attacker needed

Attacker invited to the instance; victim enforces MFA for all users; attacker has a saved search request

How it was found

  1. As a victim, create an instance and invite the attacker.
  2. The attacker accepts the invitation and joins the instance.
  3. The attacker makes some requests with Burp running to fill the history.
  4. The attacker checks the search function, which returns PII for any matching name or email.
  5. As the victim, enforce MFA for all users, which locks users out until they configure MFA.
  6. As the attacker, replay the saved search request; it still returns PII while other requests return 401.

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 app, added on top of a password. Here the site tried to force everyone to set up MFA before using anything, but one feature, the user search, was not blocked. So a user who had not set up MFA could still search and see other people's names and email addresses.

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.