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 RAW mode we render it as-is (scripts execute!).
<script>alert('stored')</script>.No comments yet.
The input below is reflected back to the page. In RAW mode we render it directly (XSS).
<img src=x onerror=alert('reflect')><svg onload=alert(1)>