pentesting, updated

Testing multi-factor authentication

Check whether MFA can be bypassed, brute-forced, or downgraded once the first factor is passed.

Goal

Confirm the second factor is actually required and can’t be skipped or brute-forced.

How to test

After passing the first factor, try to reach an authenticated endpoint directly without completing MFA:

curl -s https://example.com/dashboard -H "Cookie: session=<post-first-factor-session>"

Check whether the OTP is rate-limited (6-digit codes are brute-forceable in minutes without one), whether the response for a correct vs. incorrect code differs in timing, and whether a “remember this device” cookie can be forged or replayed from another device.

What to look for

Authenticated access reachable before MFA completes, an unlimited OTP attempt budget, or a forgeable “trusted device” cookie.

References

§ home
~/knubertus/home/
1,1 Top