Lucene search
K

Mod_Security Cross Site Scripting Bypass

🗓️ 19 Jun 2013 00:00:00Reported by Rafay BalochType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 40 Views

Mod_Security WAF XSS Vector Bypass Fixe

Code
`Product: Mod_security  
Author: Rafay Baloch  
Status: Fixed  
  
Details:  
  
The Mod_Security firewall is one of the most known WAF around, It has an  
online smoke test where we can check if a vector bypassed the regular  
expressions.  
  
Payload:  
  
It was though detecting null bytes, but it was generating a false positive  
marking an xss attack as a SQL Injection attack.  
  
The payload that was injected was:  
  
<scri%00pt>confirm(0);</scri%00pt>  
  
I changed alert/eval to confirm, because alert was being detected but  
prompt and confirm were not being detected.  
  
Fix:  
  
The ModSecurity has updated the rule set and it now the detects the vector  
as an xss vector. More details can be found in the following tweet:  
https://twitter.com/ModSecurity/status/347364390737178625  
  
--   
Warm Regards,  
Rafay Baloch  
  
http://rafayhackingarticles.net  
http://techlotips.com  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation