XSS
Cross-Site Scripting (XSS)
Reflected
Vulnerable code
<?php
echo '<div><p>Searched string: ' . $_GET['search'] . '</p></div>';
?>The injection
Response
<div><p>Searched string: 1</p></div>Response
<div><p>Searched string: </p><script>alert()</script><p></p></div>Stored
Data exfiltration
Exfiltrating basic data
Exfiltrating other endpoint's data
Session Hijaking
Exfiltrating the cookie
Using the cookie
Filter Bypass
Last updated