JavaScript injection is a subtype of cross-site scripting attacks specific to the arbitrary injection of JavaScript. Vulnerabilities in this area can affect sensitive information held in the browser, such as user session cookies, or it can lead to the modification of page content, allowing script execution from attacker-controlled sites.
Testing for JavaScript execution
Getting ready
Using the OWASP Mutillidae II Password Generator exercise, let’s determine whether the application is susceptible to JavaScript XSS attacks.
How to do it...
- Navigate to OWASP 2013...