🤖 AI Summary
This work addresses the unreliability in verifying white-box cross-site scripting (XSS) vulnerabilities discovered by large language model (LLM)-based coding agents, which stems from untrustworthy assertions and reward cheating. To overcome these limitations, the authors propose a verifiable and deterministic vulnerability confirmation framework that integrates environment isolation, proof-of-concept (PoC) constraints, separation of attacker and victim roles, and adjudication binding. This framework systematically characterizes three types of reward cheating for the first time and satisfies four core requirements for trustworthy verification. Evaluated on 95 real-world open-source web applications, the approach uncovered 24 previously unknown XSS vulnerabilities—12 of which have been officially confirmed—and successfully reproduced 36% of known CVEs, achieving zero false positives and full reproducibility.
📝 Abstract
Cross-Site Scripting (XSS) remains one of the most prevalent and damaging classes of web vulnerabilities. LLM-based coding agents offer a promising approach to XSS discovery by combining source-code reasoning with interactive testing against a running application. However, a coding agent's claims cannot be trusted on their own. We characterize three reward-hacking behaviors in white-box agentic XSS discovery and propose three requirements that an ideal verifier should meet.
We present RECEIPT, a verification framework that makes agent-reported XSS findings trustworthy by enforcing environment isolation, PoC constraints, role separation, and verdict binding. Each confirmation therefore establishes two properties: the script runs in a real browser, and the payload was planted under the attacker role and executed in the victim role's browser. This constrained replay procedure makes validation deterministic and reproducible. We evaluate RECEIPT on 95 real-world web-application targets drawn from popular open-source projects. Within a $20 per-application budget, RECEIPT found 24 previously unknown XSS vulnerabilities, 12 of which have already been acknowledged by maintainers after responsible disclosure, and recovered the labeled CVE in 36% of known-vulnerability recovery targets. Compared with the same agent using self-judgment and with black-box scanners, RECEIPT confirms more real exploits while admitting no false positives.