mirror of
https://github.com/elementalsouls/Claude-BugHunter.git
synced 2026-11-24 20:30:23 +01:00
Custom Flask lab (299 lines, MIT-shippable) with real defenses AND intentional FP-shaped behavior. Lab source shipped at docs/verification/hardened-lab/app.py — anyone can reproduce. Lab endpoint map: - /login (SQLi) — prepared statement defends; sanity check - /login (body-diff) — REAL user-enum via Body-Diff Rule - /profile/<id> — fake IDOR (200 OK, no leak); Pre-Severity Gate kills - /fetch?url= — fake SSRF (URL echo, no outbound); OOB Gate kills - /search?q= — fake XSS (word collision + encoding); Marker Discipline kills - /files?ext= — fake oracle (extension blocklist); Server-Policy-vs-State kills - /admin/users — REAL Critical broken function-level auth - /admin/timing-enum — REAL but noisy (±100ms); Statistical Sampling separates signal Results: 8/8 discipline rules fired correctly. - 4 FP-shaped behaviors KILLED before becoming N/A reports - 2 real bugs caught WITH statistical/body-byte evidence - 1 real Critical caught with full 7-Question Gate pass This is the highest-leverage verification yet — it tests the ACTUAL differentiator vs HackTricks/PayloadsAllTheThings. The discipline rules are not theory; they map directly to behavior an attacker tests via curl, and they correctly kill FPs that a naive operator would file. What this verifies for the repo claim: - "Discipline rules prevent N/A submissions" — confirmed against 4 distinct FP shapes - "Statistical sampling separates signal from noise" — confirmed with t-statistic 5.26 vs single-trial that happened to look strong - "Marker discipline catches reflection vs collision" — confirmed vs a deliberately-collidable product name - "Server-Policy-vs-State Rule catches policy filters" — confirmed vs an extension-based blocklist Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>