@abtnode/router-provider 1.16.38-beta-20250116-083413-dbd33222 → 1.16.38-beta-20250118-033334-2da05ae8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/lib/nginx/includes/security/crs4/rules/REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf.example +200 -0
  2. package/lib/nginx/includes/security/crs4/rules/REQUEST-901-INITIALIZATION.conf +470 -0
  3. package/lib/nginx/includes/security/crs4/rules/REQUEST-905-COMMON-EXCEPTIONS.conf +57 -0
  4. package/lib/nginx/includes/security/crs4/rules/REQUEST-911-METHOD-ENFORCEMENT.conf +76 -0
  5. package/lib/nginx/includes/security/crs4/rules/REQUEST-913-SCANNER-DETECTION.conf +86 -0
  6. package/lib/nginx/includes/security/crs4/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf +1915 -0
  7. package/lib/nginx/includes/security/crs4/rules/REQUEST-921-PROTOCOL-ATTACK.conf +558 -0
  8. package/lib/nginx/includes/security/crs4/rules/REQUEST-922-MULTIPART-ATTACK.conf +120 -0
  9. package/lib/nginx/includes/security/crs4/rules/REQUEST-930-APPLICATION-ATTACK-LFI.conf +203 -0
  10. package/lib/nginx/includes/security/crs4/rules/REQUEST-931-APPLICATION-ATTACK-RFI.conf +189 -0
  11. package/lib/nginx/includes/security/crs4/rules/REQUEST-932-APPLICATION-ATTACK-RCE.conf +1875 -0
  12. package/lib/nginx/includes/security/crs4/rules/REQUEST-933-APPLICATION-ATTACK-PHP.conf +774 -0
  13. package/lib/nginx/includes/security/crs4/rules/REQUEST-934-APPLICATION-ATTACK-GENERIC.conf +366 -0
  14. package/lib/nginx/includes/security/crs4/rules/REQUEST-941-APPLICATION-ATTACK-XSS.conf +1071 -0
  15. package/lib/nginx/includes/security/crs4/rules/REQUEST-942-APPLICATION-ATTACK-SQLI.conf +1978 -0
  16. package/lib/nginx/includes/security/crs4/rules/REQUEST-943-APPLICATION-ATTACK-SESSION-FIXATION.conf +132 -0
  17. package/lib/nginx/includes/security/crs4/rules/REQUEST-944-APPLICATION-ATTACK-JAVA.conf +463 -0
  18. package/lib/nginx/includes/security/crs4/rules/REQUEST-949-BLOCKING-EVALUATION.conf +270 -0
  19. package/lib/nginx/includes/security/crs4/rules/RESPONSE-950-DATA-LEAKAGES.conf +156 -0
  20. package/lib/nginx/includes/security/crs4/rules/RESPONSE-951-DATA-LEAKAGES-SQL.conf +417 -0
  21. package/lib/nginx/includes/security/crs4/rules/RESPONSE-952-DATA-LEAKAGES-JAVA.conf +108 -0
  22. package/lib/nginx/includes/security/crs4/rules/RESPONSE-953-DATA-LEAKAGES-PHP.conf +158 -0
  23. package/lib/nginx/includes/security/crs4/rules/RESPONSE-954-DATA-LEAKAGES-IIS.conf +152 -0
  24. package/lib/nginx/includes/security/crs4/rules/RESPONSE-955-WEB-SHELLS.conf +558 -0
  25. package/lib/nginx/includes/security/crs4/rules/RESPONSE-959-BLOCKING-EVALUATION.conf +280 -0
  26. package/lib/nginx/includes/security/crs4/rules/RESPONSE-980-CORRELATION.conf +138 -0
  27. package/lib/nginx/includes/security/crs4/rules/RESPONSE-999-EXCLUSION-RULES-AFTER-CRS.conf.example +76 -0
  28. package/lib/nginx/includes/security/crs4/rules/iis-errors.data +59 -0
  29. package/lib/nginx/includes/security/crs4/rules/java-classes.data +64 -0
  30. package/lib/nginx/includes/security/crs4/rules/java-code-leakages.data +17 -0
  31. package/lib/nginx/includes/security/crs4/rules/java-errors.data +10 -0
  32. package/lib/nginx/includes/security/crs4/rules/lfi-os-files.data +722 -0
  33. package/lib/nginx/includes/security/crs4/rules/php-config-directives.data +571 -0
  34. package/lib/nginx/includes/security/crs4/rules/php-errors-pl2.data +7 -0
  35. package/lib/nginx/includes/security/crs4/rules/php-errors.data +2147 -0
  36. package/lib/nginx/includes/security/crs4/rules/php-function-names-933150.data +245 -0
  37. package/lib/nginx/includes/security/crs4/rules/php-function-names-933151.data +2201 -0
  38. package/lib/nginx/includes/security/crs4/rules/php-variables.data +30 -0
  39. package/lib/nginx/includes/security/crs4/rules/restricted-files.data +284 -0
  40. package/lib/nginx/includes/security/crs4/rules/restricted-upload.data +177 -0
  41. package/lib/nginx/includes/security/crs4/rules/scanners-user-agents.data +119 -0
  42. package/lib/nginx/includes/security/crs4/rules/sql-errors.data +172 -0
  43. package/lib/nginx/includes/security/crs4/rules/ssrf.data +177 -0
  44. package/lib/nginx/includes/security/crs4/rules/unix-shell.data +670 -0
  45. package/lib/nginx/includes/security/crs4/rules/web-shells-php.data +167 -0
  46. package/lib/nginx/includes/security/crs4/rules/windows-powershell-commands.data +425 -0
  47. package/lib/nginx/includes/security/unicode.mapping +96 -0
  48. package/lib/nginx/index.js +50 -3
  49. package/lib/nginx/templates/security/crs4/crs-setup.conf.js +857 -0
  50. package/lib/nginx/templates/security/modsecurity.conf.js +244 -0
  51. package/package.json +7 -6
@@ -0,0 +1,172 @@
1
+ MySqlClient.
2
+ Server message
3
+ SQL error
4
+ Oracle error
5
+ JET Database Engine
6
+ Procedure or function
7
+ SQLite.Exception
8
+ [IBM][CLI Driver][DB2/6000]
9
+ the used select statements have different number of columns
10
+ org.postgresql.util.PSQLException
11
+ Access Database Engine
12
+ Incorrect syntax near
13
+ Syntax error in string in query expression
14
+ SQLiteException
15
+ ' doesn't exist
16
+ CLI Driver
17
+ on MySQL result index
18
+ sybase
19
+ com.informix.jdbc
20
+ [MySQL][ODBC
21
+ Error
22
+ has occurred in the vicinity of:
23
+ Sintaxis incorrecta cerca de
24
+ MySQL server version for the right syntax to use
25
+ com.mysql.jdbc.exceptions
26
+ You have an error in your SQL syntax near
27
+ You have an error in your SQL syntax;
28
+ An illegal character has been found in the statement
29
+ pg_query() [:
30
+ supplied argument is not a valid MySQL
31
+ mssql_query()
32
+ mysql_fetch_array()
33
+ Exception
34
+ java.sql.SQLException
35
+ Column count doesn't match value count at row
36
+ Sybase message
37
+ SQL Server
38
+ PostgreSQL query failed:
39
+ Dynamic SQL Error
40
+ System.Data.SQLite.SQLiteException
41
+ SQLite/JDBCDriver
42
+ Unclosed quotation mark before the character string
43
+ System.Data.SqlClient.
44
+ Unclosed quotation mark after the character string
45
+ System.Data.OleDb.OleDbException
46
+ [DM_QUERY_E_SYNTAX]
47
+ [SqlException
48
+ Unexpected end of command in statement
49
+ valid PostgreSQL result
50
+ pg_exec() [:
51
+ [SQL Server]
52
+ [SQLITE_ERROR]
53
+ Microsoft OLE DB Provider for ODBC Drivers
54
+ PostgreSQL
55
+ org.hsqldb.jdbc
56
+ ADODB.Field (0x800A0BCD)
57
+ SQL syntax
58
+ Exception
59
+ System.Data.SqlClient.SqlException
60
+ Data type mismatch in criteria expression.
61
+ Driver
62
+ DB2 SQL error
63
+ Sybase message:
64
+ ORA-
65
+ [Microsoft][ODBC SQL Server Driver]
66
+ '80040e14'
67
+ Microsoft OLE DB Provider for SQL Server
68
+ in query expression
69
+ Npgsql.
70
+ valid MySQL result
71
+ supplied argument is not a valid PostgreSQL result
72
+ db2_
73
+ Ingres SQLSTATE
74
+ Column count doesn't match
75
+ Warning
76
+ [Microsoft][ODBC Microsoft Access Driver]
77
+ [Macromedia][SQLServer JDBC Driver]
78
+ <b>Warning</b>: ibase_
79
+ Roadhouse.Cms.
80
+ DB2 SQL error:
81
+ SQLSTATE[
82
+ MySQLSyntaxErrorException
83
+ check the manual that corresponds to your MySQL server version
84
+ check the manual that fits your MySQL server version
85
+ check the manual that corresponds to your MariaDB server version
86
+ check the manual that fits your MariaDB server version
87
+ check the manual that corresponds to your Drizzle server version
88
+ check the manual that fits your Drizzle server version
89
+ Zend_Db_Adapter_Mysqli_Exception
90
+ Zend_Db_Statement_Mysqli_Exception
91
+ MySqlException
92
+ Syntax error or access violation
93
+ MemSQL does not support this type of query
94
+ is not supported by MemSQL
95
+ unsupported nested scalar subselect
96
+ PG::SyntaxError:
97
+ syntax error at or near
98
+ ERROR: parser: parse error at or near
99
+ org.postgresql.jdbc
100
+ PSQLException
101
+ System.Data.SqlClient.SqlConnection.OnError
102
+ Microsoft SQL Native Client error
103
+ com.jnetdirect.jsql
104
+ macromedia.jdbc.sqlserver
105
+ Zend_Db_Adapter_Sqlsrv_Exception
106
+ Zend_Db_Statement_Sqlsrv_Exception
107
+ com.microsoft.sqlserver.jdbc
108
+ SQLSrvException
109
+ SQLServerException
110
+ quoted string not properly terminated
111
+ SQL command not properly ended
112
+ macromedia.jdbc.oracle
113
+ oracle.jdbc
114
+ Zend_Db_Adapter_Oracle_Exception
115
+ Zend_Db_Statement_Oracle_Exception
116
+ OracleException
117
+ com.ibm.db2.jcc
118
+ Zend_Db_Adapter_Db2_Exception
119
+ Zend_Db_Statement_Db2_Exception
120
+ ibm_db_dbi.ProgrammingError
121
+ Informix ODBC Driver
122
+ ODBC Informix driver
123
+ weblogic.jdbc.informix
124
+ IfxException
125
+ org.firebirdsql.jdbc
126
+ Microsoft.Data.SQLite.SQLiteException
127
+ SQLite error
128
+ sqlite3.OperationalError:
129
+ SQLite3::SQLException
130
+ org.sqlite.JDBC
131
+ DriverSapDB
132
+ com.sap.dbtech.jdbc
133
+ Invalid keyword or missing delimiter
134
+ SybSQLException
135
+ Sybase.Data.AseClient
136
+ com.sybase.jdbc
137
+ com.ingres.gcf.jdbc
138
+ com.frontbase.jdbc
139
+ Syntax error 1. Missing
140
+ Semantic error
141
+ org.h2.jdbc
142
+ [42000-192]
143
+ [MonetDB][ODBC Driver
144
+ nl.cwi.monetdb.jdbc
145
+ Syntax error: Encountered
146
+ org.apache.derby
147
+ ERROR 42X01
148
+ com.vertica.jdbc
149
+ org.jkiss.dbeaver.ext.vertica
150
+ com.vertica.dsi.dataengine
151
+ com.mckoi.JDBCDriver
152
+ com.mckoi.database.jdbc
153
+ com.facebook.presto.jdbc
154
+ io.prestosql.jdbc
155
+ com.simba.presto.jdbc
156
+ UNION query has different number of fields:
157
+ Altibase.jdbc.driver
158
+ com.mimer.jdbc
159
+ Syntax error: failed at position
160
+ io.crate.client.jdbc
161
+ encountered after end of query
162
+ A comparison operator is required here
163
+ -10048: Syntax error
164
+ SQ074: Line
165
+ SR185: Undefined procedure
166
+ SQ200: No table
167
+ Virtuoso S0002 Error
168
+ [Virtuoso Driver][Virtuoso Server]
169
+ [Virtuoso iODBC Driver][Virtuoso Server]
170
+ Conversion failed when converting the varchar value
171
+ invalid input syntax for integer:
172
+ XPATH syntax error:
@@ -0,0 +1,177 @@
1
+ # Sources:
2
+ # - https://gist.githubusercontent.com/jhaddix/78cece26c91c6263653f31ba453e273b/raw/a4869d58a5ce337d1465c2d1b29777b9eecd371f/cloud_metadata.txt
3
+ # - https://book.hacktricks.xyz/pentesting-web/ssrf-server-side-request-forgery/cloud-ssrf
4
+ # - https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Server%20Side%20Request%20Forgery
5
+ # - https://github.com/assetnote/blind-ssrf-chains
6
+
7
+ ## AWS
8
+ # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
9
+ #
10
+ # To fully protect, use IMDSv2 (see https://aws.amazon.com/blogs/security/defense-in-depth-open-firewalls-reverse-proxies-ssrf-vulnerabilities-ec2-instance-metadata-service/)
11
+
12
+ http://instance-data/latest/
13
+ http://169.254.169.254/latest/
14
+
15
+ # Common evasion techniques:
16
+ http://2852039166/latest/
17
+ http://025177524776/latest/
18
+ http://0251.0376.0251.0376/latest/
19
+ http://0xA9.0xFE.0xA9.0xFE/latest/
20
+ http://0xA9FEA9FE/latest/
21
+ http://0251.254.169.254/latest/
22
+ http://[::ffff:a9fe:a9fe]/latest/
23
+ http://[0:0:0:0:0:ffff:a9fe:a9fe]/latest/
24
+ http://[0:0:0:0:0:ffff:169.254.169.254]/latest/
25
+ http://169.254.169.254.nip.io/latest/
26
+ http://nicob.net/redir-http-169.254.169.254:80-
27
+
28
+ # http://127.0.0.1
29
+ http://2130706433/
30
+ # http://192.168.0.1
31
+ http://3232235521/
32
+ # http://192.168.1.1
33
+ http://3232235777/
34
+ # http://169.254.169.254
35
+ http://2852039166/
36
+ # IPv6 base
37
+ http://[::]:
38
+
39
+ # localhost bypass
40
+ http://localtest.me
41
+ http://127.0.0.1.nip.io
42
+ http://127.127.127.127
43
+ http://127.0.1.3
44
+ http://127.0.0.0
45
+ http://127.0.0.1
46
+ http://0.0.0.0
47
+ http://localhost
48
+ http://0177.0.0.1/
49
+ http://[::1]
50
+ http://[0000::1]
51
+ http://[::ffff:127.0.0.1]
52
+ http://[0:0:0:0:0:ffff:127.0.0.1]
53
+ http://0/
54
+ http://127.1
55
+ http://127.0.1
56
+
57
+ # AWS ECS
58
+ http://169.254.170.2/v2
59
+
60
+ ## Google Cloud
61
+ # https://cloud.google.com/compute/docs/metadata/overview
62
+ # - Requires the header "Metadata-Flavor: Google" or "X-Google-Metadata-Request: True"
63
+
64
+ http://169.254.169.254/computeMetadata/v1/
65
+ http://metadata.google.internal/computeMetadata/v1/
66
+ http://metadata/computeMetadata/v1/
67
+ # Common evasion techniques:
68
+ http://2852039166/computeMetadata/v1/
69
+ http://025177524776/computeMetadata/v1/
70
+ http://0251.0376.0251.0376/computeMetadata/v1/
71
+ http://[::ffff:a9fe:a9fe]/computeMetadata/v1/
72
+ http://[0:0:0:0:0:ffff:a9fe:a9fe]/computeMetadata/v1/
73
+ http://[0:0:0:0:0:ffff:169.254.169.254]/computeMetadata/v1/
74
+ http://169.254.169.254.nip.io/computeMetadata/v1/
75
+ http://0xA9.0xFE.0xA9.0xFE/computeMetadata/v1/
76
+ http://0xA9FEA9FE/computeMetadata/v1/
77
+ http://0251.254.169.254/computeMetadata/v1/
78
+
79
+ # Google gopher SSRF
80
+ gopher://metadata.google.internal
81
+
82
+ # Google allows recursive pulls
83
+ http://metadata.google.internal/computeMetadata/v1/instance/disks/?recursive=true
84
+
85
+ ## Google
86
+ # Beta does NOT require a header atm
87
+ http://metadata.google.internal/computeMetadata/v1beta1/
88
+
89
+ ## Digital Ocean
90
+ # https://developers.digitalocean.com/documentation/metadata/
91
+
92
+ http://169.254.169.254/metadata/v1.json
93
+ # This other prefix will be used from Azure: http://169.254.169.254/metadata/v1/
94
+
95
+ ## Packetcloud
96
+
97
+ https://metadata.packet.net/userdata
98
+
99
+ ## Azure
100
+ #
101
+ # To be effective, these also have to:
102
+ #
103
+ # - contain the header Metadata: true
104
+ # - not contain an X-Forwarded-For header
105
+
106
+ http://169.254.169.254/metadata/v1/
107
+ http://169.254.169.254/metadata/instance?api-version=2017-04-02
108
+ http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-04-02&format=text
109
+ # Common evasion techniques:
110
+ http://2852039166/metadata/v1/
111
+ http://025177524776/metadata/v1/
112
+ http://0251.0376.0251.0376/metadata/v1/
113
+ http://[::ffff:a9fe:a9fe]/metadata/v1/
114
+ http://[0:0:0:0:0:ffff:a9fe:a9fe]/metadata/v1/
115
+ http://[0:0:0:0:0:ffff:169.254.169.254]/metadata/v1/
116
+ http://169.254.169.254.nip.io/metadata/v1/
117
+ http://0xA9.0xFE.0xA9.0xFE/metadata/v1/
118
+ http://0xA9FEA9FE/metadata/v1/
119
+ http://0251.254.169.254/metadata/v1/
120
+
121
+ ## OpenStack/RackSpace
122
+ http://169.254.169.254/openstack
123
+
124
+ ## HP Helion
125
+ # (header required? unknown)
126
+ http://169.254.169.254/2009-04-04/meta-data/
127
+
128
+ ## Oracle Cloud
129
+ http://192.0.0.192/latest/
130
+
131
+ ## Alibaba
132
+ http://100.100.100.200/latest/meta-data/
133
+
134
+ # Rancher metadata
135
+ http://rancher-metadata/
136
+
137
+ # Local Docker
138
+ http://127.0.0.1:2375
139
+ http://2130706433:2375/
140
+ http://[::]:2375/
141
+ http://[0000::1]:2375/
142
+ http://[0:0:0:0:0:ffff:127.0.0.1]:2375/
143
+ http://2130706433:2375/
144
+ http://017700000001:2375/
145
+ http://0x7f000001:2375/
146
+ http://0xc0a80014:2375/
147
+ # Kubernetes etcd
148
+ http://127.0.0.1:2379
149
+
150
+ # Enclosed alphanumerics
151
+ http://169。254。169。254
152
+ http://169。254。169。254
153
+ http://⑯⑨。②⑤④。⑯⑨。②⑤④
154
+ http://⓪ⓧⓐ⑨。⓪ⓧⓕⓔ。⓪ⓧⓐ⑨。⓪ⓧⓕⓔ
155
+ http://⓪ⓧⓐ⑨ⓕⓔⓐ⑨ⓕⓔ
156
+ http://②⑧⑤②⓪③⑨①⑥⑥
157
+ http://④②⑤。⑤①⓪。④②⑤。⑤①⓪
158
+ http://⓪②⑤①。⓪③⑦⑥。⓪②⑤①。⓪③⑦⑥
159
+ http://⓪⓪②⑤①。⓪⓪⓪③⑦⑥。⓪⓪⓪⓪②⑤①。⓪⓪⓪⓪⓪③⑦⑥
160
+ http://[::①⑥⑨。②⑤④。⑯⑨。②⑤④]
161
+ http://[::ⓕⓕⓕⓕ:①⑥⑨。②⑤④。⑯⑨。②⑤④]
162
+ http://⓪ⓧⓐ⑨。⓪③⑦⑥。④③⑤①⑧
163
+ http://⓪ⓧⓐ⑨。⑯⑥⑧⑨⑥⑥②
164
+ http://⓪⓪②⑤①。⑯⑥⑧⑨⑥⑥②
165
+ http://⓪⓪②⑤①。⓪ⓧⓕⓔ。④③⑤①⑧
166
+
167
+ # Java only blind ssrf
168
+ jar:http://127.0.0.1!/
169
+ jar:https://127.0.0.1!/
170
+ jar:ftp://127.0.0.1!/
171
+
172
+ # Other PL1 protocols
173
+ gopher://127.0.0.1
174
+ gopher://localhost
175
+
176
+ # AWS Lambda
177
+ http://localhost:9001/2018-06-01/runtime/