Recipe 10-2: Preventing Cross-Site Scripting (XSS) Attacks
This recipe shows you how to figure out when attackers attempt to use path-traversal requests to access unauthorized data.
Ingredients
- OWASP ModSecurity Core Rule Set (CRS)
- modsecurity_crs_41_xss_attacks.conf
- ModSecurity
- REQUEST_URI variable
- REQUEST_BODY variable
- REQUEST_HEADERS variable
- XML variable
CAPEC-63: Simple Script Injection
Sample Attack
In April 2010, the Apache.org web site came under a wide attack targeting many different systems and using a variety of methods. One was a reflected XSS attack.
The attackers targeted the Apache JIRA admins by creating a ticket containing the following data:
Any JIRA admin ...