In-depth lesson · OTP brute force
Tips for beginners
Every point the OTP brute force reports back under this heading, best-backed first, each with the reports it is seen in.
-
Inspect the send response and the frontend. Check whether the OTP value is returned to the client, whether a client-supplied parameter controls the code length, and whether the success decision is made in JavaScript from a response field. If you can replay a captured success response against a wrong code and the flow proceeds, that is the finding.
Seen in 5 reports
-
Check whether the limit is real or only per IP or per header. If you are blocked, try a different source address or a changed forwarding header and see whether the counter resets. If one flow is limited, try the mobile API, an older API version, or a parallel endpoint for the same feature.
Seen in 4 reports
-
Look at the code itself. Note its length and character set, and whether it expires when it says it does. Wait past the stated lifetime and try the code again, and request several codes in a row to see whether old ones stay valid.
Seen in 4 reports
-
Test binding. Use a code sent to your own email or phone and try it against a different account or a different number. Try changing the email, phone or user identifier in the verification request and see whether the server accepts it without an ownership check.
Seen in 4 reports
-
Watch for distinguishable responses. A different response length, status code or error message between valid and invalid codes, or between existing and non-existing accounts, tells you guessing is possible and gives you a way to spot the correct value. Note any case where a wrong code still returns a success status.
Seen in 4 reports
-
Start with the flows you can reach as a normal user: password reset, login OTP, two-factor verification, email confirmation and phone verification. Trigger a code for your own account and watch the verification request in your proxy. The first question is always whether repeated wrong guesses are limited, so send a handful of wrong codes and note the responses.
Seen in 3 reports
-
Try the resend and lockout edges. Resend the code repeatedly and see whether you collect several valid codes or hit a cooldown. Trigger a lockout, then re-authenticate or use an unlock link and check whether the failed-attempt counter resets, letting you continue guessing.
Seen in 3 reports
-
Check the final step of multi-step flows. In a password reset or signup, see whether the last request requires a server-issued proof of verification or trusts a client-supplied identifier. Swapping your email for the victim's at the save step, or skipping the OTP step entirely, are worth testing.
Seen in 3 reports
-
Show impact with a real takeover, not just a missing header. Demonstrate that a guessed code logs you into the victim's account, completes a reset, or confirms your control of their phone number or email. A report that only says a rate limit is missing, with no account reached, is much weaker.
Seen in 3 reports
-
Avoid the common mistake of reporting a short code on its own. A four-digit code is not a finding unless the checking endpoint lets you try enough values. Pair every claim with the missing control and the result you actually reached.
Seen in 3 reports
-
Record the exact requests and responses that prove the bypass, including the number of attempts made and the response that showed success. Keep the evidence minimal and reproducible so the triager can confirm the impact without repeating a large campaign.
Seen in 3 reports
-
Stay in scope. Test only accounts and numbers you control or are authorised to use, and do not run large guessing campaigns against production systems beyond what the programme allows. If a flow is out of scope or the impact is only a theoretical limit, do not report it as a takeover.
-
Check for default test numbers and test accounts left enabled in production, and for flows that accept any code for them. Also check whether a phone number already linked to an account can be reused in signup, which turns a guessing weakness into removal of the number from the victim's account.