2FA simple bypass¶
Description¶
This lab’s two-factor authentication can be bypassed. You have already obtained a valid username and password (wiener:peter
and carlos:montoya
), but do not have access to the user’s 2FA verification code.
Reproduction and proof of concept¶
Log in to your own account
wiener:peter
. Your 2FA verification code will be sent to you by email. Click the Email client button to access your emails.Go to your account page and make a note of the URL.
https://0ae300ee036172afc23f703800b90085.web-security-academy.net/my-account?id=wiener
Log out of your account.
Log in using the victim’s credentials
carlos:montoya
.When prompted for the verification code, manually change the URL to navigate to
/my-account
. The lab is solved when the page loads.
https://0ae300ee036172afc23f703800b90085.web-security-academy.net/my-account?id=carlos
Exploitability¶
An attacker will need to access Carlos’s account page.
Last update:
2025-05-12 14:16