Skip to content

Commit 2dd3622

Browse files
authored
Fix XSS requesting 'capture' action v3.1/dev
according to PR SpiderLabs#828 before we forget it ;-)
1 parent 06b3588 commit 2dd3622

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rules/REQUEST-941-APPLICATION-ATTACK-XSS.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ------------------------------------------------------------------------
2-
# OWASP ModSecurity Core Rule Set ver.3.0.2
2+
# OWASP ModSecurity Core Rule Set ver.3.1.0
33
# Copyright (c) 2006-2016 Trustwave and contributors. All rights reserved.
44
#
55
# The OWASP ModSecurity Core Rule Set is distributed under
@@ -46,7 +46,6 @@ SecRule REQUEST_COOKIES|!REQUEST_COOKIES:/__utm/|REQUEST_COOKIES_NAMES|REQUEST_H
4646
t:none,t:utf8toUnicode,t:urlDecodeUni,t:htmlEntityDecode,t:jsDecode,t:cssDecode,t:removeNulls,\
4747
block,\
4848
ctl:auditLogParts=+E,\
49-
capture,\
5049
tag:'application-multi',\
5150
tag:'language-multi',\
5251
tag:'platform-multi',\
@@ -57,7 +56,7 @@ SecRule REQUEST_COOKIES|!REQUEST_COOKIES:/__utm/|REQUEST_COOKIES_NAMES|REQUEST_H
5756
tag:'OWASP_TOP_10/A3',\
5857
tag:'OWASP_AppSensor/IE1',\
5958
tag:'CAPEC-242',\
60-
logdata:'Matched Data: %{TX.0} found within %{MATCHED_VAR_NAME}: %{MATCHED_VAR}',\
59+
logdata:'Matched Data: XSS data found within %{MATCHED_VAR_NAME}: %{MATCHED_VAR}',\
6160
setvar:'tx.msg=%{rule.msg}',\
6261
setvar:tx.xss_score=+%{tx.critical_anomaly_score},\
6362
setvar:tx.anomaly_score=+%{tx.critical_anomaly_score},\
@@ -982,4 +981,3 @@ SecRule TX:PARANOIA_LEVEL "@lt 4" "phase:2,id:941018,nolog,pass,skipAfter:END-RE
982981
# -= Paranoia Levels Finished =-
983982
#
984983
SecMarker "END-REQUEST-941-APPLICATION-ATTACK-XSS"
985-

0 commit comments

Comments
 (0)