Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 136e85a

Browse files
committed
little refresh of PHPIDS rules for --check-payload
1 parent 0ae74f2 commit 136e85a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

xml/phpids_rules.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
</filter>
7979
<filter>
8080
<id>47</id>
81-
<rule><![CDATA[(?:^[\W\d]+\s*(?:union|select|create|rename|truncate|load|alter|delete|update|insert|desc))|(?:(?:select|create|rename|truncate|load|alter|delete|update|insert|desc)\s+(?:concat|char|load_file)\s?\(?)|(?:end\s*\);)|("\s+regexp\W)|(?:[\s(]load_file\s*\()]]></rule>
81+
<rule><![CDATA[(?:[\d\W]\s+as\s*["\w]+\s*from)|(?:^[\W\d]+\s*(?:union|select|create|rename|truncate|load|alter|delete|update|insert|desc))|(?:(?:select|create|rename|truncate|load|alter|delete|update|insert|desc)\s+(?:concat|char|load_file)\s?\(?)|(?:end\s*\);)|("\s+regexp\W)|(?:[\s(]load_file\s*\()]]></rule>
8282
<description>Detects concatenated basic SQL injection and SQLLFI attempts</description>
8383
<tags>
8484
<tag>sqli</tag>
@@ -99,7 +99,7 @@
9999
</filter>
100100
<filter>
101101
<id>49</id>
102-
<rule><![CDATA[(?:\(\s*select\s*\w+\s*\()|(?:\*\/from)|(?:\+\s*\d+\s*\+\s*@)|(?:\w"\s*(?:[-+=|@]+\s*)+[\d(])|(?:coalesce\s*\(|@@\w+\s*[^\w\s])|(?:\W!+"\w)|(?:";\s*(?:if|while|begin))|(?:"[\s\d]+=\s*\d)|(?:order\s+by\s+if\w*\s*\()|(?:[\s(]+case\d*\W.+[tw]hen[\s(])]]></rule>
102+
<rule><![CDATA[(?:"\s+and\s*=\W)|(?:\(\s*select\s*\w+\s*\()|(?:\*\/from)|(?:\+\s*\d+\s*\+\s*@)|(?:\w"\s*(?:[-+=|@]+\s*)+[\d(])|(?:coalesce\s*\(|@@\w+\s*[^\w\s])|(?:\W!+"\w)|(?:";\s*(?:if|while|begin))|(?:"[\s\d]+=\s*\d)|(?:order\s+by\s+if\w*\s*\()|(?:[\s(]+case\d*\W.+[tw]hen[\s(])]]></rule>
103103
<description>Detects chained SQL injection attempts 2/2</description>
104104
<tags>
105105
<tag>sqli</tag>
@@ -159,7 +159,7 @@
159159
</filter>
160160
<filter>
161161
<id>55</id>
162-
<rule><![CDATA[(?:"\s*!\s*["\w])|(?:from\s+information_schema\W)|(?:(?:(?:current_)?user|database|schema|connection_id)\s*\([^\)]*)|(?:";?\s*(?:select|union|having)\s*[^\s])|(?:\wiif\s*\()|(?:exec\s+master\.)|(?:union select @)|(?:union[\w(\s]*select)|(?:select.*\w?user\()|(?:into[\s+]+(?:dump|out)file\s*")]]></rule>
162+
<rule><![CDATA[(?:\sexec\s+xp_cmdshell)|(?:"\s*!\s*["\w])|(?:from\s+information_schema\W)|(?:(?:(?:current_)?user|database|schema|connection_id)\s*\([^\)]*)|(?:";?\s*(?:select|union|having)\s*[^\s])|(?:\wiif\s*\()|(?:exec\s+master\.)|(?:union select @)|(?:union[\w(\s]*select)|(?:select.*\w?user\()|(?:into[\s+]+(?:dump|out)file\s*")]]></rule>
163163
<description>Detects MSSQL code execution and information gathering attempts</description>
164164
<tags>
165165
<tag>sqli</tag>
@@ -186,7 +186,7 @@
186186
<tag>id</tag>
187187
</tags>
188188
<impact>5</impact>
189-
</filter>
189+
</filter>
190190
<filter>
191191
<id>70</id>
192192
<rule><![CDATA[(?:\[\$(?:ne|eq|lte?|gte?|n?in|mod|all|size|exists|type|slice|or)\])]]></rule>
@@ -195,5 +195,5 @@
195195
<tag>sqli</tag>
196196
</tags>
197197
<impact>4</impact>
198-
</filter>
198+
</filter>
199199
</filters>

0 commit comments

Comments
 (0)