hunt-captcha-bypass
它能做什么
这项技能检查验证码校验是否真正生效,例如字段被删除或令牌被重复使用的情况。它适用于对依赖验证码进行防护的表单进行的经授权测试。
适用场景
- ✓当注册或登录表单使用验证码,你想确认服务器是否进行了校验时。
- ✓当已解出的验证码令牌可能被接受多次时。
- ✓当验证码只出现在某个页面,而相关端点可能不做校验时。
技能链接
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-captcha-bypass/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们的注册表单有验证码。在我们经授权的测试中,请检查服务器是否真正执行了验证码校验。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会发送相同的请求,分别删除、留空或重复使用验证码,然后检查操作是否仍然成功。它会将结果与正常请求进行比较。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Autonomous Testing Priority
The fastest test: just omit the CAPTCHA field entirely. Most CAPTCHA bypass bugs are client-side-only validation.
Pattern 1 — Omit the CAPTCHA field (most common, most automatable):
- GET the form/endpoint that shows a CAPTCHA to understand its field name (usually
g-recaptcha-response,captcha,captcha_token,captcha_answer,h-captcha-response) - POST the form with ALL fields EXCEPT the CAPTCHA field
- If the action succeeds (200, redirect, or "success" message) → no server-side CAPTCHA validation
- Proof: the state-changing action completes without a valid CAPTCHA field (compare against a baseline request that includes it)
Pattern 2 — Empty or null CAPTCHA value:
Instead of omitting the field entirely, include it with an empty string, null, 0, or undefined:
captcha=&email=test@example.com&password=test123
Some apps validate field presence but not content.
Pattern 3 — Replay a previously solved CAPTCHA token:
- Complete one legitimate CAPTCHA challenge and capture the
g-recaptcha-responsetoken - Submit a second request immediately with the SAME token value
- If the second submission also succeeds → token is not single-use (replay attack)
- A replayed token can be shared across automated requests
Pattern 4 — Test without CAPTCHA on similar endpoints:
Some apps add CAPTCHA to the registration form but forget the password reset, API endpoint, or mobile API path (/api/register vs /register). Try the same action via the API path without any CAPTCHA field.
Pattern 5 — Rate/throughput-gated "prove you're automated" challenges: Some apps define CAPTCHA "bypass" as simply exceeding the rate a human could plausibly sustain — e.g. "N submissions within T seconds" — checked by a middleware that counts REQUESTS REACHING the route, not successful outcomes. Garbage/placeholder payloads satisfy this exactly as well as valid ones, since the counter increments regardless of whether the request's own validation passes.
Timing note (sliding-window counters): don't solve this one request at a time — a sequential
pace (seconds between each request) structurally cannot land N requests inside a short sliding
window, and issuing more requests serially does not fix it. A typical failing pattern is 12
requests spread across ~250 seconds when the check requires ~10 requests within 20 seconds.
Instead fire the requests concurrently (e.g. "concurrency": N on a single request call, or
any parallel-request primitive your tooling offers, with N >= the required count) so they arrive
simultaneously and satisfy the sliding window trivially. Check the endpoint's own
required-field validation first (e.g. a rating field that can't be null) so the concurrent
payload is at least well-formed enough to reach the counting middleware, even if other fields
(like the CAPTCHA answer itself) are wrong or reused.
What to skip in automated testing: Solving real reCAPTCHA/hCaptcha programmatically (OCR, audio bypass) requires external services. Only attempt if patterns 1-4 fail and the test budget allows.
Proof: Any successful state-changing action (account created, login succeeded, form submitted) that completed without a valid CAPTCHA token confirms the bypass.
Vulnerability Classes in This Skill
1. Client-Side-Only CAPTCHA Validation
JavaScript hides/disables the submit button until CAPTCHA is solved, but the server never checks the CAPTCHA token. Direct API calls bypass the UI gate entirely.
2. CAPTCHA Not Tied to Session or Action
A token solved for login is accepted on the registration endpoint (or any other). The server validates "is this a real CAPTCHA solution?" but not "is this the right solution for THIS action?".
3. Single-Use Not Enforced
CAPTCHA tokens (especially reCAPTCHA v2) are meant to be consumed after one use. If the server doesn't revoke them after verification, a single human-solved token becomes reusable for many requests.
4. CAPTCHA Added Reactively (Only After N Failures)
Some apps only show CAPTCHA after 3-5 failed login attempts. Before that threshold, no CAPTCHA is required → an attacker can make N-1 attempts per account indefinitely by resetting state between attempts.
5. Static or Predictable CAPTCHA
Math CAPTCHAs (3 + 4 = ?), simple image CAPTCHAs, or text CAPTCHAs with a finite answer set can be automated. These are custom CAPTCHA implementations, not Google/hCaptcha.
Im
常见问题
验证码绕过是什么意思?
指服务器在没有有效验证码的情况下仍接受操作,因此这项防护实际上并不起作用。
测试了哪些字段?
技能列出了一些常见字段名作为起点,例如 captcha 和 g-recaptcha-response。
它涵盖多少种模式?
技能列出了六种,包括省略字段、重放令牌,以及在其他端点上被接受的令牌。
详情
作者的原始描述
Hunt CAPTCHA Bypass — 6 distinct patterns: (1) CAPTCHA field simply omitted from the request (server-side validation absent), (2) CAPTCHA token replayed from a solved challenge (no single-use enforcement), (3) CAPTCHA response accepted on a different endpoint than it was solved on (no binding to action/session), (4) static or predictable CAPTCHA values accepted (e.g. '0', 'null', empty string), (5) audio/accessibility CAPTCHA trivially solvable programmatically, (6) CAPTCHA only enforced after N failures (first N requests bypass it). Detection: intercept a successful form submission, remove th
热度
- GitHub 星标
- 5.4k
- 排名
- #14899
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
apk-redteam-pipeline
5.4k帮你的智能体测试 Android 应用的安全弱点,从找到 APK 文件、反编译,到检查是否暴露了敏感信息。
bugcrowd-reporting
5.4k帮你的智能体撰写更好的 Bugcrowd 漏洞报告,选择正确的类别,并回应“超出范围”的异议。
cloud-iam-deep
5.4k帮你的智能体在经授权的安全测试中,检查找到的云凭据在 AWS、Azure 或 Google Cloud 上能访问哪些内容。
enterprise-vpn-attack
5.4k帮你的智能体在经授权的测试中,检查 Cisco、Fortinet、Citrix 等厂商 VPN 和远程访问设备是否存在已知弱点。