Files
Claude-BugHunter/docs/verification/phase3-playwright
Sachin SharmaandClaude Opus 4.7 e9daf3ccbb Phase 3.1: Playwright browser-execution harness — closes 2 gaps + corrects 1 Phase 2F overclaim
Real headless Chromium executes payloads against the lab; harness reads DOM
state and navigation chains to confirm what only-source-verification missed.

Verified live:

- TEST 28a — DOM XSS via alert dialog: payload <img src=x onerror=alert(...)>
  in location.hash → innerHTML sink. Chromium fired the alert with our
  message ("xss-via-playwright-2026"). DOM XSS confirmed at execution time,
  not just at sink shape.

- TEST 28b — DOM XSS via window variable: payload sets
  window.bughunter_xss_executed = true; harness reads it back via
  page.evaluate(). PASS. Robust pattern when CSP/popup-blocker would
  suppress dialogs.

Phase 2F correction (real verification finding):

- TEST 29 — OAuth @-userinfo bypass. Phase 2F Test 14 Attack B claimed
  redirect_uri=https://acme.example/@evil.com/ would land the auth code
  on evil.com against a server with prefix https://acme.example/ (trailing
  slash). Playwright shows this is WRONG against that specific lab:
  WHATWG URL parsing puts the @ in the PATH section once there's a `/`
  before it. Browser stays on acme.example.

- The vulnerability class is real — the @-userinfo bypass works when the
  prefix has NO trailing slash (verified by retest: browser navigated to
  evil.attacker.example with DNS failure as the only blocker). Updated
  Phase 2F doc with the correction + added a Browser-parse vs
  server-parse table to hunt-oauth covering the four redirect_uri attack
  shapes, when each works, and why headless-testing the final navigation
  is required before claiming an OAuth chain → ATO.

Closes the "source-verified only" gap from Phase 2 by providing a real
browser harness. Future stored-XSS / open-redirect / CSRF SameSite tests
can use the same pattern.

Lab + harness shipped at docs/verification/phase3-playwright/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 14:45:38 +05:30
..