SLIDE 4 XSS: Cross-Site Scripting
- XSS is a web application vulnerability that exploits the trust a user has for a web site
- The attacker's goal is to execute malicious code in the context of a trusted web site
- Practical example?
Hey <?php echo $_GET['name']; ?>, how are u?
The application reflects the name given in the GET parameter called name.
http://target.net/page.php?name=superman Hey superman, how are u?
But the attacker could inject its own code in order to execute JavaScript
http://target.net/page.php?name=<script>alert(1)</script> Hey <script>alert(1)</script>, how are u?