hunt-mfa-bypass
Fungsinya
Skill ini menguji autentikasi multi-faktor untuk celah alur kerja, penggunaan ulang kode, dan pemeriksaan yang lemah. Ditujukan untuk pengujian resmi pada login dua faktor dan tindakan akun yang sensitif.
Kapan dipakai
- βSaat sebuah situs meminta kode faktor kedua dan Anda ingin memastikan ia diterapkan di server.
- βSaat tindakan sensitif seperti mengubah email melewati faktor kedua.
- βSaat kode sekali pakai mungkin bisa dipakai lebih dari sekali atau menerima input sebagian.
Link skill
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-mfa-bypass/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda memeriksa apakah aplikasi kami menerapkan kode dua faktor di setiap tindakan sensitif dalam uji resmi kami?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mencoba melewati langkah faktor kedua, memakai ulang kode, dan memeriksa input sebagian, dimulai dari bypass alur kerja yang paling cepat. Agent hanya melaporkan apa yang bisa ditunjukkan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Autonomous Testing Priority
Try workflow bypasses before brute force β they're faster and more likely to succeed.
Pattern 1 β Skip the MFA step entirely (most automatable):
- Login with valid credentials β receive a "pre-MFA" session state
- Without completing MFA, directly access a protected resource (
/dashboard,/api/me,/account/profile) - If the response returns user data β MFA is enforced only in the UI, not server-side = Critical
Pattern 2 β OTP replay (reuse a consumed code):
- Complete a valid MFA flow to get a working OTP
- Log out, log in again with the same credentials
- Submit the same OTP again
- If accepted β OTP is not invalidated after use
Pattern 3 β Submit obviously wrong OTP, observe response:
Try submitting 000000 or 123456. If the response is 200 or returns a session token, OTP validation is broken or client-side only.
Pattern 4 β Partial / incremental validation (prefix oracle): If a guessed full code is rejected, test whether the server validates the OTP prefix-by-prefix instead of all-or-nothing. Submit a short partial code and compare responses:
- Submit a 1β3 digit value (e.g.
otp=1, thenotp=12, β¦) β for a POST verify endpoint the code goes in the request body, not the URL query string, or the server reads an empty value. - If a correct prefix gives a DIFFERENT response than a wrong one (a success/flag, a distinct message, or a different length/timing), the validator leaks correctness one chunk at a time.
- Walk the code digit-by-digit: keep the prefix that "responds correct," append 0β9, repeat. This collapses 10^6 brute force to ~10ΓN guesses (β€60 for a 6-digit code) β very feasible in a bounded test.
This is the go-to when there is no leaked code and no skip/replay path. Some apps award success on any correct prefix outright (so a single correct first digit can win β sweep
otp=0,1,β¦,9before giving up). CRITICAL β stay in ONE session: re-authenticating (POST /β¦/login again) regenerates the OTP, throwing away your prefix progress. Do the entire sweep against a single established MFA session; never re-login between guesses.
On full brute force: brute-forcing all 10^6 codes is infeasible in a bounded test β but the prefix oracle above (Pattern 4) usually makes it unnecessary. Only attempt full brute force with evidence of no rate limit AND a small key space.
Proof: A session token or protected resource data in the response without completing MFA confirms the bypass.
19. MFA / 2FA BYPASS
Growing bug class β 7 distinct patterns. Pays High/Critical when it enables ATO without prior session.
Pattern 1: No Rate Limit on OTP
# Test with ffuf β all 1M 6-digit codes
ffuf -u "https://target.com/api/verify-otp" \
-X POST -H "Content-Type: application/json" \
-H "Cookie: session=YOUR_SESSION" \
-d '{"otp":"FUZZ"}' \
-w <(seq -w 000000 999999) \
-fc 400,429 -t 5
# -t 5 (slow down) β aggressive rates get 429 or ban
Pattern 2: OTP Not Invalidated After Use
1. Login β receive OTP "123456" β enter it β success
2. Logout β login again with same credentials
3. Try OTP "123456" again
4. If accepted β OTP never invalidated = ATO (attacker sniffs OTP once, reuses forever)
Pattern 3: Response Manipulation
1. Enter wrong OTP β capture response in Burp
2. Change {"success":false} β {"success":true} (or 401 β 200)
3. Forward β if app proceeds β client-side only MFA check
Pattern 4: Skip MFA Step (Workflow Bypass)
# After entering password, app sets a "pre-mfa" cookie β redirects to /mfa
# Test: skip /mfa entirely, access /dashboard directly with pre-mfa cookie
# If app grants access without MFA = auth flow bypass = Critical
curl -s -b "session=PRE_MFA_SESSION" https://target.com/dashboard
Pattern 5: Race on MFA Verification
import asyncio, aiohttp
async def verify(session, otp):
async with session.post("https://target.com/api/mfa/verify",
json={"otp": otp}) as r:
return r.status, await r.text()
async def race():
cookies = {"session": "YOUR_SESSION"}
async with aiohttp.ClientSession(cookies=cookies) as s:
# Fire ~30 concurrent submissions of the SAME OTP to hit the TOCTOU
# window before the server marks it used. Two requests are NOT enough β
# they almost always resolve sequentially as "already-used" (false negative).
# Best done as a single-packet / 20+ HTTP-2-
Pertanyaan umum
Mengapa bypass alur kerja diuji lebih dulu?
Skill ini menyatakan bahwa bypass itu lebih cepat diuji dan sering berhasil ketika pemeriksaannya hanya ada di antarmuka.
Apakah ini mencakup menebak kode?
Ya. Skill ini mencakup menebak kode enam digit ketika tidak ada batas jumlah percobaan.
Berapa banyak pola yang dicakup?
Skill ini mencantumkan tujuh pola, termasuk race condition dan masalah kode pemulihan.
Detail
Deskripsi asli dari pembuat
Hunt MFA / 2FA bypass β 7 distinct patterns. (1) MFA not enforced on sensitive endpoints (password change, email change accept without MFA challenge), (2) MFA-step skip via direct navigation to post-login URL, (3) MFA-token replay (same code accepted twice), (4) brute-force the 6-digit OTP without rate limit (10^6 attempts at server speed), (5) race condition on OTP validation, (6) recovery-code dump via /api/me, (7) backup factor downgrade (SMS factor with no rate limit). Plus the chain: cookie theft + password oracle + no step-up = ATO without MFA challenge. Detection: trace auth flow in Bur
Popularitas
- Bintang GitHub
- 5.4k
- Peringkat
- #14921
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
apk-redteam-pipeline
5.4kMembantu agent Anda menguji aplikasi Android untuk kelemahan keamanan, mulai dari mencari file APK dan melakukan dekompilasi hingga memeriksa rahasia yang terekspos.
bugcrowd-reporting
5.4kMembantu agent Anda menulis laporan kerentanan Bugcrowd yang lebih baik, dengan memilih kategori yang tepat dan menjawab keberatan out-of-scope.
cloud-iam-deep
5.4kMembantu agent Anda memeriksa apa yang bisa diakses oleh kredensial cloud yang ditemukan di AWS, Azure, atau Google Cloud, selama pengujian keamanan yang sudah diizinkan.
enterprise-vpn-attack
5.4kMembantu agent Anda memeriksa perangkat VPN dan akses jarak jauh dari Cisco, Fortinet, Citrix, dan lainnya untuk kelemahan yang diketahui selama pengujian yang sudah diizinkan.
Skill serupa
reverse-engineer-anything
422kMembantu agent Anda memeriksa aplikasi dan paket yang sudah dirilis untuk menjelaskan fitur, membandingkan versi, atau memandu pembangunan ulang dengan alat REA.
1password
394kMembantu agent Anda mengatur CLI 1Password, masuk, serta membaca atau menyisipkan rahasia tanpa menampilkan nilainya di chat.
healthcheck
394kMembantu agent Anda mengaudit komputer atau server OpenClaw dari risiko keamanan seperti SSH, firewall, pembaruan, dan cadangan, lalu menyarankan perbaikan aman.