Skip to content

In-depth lesson · Second-factor bypass

Tips for beginners

Every point the Second-factor bypass reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 14 of 14
  1. Check session behaviour around two-factor changes. Log in on two devices, enable two-factor authentication on one, and see whether the other session stays valid. Also check whether old sessions survive a password change or two-factor setup, and whether a pending login is expired when the password changes.

    Seen in 5 reports
  2. Test the disable and reset flows. Try disabling two-factor authentication without supplying the current password, or with a wrong password and a tampered response. Check whether resetting another user's two-factor authentication is possible, and whether backup codes can be retrieved without protection.

    Seen in 5 reports
  3. Start with the main login flow and the account settings pages for enabling, disabling and recovering two-factor authentication. Map every step and every alternate path, including social login, OAuth2, password reset and email change, because the second factor is often enforced on only one of them.

    Seen in 3 reports
  4. Probe rate limiting on code verification. Send many attempts and see whether the server throttles, locks the account, or allows unlimited guesses. Look for logical flaws in the rate limiter that let you send more attempts than intended, and test whether codes can be reused after a successful use.

    Seen in 3 reports
  5. Look at token and state handling. Capture a grant token issued before two-factor completion and try to reuse it later. Check whether a pending two-factor state is tied to a session cookie that can be swapped between sessions, or to a session rather than the account.

    Seen in 3 reports
  6. Test alternate login methods against an account that already has two-factor authentication enabled. Sign in with a third-party provider, Apple ID, Google Identity, or a passwordless feature and see whether the second factor is skipped or the setting is cleared.

    Seen in 3 reports
  7. For protocol-based logins, check parsing and configuration. In SAML, see whether an authentication statement outside the signed assertion is accepted. In OpenID, test for misconfiguration that bypasses the second factor. Read the vendor documentation for the documented flow and test each step.

    Seen in 3 reports
  8. Test whether the server actually checks the code. Intercept the verification response and try changing it to a success value, or submit an arbitrary code for an account in a denied state. If the server trusts a client-returned value, the bypass is usually straightforward.

    Seen in 2 reports
  9. When you find a bypass, show impact by completing a sensitive action that should have required the second factor, such as reaching an admin panel, transferring funds, or submitting identity documents for another user. A bypass with no demonstrable impact is likely to be closed as informational.

    Seen in 2 reports
  10. Avoid reporting out-of-scope issues. Check the program's scope before testing third-party integrations or mobile apps, and do not report missing features such as a missing link to recovery codes unless the program accepts usability issues. Focus on security impact.

    Seen in 1 report
  11. Do not rely on brute force alone without checking rate limits first. If the server enforces a limit, look for a logical flaw in the limiter rather than sending large volumes of requests. Also check whether codes are disclosed to the client or generated with weak randomness.

    Seen in 1 report
  12. Test edge cases in code handling. Submit malformed or edge-case codes and observe error handling. Try changing the HTTP method on the verification request, or force-browsing to authenticated pages after the password step to see whether the second factor is enforced.

    Seen in 1 report
  13. Remember that the second factor can be bypassed through account recovery and contact verification. Test whether you can add or verify a phone number or email you do not own, and whether the OTP step can be skipped or brute-forced during account creation or recovery.

    Seen in 1 report
  14. Keep the report clear and evidence-based. State the exact steps, the expected behaviour, the observed behaviour, and the security impact. Cite the specific request and response where the check was missing, and avoid including exploit code or exact payloads in the report.

    Seen in 1 report