Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit 6d2fa30

Browse files
authored
Merge pull request #830 from emphazer/patch-10
Fix XSS requesting 'capture' action v3.1/dev
2 parents 06b3588 + 2dd3622 commit 6d2fa30

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)