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

Commit

Permalink
Merge pull request #1703 from dune73/fix-fp-941130
Browse files Browse the repository at this point in the history
Narrowing down subregex .*? in 941130
  • Loading branch information
fzipi authored Feb 27, 2020
2 parents 4b2ce79 + c63d2fc commit 51a243d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rules/REQUEST-941-APPLICATION-ATTACK-XSS.conf
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ SecRule REQUEST_COOKIES|!REQUEST_COOKIES:/__utm/|REQUEST_COOKIES_NAMES|REQUEST_H
# cd util/regexp-assemble
# ./regexp-assemble.pl regexp-941130.data
#
SecRule REQUEST_COOKIES|!REQUEST_COOKIES:/__utm/|REQUEST_COOKIES_NAMES|REQUEST_HEADERS:User-Agent|ARGS_NAMES|ARGS|XML:/* "@rx (?i)[\s\S](?:!ENTITY.*?(?:PUBLIC|SYSTEM)|x(?:link:href|html|mlns)|data:text\/html|pattern\b.*?=|formaction|\@import|;base64)\b" \
SecRule REQUEST_COOKIES|!REQUEST_COOKIES:/__utm/|REQUEST_COOKIES_NAMES|REQUEST_HEADERS:User-Agent|ARGS_NAMES|ARGS|XML:/* "@rx (?i)[\s\S](?:!ENTITY\s+(?:\S+|%\s+\S+)\s+(?:PUBLIC|SYSTEM)|x(?:link:href|html|mlns)|data:text\/html|pattern\b.*?=|formaction|\@import|;base64)\b" \
"id:941130,\
phase:2,\
block,\
Expand Down
4 changes: 2 additions & 2 deletions util/regexp-assemble/regexp-941130.data
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(?i)[\s\S]xlink:href\b
(?i)[\s\S]xhtml\b
(?i)[\s\S]xmlns\b
(?i)[\s\S]!ENTITY.*?SYSTEM\b
(?i)[\s\S]!ENTITY.*?PUBLIC\b
(?i)[\s\S]!ENTITY\s+(?:\S+|%\s+\S+)\s+SYSTEM\b
(?i)[\s\S]!ENTITY\s+(?:\S+|%\s+\S+)\s+PUBLIC\b
(?i)[\s\S]data:text/html\b
(?i)[\s\S]formaction\b
(?i)[\s\S]@import\b
Expand Down

0 comments on commit 51a243d

Please sign in to comment.