diff --git a/owasp_rules.json b/owasp_rules.json
index f44d515..e5d4ed6 100644
--- a/owasp_rules.json
+++ b/owasp_rules.json
@@ -120,59 +120,55 @@
"pattern": "@lt %{tx.blocking_paranoia_level}"
},
{
- "category": "EXCEPTIONS",
- "pattern": "@streq GET /"
- },
- {
- "category": "EXCEPTIONS",
- "pattern": "@ipMatch 127.0.0.1,::1"
+ "category": "LFI",
+ "pattern": "@lt 1"
},
{
- "category": "EXCEPTIONS",
- "pattern": "@ipMatch 127.0.0.1,::1"
+ "category": "LFI",
+ "pattern": "@lt 1"
},
{
- "category": "EXCEPTIONS",
- "pattern": "@endsWith (internal dummy connection)"
+ "category": "LFI",
+ "pattern": "@rx (?i)(?:[/x5c]|%(?:2(?:f|5(?:2f|5c|c(?:1%259c|0%25af))|%46)|5c|c(?:0%(?:[2aq]f|5c|9v)|1%(?:[19p]c|8s|af))|(?:bg%q|(?:e|f(?:8%8)?0%8)0%80%a)f|u(?:221[5-6]|EFC8|F025|002f)|%3(?:2(?:%(?:%6|4)6|F)|5%%63)|1u)|0x(?:2f|5c))(?:.(?:%0[0-1]|?)?|?.?|%(?:2(?:(?:5(?:2|c0%25a))?e|%45)|c0(?:.|%[25-6ae-f]e)|u(?:(?:ff0|002)e|2024)|%32(?:%(?:%6|4)5|E)|(?:e|f(?:(?:8|c%80)%8)?0%8)0%80%ae)|0x2e){2,3}(?:[/x5c]|%(?:2(?:f|5(?:2f|5c|c(?:1%259c|0%25af))|%46)|5c|c(?:0%(?:[2aq]f|5c|9v)|1%(?:[19p]c|8s|af))|(?:bg%q|(?:e|f(?:8%8)?0%8)0%80%a)f|u(?:221[5-6]|EFC8|F025|002f)|%3(?:2(?:%(?:%6|4)6|F)|5%%63)|1u)|0x(?:2f|5c))"
},
{
- "category": "EXCEPTIONS",
- "pattern": "@rx ^(?:GET /|OPTIONS *) HTTP/[12].[01]$"
+ "category": "LFI",
+ "pattern": "@rx (?:(?:^|[x5c/;]).{2,3}[x5c/;]|[x5c/;].{2,3}(?:[x5c/;]|$))"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@lt 1"
+ "category": "LFI",
+ "pattern": "@pmFromFile lfi-os-files.data"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@lt 1"
+ "category": "LFI",
+ "pattern": "@pmFromFile restricted-files.data"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@within %{tx.allowed_methods}"
+ "category": "LFI",
+ "pattern": "@lt 2"
},
{
- "category": "ENFORCEMENT",
+ "category": "LFI",
"pattern": "@lt 2"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@lt 2"
+ "category": "LFI",
+ "pattern": "@pmFromFile lfi-os-files.data"
},
{
- "category": "ENFORCEMENT",
+ "category": "LFI",
"pattern": "@lt 3"
},
{
- "category": "ENFORCEMENT",
+ "category": "LFI",
"pattern": "@lt 3"
},
{
- "category": "ENFORCEMENT",
+ "category": "LFI",
"pattern": "@lt 4"
},
{
- "category": "ENFORCEMENT",
+ "category": "LFI",
"pattern": "@lt 4"
},
{
@@ -212,1644 +208,1548 @@
"pattern": "@lt 4"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@lt 1"
+ "category": "EVALUATION",
+ "pattern": "@ge 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@lt 1"
+ "category": "EVALUATION",
+ "pattern": "@ge 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@rx (?i)^(?:get /[^#?]*(?:?[^sv#]*)?(?:#[^sv]*)?|(?:connect (?:(?:[0-9]{1,3}.){3}[0-9]{1,3}.?(?::[0-9]+)?|[--9A-Z_a-z]+:[0-9]+)|options *|[a-z]{3,10}[sv]+(?:[0-9A-Z_a-z]{3,7}?://[--9A-Z_a-z]*(?::[0-9]+)?)?/[^#?]*(?:?[^sv#]*)?(?:#[^sv]*)?)[sv]+[.-9A-Z_a-z]+)$"
+ "category": "EVALUATION",
+ "pattern": "@ge 2"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@rx (?i)^(?:&(?:(?:[acegiln-or-suz]acut|[aeiou]grav|[ain-o]tild)e|[c-elnr-tz]caron|(?:[cgk-lnr-t]cedi|[aeiouy]um)l|[aceg-josuwy]circ|[au]ring|a(?:mp|pos)|nbsp|oslash);|[^\"';=])*$"
+ "category": "EVALUATION",
+ "pattern": "@ge 2"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@rx ^d+$"
+ "category": "EVALUATION",
+ "pattern": "@ge 3"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx ^(?:GET|HEAD)$"
+ "category": "EVALUATION",
+ "pattern": "@ge 3"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@rx ^0?$"
+ "category": "EVALUATION",
+ "pattern": "@ge 4"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx ^(?:GET|HEAD)$"
+ "category": "EVALUATION",
+ "pattern": "@ge 4"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@eq 0"
+ "category": "EVALUATION",
+ "pattern": "@ge 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@within HTTP/2 HTTP/2.0 HTTP/3 HTTP/3.0"
+ "category": "EVALUATION",
+ "pattern": "@ge 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@streq POST"
+ "category": "EVALUATION",
+ "pattern": "@ge 2"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@eq 0"
+ "category": "EVALUATION",
+ "pattern": "@ge 2"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@eq 0"
+ "category": "EVALUATION",
+ "pattern": "@ge 3"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@eq 0"
+ "category": "EVALUATION",
+ "pattern": "@ge 3"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@eq 0"
+ "category": "EVALUATION",
+ "pattern": "@ge 4"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx (d+)-(d+)"
+ "category": "EVALUATION",
+ "pattern": "@ge 4"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@lt %{tx.1}"
+ "category": "EVALUATION",
+ "pattern": "@ge %{tx.inbound_anomaly_score_threshold}"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx b(?:keep-alive|close),s?(?:keep-alive|close)b"
+ "category": "EVALUATION",
+ "pattern": "@eq 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx x25"
+ "category": "EVALUATION",
+ "pattern": "@ge %{tx.inbound_anomaly_score_threshold}"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@validateUrlEncoding"
+ "category": "EVALUATION",
+ "pattern": "@lt 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx ^(?i)application/x-www-form-urlencoded"
+ "category": "EVALUATION",
+ "pattern": "@lt 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx x25"
+ "category": "EVALUATION",
+ "pattern": "@lt 2"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@validateUrlEncoding"
+ "category": "EVALUATION",
+ "pattern": "@lt 2"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@eq 1"
+ "category": "EVALUATION",
+ "pattern": "@lt 3"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@validateUtf8Encoding"
+ "category": "EVALUATION",
+ "pattern": "@lt 3"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx %u[fF]{2}[0-9a-fA-F]{2}"
+ "category": "EVALUATION",
+ "pattern": "@lt 4"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@validateByteRange 1-255"
+ "category": "EVALUATION",
+ "pattern": "@lt 4"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@eq 0"
+ "category": "PHP",
+ "pattern": "@lt 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx ^$"
+ "category": "PHP",
+ "pattern": "@lt 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx ^$"
+ "category": "PHP",
+ "pattern": "@rx (?:(?:[^x]|x[^m]|xm[^l]|xml[^s]|xml$|$)|"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@gt %{tx.combined_file_sizes}"
+ "category": "PHP",
+ "pattern": "@rx (?:((?:.+)(?:[\"'][-0-9A-Z_a-z]+[\"'])?(.+|[^)]*string[^)]*)[sv\"'--.0-9A-[]_a-{}]+([^)]*)|(?:[[0-9]+]|{[0-9]+}|$[^(-),.-/;x5c]+|[\"'][-0-9A-Zx5c_a-z]+[\"'])(.+))(?:;|$)?"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@rx ^[w/.+*-]+(?:s?;s?(?:action|boundary|charset|component|start(?:-info)?|type|version)s?=s?['\"w.()+,/:=?<>@#*-]+)*$"
+ "category": "PHP",
+ "pattern": "@lt 4"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx ^[^;s]+"
+ "category": "PHP",
+ "pattern": "@lt 4"
},
{
"category": "ENFORCEMENT",
- "pattern": "!@within %{tx.allowed_request_content_type}"
+ "pattern": "@lt 1"
},
{
"category": "ENFORCEMENT",
- "pattern": "@rx charsets*=s*[\"']?([^;\"'s]+)"
+ "pattern": "@lt 1"
},
{
"category": "ENFORCEMENT",
- "pattern": "!@within %{tx.allowed_request_content_type_charset}"
+ "pattern": "!@within %{tx.allowed_methods}"
},
{
"category": "ENFORCEMENT",
- "pattern": "@rx charset.*?charset"
+ "pattern": "@lt 2"
},
{
"category": "ENFORCEMENT",
- "pattern": "!@within %{tx.allowed_http_versions}"
+ "pattern": "@lt 2"
},
{
"category": "ENFORCEMENT",
- "pattern": "@rx .([^.]+)$"
+ "pattern": "@lt 3"
},
{
"category": "ENFORCEMENT",
- "pattern": "@within %{tx.restricted_extensions}"
+ "pattern": "@lt 3"
},
{
"category": "ENFORCEMENT",
- "pattern": "@rx .[^.~]+~(?:/.*|)$"
+ "pattern": "@lt 4"
},
{
"category": "ENFORCEMENT",
- "pattern": "@rx ^.*$"
+ "pattern": "@lt 4"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@within %{tx.restricted_headers_basic}"
+ "category": "ATTACK",
+ "pattern": "!@eq 0"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@gt 50"
+ "category": "ATTACK",
+ "pattern": "!@within |%{tx.allowed_request_content_type_charset}|"
},
{
- "category": "ENFORCEMENT",
+ "category": "ATTACK",
+ "pattern": "@rx ^content-types*:s*(.*)$"
+ },
+ {
+ "category": "ATTACK",
"pattern": "!@rx ^(?:(?:*|[^!-\"(-),/:-?[-]{}]+)/(?:*|[^!-\"(-),/:-?[-]{}]+)|*)(?:[sv]*;[sv]*(?:charset[sv]*=[sv]*\"?(?:iso-8859-15?|utf-8|windows-1252)b\"?|(?:[^sv -\"(-),/:-?[-]c{}]|c(?:[^!-\"(-),/:-?[-]h{}]|h(?:[^!-\"(-),/:-?[-]a{}]|a(?:[^!-\"(-),/:-?[-]r{}]|r(?:[^!-\"(-),/:-?[-]s{}]|s(?:[^!-\"(-),/:-?[-]e{}]|e[^!-\"(-),/:-?[-]t{}]))))))[^!-\"(-),/:-?[-]{}]*[sv]*=[sv]*[^!(-),/:-?[-]{}]+);?)*(?:[sv]*,[sv]*(?:(?:*|[^!-\"(-),/:-?[-]{}]+)/(?:*|[^!-\"(-),/:-?[-]{}]+)|*)(?:[sv]*;[sv]*(?:charset[sv]*=[sv]*\"?(?:iso-8859-15?|utf-8|windows-1252)b\"?|(?:[^sv -\"(-),/:-?[-]c{}]|c(?:[^!-\"(-),/:-?[-]h{}]|h(?:[^!-\"(-),/:-?[-]a{}]|a(?:[^!-\"(-),/:-?[-]r{}]|r(?:[^!-\"(-),/:-?[-]s{}]|s(?:[^!-\"(-),/:-?[-]e{}]|e[^!-\"(-),/:-?[-]t{}]))))))[^!-\"(-),/:-?[-]{}]*[sv]*=[sv]*[^!(-),/:-?[-]{}]+);?)*)*$"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@streq JSON"
+ "category": "ATTACK",
+ "pattern": "@rx content-transfer-encoding:(.*)"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx (?i)x5cu[0-9a-f]{4}"
+ "category": "SQL",
+ "pattern": "@lt 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@contains #"
+ "category": "SQL",
+ "pattern": "@lt 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@gt 1"
+ "category": "SQL",
+ "pattern": "!@pmFromFile sql-errors.data"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@lt 2"
+ "category": "SQL",
+ "pattern": "@rx (?i:JET Database Engine|Access Database Engine|[Microsoft][ODBC Microsoft Access Driver])"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@lt 2"
+ "category": "SQL",
+ "pattern": "@rx (?i:ORA-[0-9][0-9][0-9][0-9]|java.sql.SQLException|Oracle error|Oracle.*Driver|Warning.*oci_.*|Warning.*ora_.*)"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx ^bytes=(?:(?:d+)?-(?:d+)?s*,?s*){6}"
+ "category": "SQL",
+ "pattern": "@rx (?i:DB2 SQL error:|[IBM][CLI Driver][DB2/6000]|CLI Driver.*DB2|DB2 SQL error|db2_w+()"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@endsWith .pdf"
+ "category": "SQL",
+ "pattern": "@rx (?i:[DM_QUERY_E_SYNTAX]|has occurred in the vicinity of:)"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@endsWith .pdf"
+ "category": "SQL",
+ "pattern": "@rx (?i)Dynamic SQL Error"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx ^bytes=(?:(?:d+)?-(?:d+)?s*,?s*){63}"
+ "category": "SQL",
+ "pattern": "@rx (?i)Exception (?:condition )?d+. Transaction rollback."
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx %[0-9a-fA-F]{2}"
+ "category": "SQL",
+ "pattern": "@rx (?i)org.hsqldb.jdbc"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@validateByteRange 9,10,13,32-126,128-255"
+ "category": "SQL",
+ "pattern": "@rx (?i:An illegal character has been found in the statement|com.informix.jdbc|Exception.*Informix)"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@eq 0"
+ "category": "SQL",
+ "pattern": "@rx (?i:Warning.*ingres_|Ingres SQLSTATE|IngresW.*Driver)"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx ['\";=]"
+ "category": "SQL",
+ "pattern": "@rx (?i:Warning: ibase_|Unexpected end of command in statement)"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@rx ^0$"
+ "category": "SQL",
+ "pattern": "@rx (?i:SQL error.*POS[0-9]+.*|Warning.*maxdb.*)"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@eq 0"
+ "category": "SQL",
+ "pattern": "@rx (?i)(?:System.Data.OleDb.OleDbException|[Microsoft][ODBC SQL Server Driver]|[Macromedia][SQLServer JDBC Driver]|[SqlException|System.Data.SqlClient.SqlException|Unclosed quotation mark after the character string|'80040e14'|mssql_query()|Microsoft OLE DB Provider for ODBC Drivers|Microsoft OLE DB Provider for SQL Server|Incorrect syntax near|Sintaxis incorrecta cerca de|Syntax error in string in query expression|Procedure or function .* expects parameter|Unclosed quotation mark before the character string|Syntax error .* in query expression|Data type mismatch in criteria expression.|ADODB.Field (0x800A0BCD)|the used select statements have different number of columns|OLE DB.*SQL Server|Warning.*mssql_.*|Driver.*SQL[ _-]*Server|SQL Server.*Driver|SQL Server.*[0-9a-fA-F]{8}|Exception.*WSystem.Data.SqlClient.|Conversion failed when converting the varchar value .*? to data type int.)"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx ^.*$"
+ "category": "SQL",
+ "pattern": "@rx (?i)(?:supplied argument is not a valid |SQL syntax.*)MySQL|Column count doesn't match(?: value count at row)?|mysql_fetch_array()|on MySQL result index|You have an error in your SQL syntax(?:;| near)|MyS(?:QL server version for the right syntax to use|qlClient.)|[MySQL][ODBC|(?:Table '[^']+' doesn't exis|valid MySQL resul)t|Warning.{1,10}mysql_(?:[(-)_a-z]{1,26})?|(?:ERROR [0-9]{4} ([0-9a-z]{5})|XPATH syntax error):"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@within %{tx.restricted_headers_extended}"
+ "category": "SQL",
+ "pattern": "@rx (?i)P(?:ostgreSQL(?: query failed:|.{1,20}ERROR)|G::[a-z]*Error)|pg_(?:query|exec)() [:|Warning.{1,20}bpg_.*|valid PostgreSQL result|Npgsql.|Supplied argument is not a valid PostgreSQL .*? resource|(?:Unable to connect to PostgreSQL serv|invalid input syntax for integ)er"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@lt 3"
+ "category": "SQL",
+ "pattern": "@rx (?i)(?:Warning.*sqlite_.*|Warning.*SQLite3::|SQLite/JDBCDriver|SQLite.Exception|System.Data.SQLite.SQLiteException)"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@lt 3"
+ "category": "SQL",
+ "pattern": "@rx (?i)(?:Sybase message:|Warning.{2,20}sybase|Sybase.*Server message.*)"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@validateByteRange 32-36,38-126"
+ "category": "SQL",
+ "pattern": "@lt 2"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@eq 0"
+ "category": "SQL",
+ "pattern": "@lt 2"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@rx ^(?:OPTIONS|CONNECT)$"
+ "category": "SQL",
+ "pattern": "@lt 3"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@pm AppleWebKit Android"
+ "category": "SQL",
+ "pattern": "@lt 3"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@ge 1"
+ "category": "SQL",
+ "pattern": "@lt 4"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx ^(?i)up"
+ "category": "SQL",
+ "pattern": "@lt 4"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@gt 0"
+ "category": "GENERIC",
+ "pattern": "@lt 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@rx ^(?:(?:max-age=[0-9]+|min-fresh=[0-9]+|no-cache|no-store|no-transform|only-if-cached|max-stale(?:=[0-9]+)?)(?:s*,s*|$)){1,7}$"
+ "category": "GENERIC",
+ "pattern": "@lt 1"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@rx br|compress|deflate|(?:pack200-)?gzip|identity|*|^$|aes128gcm|exi|zstd|x-(?:compress|gzip)"
+ "category": "GENERIC",
+ "pattern": "@rx _(?:$$ND_FUNC$$_|_js_function)|(?:beval|new[sv]+Function[sv]*)(|String.fromCharCode|function(){|this.constructor|module.exports=|([sv]*[^0-9A-Z_a-z]child_process[^0-9A-Z_a-z][sv]*)|process(?:.(?:(?:a(?:ccess|ppendfile|rgv|vailability)|c(?:aveats|h(?:mod|own)|(?:los|opyfil)e|p|reate(?:read|write)stream)|ex(?:ec(?:file)?|ists)|f(?:ch(?:mod|own)|data(?:sync)?|s(?:tat|ync)|utimes)|inodes|l(?:chmod|ink|stat|utimes)|mkd(?:ir|temp)|open(?:dir)?|r(?:e(?:ad(?:dir|file|link|v)?|name)|m)|s(?:pawn(?:file)?|tat|ymlink)|truncate|u(?:n(?:link|watchfile)|times)|w(?:atchfile|rite(?:file|v)?))(?:sync)?(?:.call)?(|binding|constructor|env|global|main(?:Module)?|process|require)|[[\"'`](?:(?:a(?:ccess|ppendfile|rgv|vailability)|c(?:aveats|h(?:mod|own)|(?:los|opyfil)e|p|reate(?:read|write)stream)|ex(?:ec(?:file)?|ists)|f(?:ch(?:mod|own)|data(?:sync)?|s(?:tat|ync)|utimes)|inodes|l(?:chmod|ink|stat|utimes)|mkd(?:ir|temp)|open(?:dir)?|r(?:e(?:ad(?:dir|file|link|v)?|name)|m)|s(?:pawn(?:file)?|tat|ymlink)|truncate|u(?:n(?:link|watchfile)|times)|w(?:atchfile|rite(?:file|v)?))(?:sync)?|binding|constructor|env|global|main(?:Module)?|process|require)[\"'`]])|(?:binding|constructor|env|global|main(?:Module)?|process|require)[|console(?:.(?:debug|error|info|trace|warn)(?:.call)?(|[[\"'`](?:debug|error|info|trace|warn)[\"'`]])|require(?:.(?:resolve(?:.call)?(|main|extensions|cache)|[[\"'`](?:(?:resolv|cach)e|main|extensions)[\"'`]])"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@lt 4"
+ "category": "GENERIC",
+ "pattern": "@rx (?:close|exists|fork|(?:ope|spaw)n|re(?:ad|quire)|w(?:atch|rite))[sv]*("
},
{
- "category": "ENFORCEMENT",
- "pattern": "@lt 4"
+ "category": "GENERIC",
+ "pattern": "@pmFromFile ssrf.data"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@endsWith .pdf"
+ "category": "GENERIC",
+ "pattern": "@rx (?:__proto__|constructors*(?:.|[)s*prototype)"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx ^bytes=(?:(?:d+)?-(?:d+)?s*,?s*){6}"
+ "category": "GENERIC",
+ "pattern": "@rx Process[sv]*.[sv]*spawn[sv]*("
},
{
- "category": "ENFORCEMENT",
- "pattern": "@validateByteRange 38,44-46,48-58,61,65-90,95,97-122"
+ "category": "GENERIC",
+ "pattern": "@rx while[sv]*([sv(]*(?:!+(?:false|null|undefined|NaN|[+-]?0|\"{2}|'{2}|`{2})|(?:!!)*(?:(?:t(?:rue|his)|[+-]?(?:Infinity|[1-9][0-9]*)|new [A-Za-z][0-9A-Z_a-z]*|window|String|(?:Boolea|Functio)n|Object|Array)b|{.*}|[.*]|\"[^\"]+\"|'[^']+'|`[^`]+`)).*)"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@validateByteRange 32,34,38,42-59,61,65-90,95,97-122"
+ "category": "GENERIC",
+ "pattern": "@rx ^data:(?:(?:*|[^!-\"(-),/:-?[-]{}]+)/(?:*|[^!-\"(-),/:-?[-]{}]+)|*)(?:[sv]*;[sv]*(?:charset[sv]*=[sv]*\"?(?:iso-8859-15?|utf-8|windows-1252)b\"?|(?:[^sv -\"(-),/:-?[-]c{}]|c(?:[^!-\"(-),/:-?[-]h{}]|h(?:[^!-\"(-),/:-?[-]a{}]|a(?:[^!-\"(-),/:-?[-]r{}]|r(?:[^!-\"(-),/:-?[-]s{}]|s(?:[^!-\"(-),/:-?[-]e{}]|e[^!-\"(-),/:-?[-]t{}]))))))[^!-\"(-),/:-?[-]{}]*[sv]*=[sv]*[^!(-),/:-?[-]{}]+);?)*(?:[sv]*,[sv]*(?:(?:*|[^!-\"(-),/:-?[-]{}]+)/(?:*|[^!-\"(-),/:-?[-]{}]+)|*)(?:[sv]*;[sv]*(?:charset[sv]*=[sv]*\"?(?:iso-8859-15?|utf-8|windows-1252)b\"?|(?:[^sv -\"(-),/:-?[-]c{}]|c(?:[^!-\"(-),/:-?[-]h{}]|h(?:[^!-\"(-),/:-?[-]a{}]|a(?:[^!-\"(-),/:-?[-]r{}]|r(?:[^!-\"(-),/:-?[-]s{}]|s(?:[^!-\"(-),/:-?[-]e{}]|e[^!-\"(-),/:-?[-]t{}]))))))[^!-\"(-),/:-?[-]{}]*[sv]*=[sv]*[^!(-),/:-?[-]{}]+);?)*)*"
},
{
- "category": "ENFORCEMENT",
- "pattern": "!@rx ^(?:?[01])?$"
+ "category": "GENERIC",
+ "pattern": "@lt 2"
},
{
- "category": "ENFORCEMENT",
- "pattern": "@rx (?:^|[^x5c])x5c[cdeghijklmpqwxyz123456789]"
+ "category": "GENERIC",
+ "pattern": "@lt 2"
},
{
- "category": "ATTACK",
- "pattern": "@lt 1"
+ "category": "GENERIC",
+ "pattern": "@rx (?i)((?:a(?:cap|f[ps]|ttachment)|b(?:eshare|itcoin|lob)|c(?:a(?:llto|p)|id|vs|ompress.(?:zlib|bzip2))|d(?:a(?:v|ta)|ict|n(?:s|tp))|e(?:d2k|xpect)|f(?:(?:ee)?d|i(?:le|nger|sh)|tps?)|g(?:it|o(?:pher)?|lob)|h(?:323|ttps?)|i(?:ax|cap|(?:ma|p)ps?|rc[6s]?)|ja(?:bbe)?r|l(?:dap[is]?|ocal_file)|m(?:a(?:ilto|ven)|ms|umble)|n(?:e(?:tdoc|ws)|fs|ntps?)|ogg|p(?:aparazzi|h(?:ar|p)|op(?:2|3s?)|r(?:es|oxy)|syc)|r(?:mi|sync|tm(?:f?p)?|ar)|s(?:3|ftp|ips?|m(?:[bs]|tps?)|n(?:ews|mp)|sh(?:2(?:.(?:s(?:hell|(?:ft|c)p)|exec|tunnel))?)?|vn(?:+ssh)?)|t(?:e(?:amspeak|lnet)|ftp|urns?)|u(?:dp|nreal|t2004)|v(?:entrilo|iew-source|nc)|w(?:ebcal|ss?)|x(?:mpp|ri)|zip)://(?:[0-9]{10}|(?:0x[0-9a-f]{2}.){3}0x[0-9a-f]{2}|0x(?:[0-9a-f]{8}|[0-9a-f]{16})|(?:0{1,4}[0-9]{1,3}.){3}0{1,4}[0-9]{1,3}|[0-9]{1,3}.(?:[0-9]{1,3}.[0-9]{5}|[0-9]{8})|(?:x5cx5c[-0-9a-z].?_?)+|[[0-:a-f]+(?:[.0-9]+|%[0-9A-Z_a-z]+)?]|[a-z][--.0-9A-Z_a-z]{1,255}:[0-9]{1,5}(?:#?[sv]*&?@(?:(?:[0-9]{1,3}.){3}[0-9]{1,3}|[a-z][--.0-9A-Z_a-z]{1,255}):[0-9]{1,5}/?)+|[.0-9]{0,11}(?:xe2(?:x91[xa0-xbf]|x92[x80-xbf]|x93[x80-xa9xab-xbf])|xe3x80x82)+))"
},
{
- "category": "ATTACK",
- "pattern": "@lt 1"
+ "category": "GENERIC",
+ "pattern": "@rx [s*constructors*]"
},
{
- "category": "ATTACK",
- "pattern": "@rx (?:get|post|head|options|connect|put|delete|trace|track|patch|propfind|propatch|mkcol|copy|move|lock|unlock)s+[^s]+s+http/d"
+ "category": "GENERIC",
+ "pattern": "@rx @{.*}"
},
{
- "category": "ATTACK",
- "pattern": "@rx [rn]W*?(?:content-(?:type|length)|set-cookie|location):s*w"
+ "category": "GENERIC",
+ "pattern": "@lt 3"
},
{
- "category": "ATTACK",
- "pattern": "@rx (?:bhttp/d|<(?:html|meta)b)"
+ "category": "GENERIC",
+ "pattern": "@lt 3"
},
{
- "category": "ATTACK",
- "pattern": "@rx [nr]"
+ "category": "GENERIC",
+ "pattern": "@lt 4"
},
{
- "category": "ATTACK",
- "pattern": "@rx [nr]"
+ "category": "GENERIC",
+ "pattern": "@lt 4"
},
{
- "category": "ATTACK",
- "pattern": "@rx [nr]+(?:s|location|refresh|(?:set-)?cookie|(?:x-)?(?:forwarded-(?:for|host|server)|host|via|remote-ip|remote-addr|originating-IP))s*:"
+ "category": "RFI",
+ "pattern": "@lt 1"
},
{
- "category": "ATTACK",
- "pattern": "@rx [nr]"
+ "category": "RFI",
+ "pattern": "@lt 1"
},
{
- "category": "ATTACK",
- "pattern": "@rx ^[^:()&|!<>~]*)s*(?:((?:[^,()=&|!<>~]+[><~]?=|s*[&!|]s*(?:)|()?s*)|)s*(s*[&|!]s*|[&!|]s*([^()=&|!<>~]+[><~]?=[^:()&|!<>~]*)"
+ "category": "RFI",
+ "pattern": "@rx ^(?i:file|ftps?|https?)://(?:d{1,3}.d{1,3}.d{1,3}.d{1,3})"
},
{
- "category": "ATTACK",
- "pattern": "@rx ^[^sv,;]+[sv,;].*?(?:application/(?:.++)?json|(?:application/(?:soap+)?|text/)xml)"
+ "category": "RFI",
+ "pattern": "@rx (?i)(?:bincludes*([^)]*|mosConfig_absolute_path|_CONF[path]|_SERVER[DOCUMENT_ROOT]|GALLERY_BASEDIR|path[docroot]|appserv_root|config[root_dir])=(?:file|ftps?|https?)://"
},
{
- "category": "ATTACK",
- "pattern": "@rx unix:[^|]*|"
+ "category": "RFI",
+ "pattern": "@rx ^(?i:file|ftps?|https?).*??+$"
},
{
- "category": "ATTACK",
+ "category": "RFI",
"pattern": "@lt 2"
},
{
- "category": "ATTACK",
+ "category": "RFI",
"pattern": "@lt 2"
},
{
- "category": "ATTACK",
- "pattern": "@rx [nr]"
+ "category": "RFI",
+ "pattern": "@rx (?i)(?:(?:url|jar):)?(?:a(?:cap|f[ps]|ttachment)|b(?:eshare|itcoin|lob)|c(?:a(?:llto|p)|id|vs|ompress.(?:zlib|bzip2))|d(?:a(?:v|ta)|ict|n(?:s|tp))|e(?:d2k|xpect)|f(?:(?:ee)?d|i(?:le|nger|sh)|tps?)|g(?:it|o(?:pher)?|lob)|h(?:323|ttps?)|i(?:ax|cap|(?:ma|p)ps?|rc[6s]?)|ja(?:bbe)?r|l(?:dap[is]?|ocal_file)|m(?:a(?:ilto|ven)|ms|umble)|n(?:e(?:tdoc|ws)|fs|ntps?)|ogg|p(?:aparazzi|h(?:ar|p)|op(?:2|3s?)|r(?:es|oxy)|syc)|r(?:mi|sync|tm(?:f?p)?|ar)|s(?:3|ftp|ips?|m(?:[bs]|tps?)|n(?:ews|mp)|sh(?:2(?:.(?:s(?:hell|(?:ft|c)p)|exec|tunnel))?)?|vn(?:+ssh)?)|t(?:e(?:amspeak|lnet)|ftp|urns?)|u(?:dp|nreal|t2004)|v(?:entrilo|iew-source|nc)|w(?:ebcal|ss?)|x(?:mpp|ri)|zip)://(?:[^@]+@)?([^/]*)"
},
{
- "category": "ATTACK",
- "pattern": "@rx ^[^sv,;]+[sv,;].*?b(?:((?:tex|multipar)t|application)|((?:audi|vide)o|image|cs[sv]|(?:vn|relate)d|p(?:df|lain)|json|(?:soa|cs)p|x(?:ml|-www-form-urlencoded)|form-data|x-amf|(?:octe|repor)t|stream)|([+/]))b"
+ "category": "RFI",
+ "pattern": "!@endsWith .%{request_headers.host}"
},
{
- "category": "ATTACK",
- "pattern": "@lt 3"
+ "category": "RFI",
+ "pattern": "@rx (?i)(?:(?:url|jar):)?(?:a(?:cap|f[ps]|ttachment)|b(?:eshare|itcoin|lob)|c(?:a(?:llto|p)|id|vs|ompress.(?:zlib|bzip2))|d(?:a(?:v|ta)|ict|n(?:s|tp))|e(?:d2k|xpect)|f(?:(?:ee)?d|i(?:le|nger|sh)|tps?)|g(?:it|o(?:pher)?|lob)|h(?:323|ttps?)|i(?:ax|cap|(?:ma|p)ps?|rc[6s]?)|ja(?:bbe)?r|l(?:dap[is]?|ocal_file)|m(?:a(?:ilto|ven)|ms|umble)|n(?:e(?:tdoc|ws)|fs|ntps?)|ogg|p(?:aparazzi|h(?:ar|p)|op(?:2|3s?)|r(?:es|oxy)|syc)|r(?:mi|sync|tm(?:f?p)?|ar)|s(?:3|ftp|ips?|m(?:[bs]|tps?)|n(?:ews|mp)|sh(?:2(?:.(?:s(?:hell|(?:ft|c)p)|exec|tunnel))?)?|vn(?:+ssh)?)|t(?:e(?:amspeak|lnet)|ftp|urns?)|u(?:dp|nreal|t2004)|v(?:entrilo|iew-source|nc)|w(?:ebcal|ss?)|x(?:mpp|ri)|zip)://(?:[^@]+@)?([^/]*)"
},
{
- "category": "ATTACK",
+ "category": "RFI",
+ "pattern": "!@endsWith .%{request_headers.host}"
+ },
+ {
+ "category": "RFI",
"pattern": "@lt 3"
},
{
- "category": "ATTACK",
- "pattern": "@gt 0"
+ "category": "RFI",
+ "pattern": "@lt 3"
},
{
- "category": "ATTACK",
- "pattern": "@rx ."
+ "category": "RFI",
+ "pattern": "@lt 4"
},
{
- "category": "ATTACK",
- "pattern": "@gt 1"
+ "category": "RFI",
+ "pattern": "@lt 4"
},
{
- "category": "ATTACK",
- "pattern": "@rx TX:paramcounter_(.*)"
+ "category": "LEAKAGES",
+ "pattern": "@lt 1"
},
{
- "category": "ATTACK",
- "pattern": "@rx (][^]]+$|][^]]+[)"
+ "category": "LEAKAGES",
+ "pattern": "@lt 1"
},
{
- "category": "ATTACK",
- "pattern": "@lt 4"
+ "category": "LEAKAGES",
+ "pattern": "@rx (?:<(?:TITLE>Index of.*?Index of.*?Index of|>[To Parent Directory][Aa]>
)"
},
{
- "category": "ATTACK",
- "pattern": "@lt 4"
+ "category": "LEAKAGES",
+ "pattern": "@rx ^#!s?/"
},
{
- "category": "ATTACK",
- "pattern": "@rx ["
+ "category": "LEAKAGES",
+ "pattern": "@lt 2"
},
{
- "category": "ATTACK",
- "pattern": "!@eq 0"
+ "category": "LEAKAGES",
+ "pattern": "@lt 2"
},
{
- "category": "ATTACK",
- "pattern": "!@within |%{tx.allowed_request_content_type_charset}|"
+ "category": "LEAKAGES",
+ "pattern": "@rx ^5d{2}$"
},
{
- "category": "ATTACK",
- "pattern": "@rx ^content-types*:s*(.*)$"
+ "category": "LEAKAGES",
+ "pattern": "@lt 3"
},
{
- "category": "ATTACK",
- "pattern": "!@rx ^(?:(?:*|[^!-\"(-),/:-?[-]{}]+)/(?:*|[^!-\"(-),/:-?[-]{}]+)|*)(?:[sv]*;[sv]*(?:charset[sv]*=[sv]*\"?(?:iso-8859-15?|utf-8|windows-1252)b\"?|(?:[^sv -\"(-),/:-?[-]c{}]|c(?:[^!-\"(-),/:-?[-]h{}]|h(?:[^!-\"(-),/:-?[-]a{}]|a(?:[^!-\"(-),/:-?[-]r{}]|r(?:[^!-\"(-),/:-?[-]s{}]|s(?:[^!-\"(-),/:-?[-]e{}]|e[^!-\"(-),/:-?[-]t{}]))))))[^!-\"(-),/:-?[-]{}]*[sv]*=[sv]*[^!(-),/:-?[-]{}]+);?)*(?:[sv]*,[sv]*(?:(?:*|[^!-\"(-),/:-?[-]{}]+)/(?:*|[^!-\"(-),/:-?[-]{}]+)|*)(?:[sv]*;[sv]*(?:charset[sv]*=[sv]*\"?(?:iso-8859-15?|utf-8|windows-1252)b\"?|(?:[^sv -\"(-),/:-?[-]c{}]|c(?:[^!-\"(-),/:-?[-]h{}]|h(?:[^!-\"(-),/:-?[-]a{}]|a(?:[^!-\"(-),/:-?[-]r{}]|r(?:[^!-\"(-),/:-?[-]s{}]|s(?:[^!-\"(-),/:-?[-]e{}]|e[^!-\"(-),/:-?[-]t{}]))))))[^!-\"(-),/:-?[-]{}]*[sv]*=[sv]*[^!(-),/:-?[-]{}]+);?)*)*$"
+ "category": "LEAKAGES",
+ "pattern": "@lt 3"
},
{
- "category": "ATTACK",
- "pattern": "@rx content-transfer-encoding:(.*)"
+ "category": "LEAKAGES",
+ "pattern": "@lt 4"
},
{
- "category": "LFI",
+ "category": "LEAKAGES",
+ "pattern": "@lt 4"
+ },
+ {
+ "category": "XSS",
"pattern": "@lt 1"
},
{
- "category": "LFI",
+ "category": "XSS",
"pattern": "@lt 1"
},
{
- "category": "LFI",
- "pattern": "@rx (?i)(?:[/x5c]|%(?:2(?:f|5(?:2f|5c|c(?:1%259c|0%25af))|%46)|5c|c(?:0%(?:[2aq]f|5c|9v)|1%(?:[19p]c|8s|af))|(?:bg%q|(?:e|f(?:8%8)?0%8)0%80%a)f|u(?:221[5-6]|EFC8|F025|002f)|%3(?:2(?:%(?:%6|4)6|F)|5%%63)|1u)|0x(?:2f|5c))(?:.(?:%0[0-1]|?)?|?.?|%(?:2(?:(?:5(?:2|c0%25a))?e|%45)|c0(?:.|%[25-6ae-f]e)|u(?:(?:ff0|002)e|2024)|%32(?:%(?:%6|4)5|E)|(?:e|f(?:(?:8|c%80)%8)?0%8)0%80%ae)|0x2e){2,3}(?:[/x5c]|%(?:2(?:f|5(?:2f|5c|c(?:1%259c|0%25af))|%46)|5c|c(?:0%(?:[2aq]f|5c|9v)|1%(?:[19p]c|8s|af))|(?:bg%q|(?:e|f(?:8%8)?0%8)0%80%a)f|u(?:221[5-6]|EFC8|F025|002f)|%3(?:2(?:%(?:%6|4)6|F)|5%%63)|1u)|0x(?:2f|5c))"
+ "category": "XSS",
+ "pattern": "!@validateByteRange 20, 45-47, 48-57, 65-90, 95, 97-122"
},
{
- "category": "LFI",
- "pattern": "@rx (?:(?:^|[x5c/;]).{2,3}[x5c/;]|[x5c/;].{2,3}(?:[x5c/;]|$))"
+ "category": "XSS",
+ "pattern": "@detectXSS"
},
{
- "category": "LFI",
- "pattern": "@pmFromFile lfi-os-files.data"
+ "category": "XSS",
+ "pattern": "@rx (?i)