One Token to Rule Them All: Persistent MFA Bypass via Trusted Client Abuse
The trusted client token used to skip MFA is static, reusable, and not bound to a device or session, so an attacker who obtains it can bypass OTP verification even after logout and from a different browser. This allows full account access with only the primary credentials and the token.
Published on medium.com
The platform (referred to as SecureShare for non-disclosure purposes) is a web-based application that implements Multi-Factor Authentication (MFA) to protect user accounts.
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 trusted client token is a static value stored per account and accepted without checking device, session, expiry, or revocation.
Impact
An attacker with valid credentials and the static token can bypass MFA and gain full account access, even after logout and from a different device.
What the attacker needed
Valid primary credentials; obtain the static trusted client token; victim has enabled 'Skip this step next time'
The fix
The trusted client token should be bound to a specific device or session, rotated, expire, and be revoked on logout.
How it was found
- Victim logs in with username and password, enters a valid OTP, and selects 'Skip this step next time'.
- The application sends a request to the trusted-clients endpoint containing a static token in the body.
- The victim logs out, which invalidates the access token but leaves the static token active.
- The attacker logs in from a different device or browser with only the credentials, obtaining a new access token.
- The attacker sends the same static token to the trusted-clients endpoint with the new access token.
- The attacker navigates to the extra-factor page, removes that path from the URL, refreshes, and is logged in without OTP.
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) asks for a second proof, like a one-time code, when you log in. The site offered a 'remember this device' option that stored a special token to skip the code next time. That token never changed and was not tied to the device, so anyone who got it could skip the code forever, even after the victim logged out.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.