2FA Bypass on private bug bounty program due to improper caching mechanism
The application's two-factor authentication check was tied to a cookie-policy acceptance step, so a user who logged in without accepting the cookie policy could access video content without entering a 2FA code. An attacker with valid credentials could bypass the second factor and view protected videos.
Sharat Kaikolamthuruthil Follow
Published on medium.com
This is the story of how I was able to bypass 2FA on a private bug bounty program.
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 2FA enforcement was placed after or conditioned on the cookie-policy acceptance flow, so skipping consent skipped the second-factor check.
Impact
An attacker with valid credentials could bypass the second factor and view videos that were meant to require a 2FA code.
What the attacker needed
Valid account credentials; direct video URL known; browser cache cleared
How it was found
- Clear all browser cache and open a direct video URL.
- Observe the redirect to the login page and the cookie-policy prompt.
- Log in without accepting the cookie policy.
- Observe that login succeeds and the video plays without a 2FA prompt.
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.
Two-factor authentication (2FA) is a second proof of identity, usually a code from an app or SMS, asked after your password. Here the site only asked for that code if you had first accepted its cookie policy, so skipping that step let someone with just a password get straight to the videos. The fix is to make the 2FA check independent of any optional consent step.
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.