This single page shows Stored XSS (session-based “comments”) and Reflected XSS (echoed query). Toggle modes to compare: SAFE RAW
Add a “comment” that’s saved in your PHP session. In SAFE mode we escape HTML so scripts do not run.
<script>alert('stored')</script>.No comments yet.
The input below is reflected back to the page. In SAFE mode we escape it (no XSS).
<img src=x onerror=alert('reflect')><svg onload=alert(1)>