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

Commit 2eb45e4

Browse files
committed
changed regexp-942170.data to circumvent regexp-assemble bug
1 parent ef07ec4 commit 2eb45e4

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

rules/REQUEST-942-APPLICATION-ATTACK-SQLI.conf

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,8 @@ SecRule REQUEST_COOKIES|!REQUEST_COOKIES:/__utm/|REQUEST_COOKIES_NAMES|ARGS_NAME
133133
# cd util/regexp-assemble
134134
# ./regexp-assemble.pl regexp-942170.data
135135
# Note that after assemble an outer bracket with an ignore case flag is added
136-
# and a \ in front of a ? must be removed from the Regexp::Assemble output.
137-
# Example:
138-
# Regexp::Assemble output: (?:select|;)\s+(?:benchmark|sleep|if)\s*?\(\s*?\(\?\s*?\w+
139-
# Add ignore case bracket with flag and remove a \ in front of the ?:
140-
# (?i:(?:select|;)\s+(?:benchmark|sleep|if)\s*?\(\s*?\(?\s*?\w+)
136+
# to the Regexp::Assemble output:
137+
# (?i:ASSEMBLE_OUTPUT)
141138
#
142139
SecRule REQUEST_COOKIES|!REQUEST_COOKIES:/__utm/|REQUEST_COOKIES_NAMES|ARGS_NAMES|ARGS|XML:/* "@rx (?i:(?:select|;)\s+(?:benchmark|sleep|if)\s*?\(\s*?\(?\s*?\w+)" \
143140
"phase:2,\
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
select\s+benchmark\s*?\(\s*?\(?\s*?\w+
2-
;\s+benchmark\s*?\(\s*?\(?\s*?\w+
3-
select\s+if\s*?\(\s*?\(?\s*?\w+
4-
;\s+if\s*?\(\s*?\(?\s*?\w+
5-
select\s+sleep\s*?\(\s*?\(?\s*?\w+
6-
;\s+sleep\s*?\(\s*?\(?\s*?\w+
1+
select\s+benchmark\s*?\(\s*?[(]?\s*?\w+
2+
;\s+benchmark\s*?\(\s*?[(]?\s*?\w+
3+
select\s+if\s*?\(\s*?[(]?\s*?\w+
4+
;\s+if\s*?\(\s*?[(]?\s*?\w+
5+
select\s+sleep\s*?\(\s*?[(]?\s*?\w+
6+
;\s+sleep\s*?\(\s*?[(]?\s*?\w+

0 commit comments

Comments
 (0)