@abtnode/router-provider 1.16.38-beta-20250115-235439-bb5a1c1b → 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,30 @@
1
+ # The data in this list comes from
2
+ # https://www.php.net/manual/en/reserved.variables.php
3
+ # https://www.php.net/manual/en/language.variables.superglobals.php
4
+ # https://www.php.net/manual/en/language.constants.predefined.php
5
+
6
+ # These superglobal variables are:
7
+ $GLOBALS
8
+ $_COOKIE
9
+ $_ENV
10
+ $_FILES
11
+ $_GET
12
+ $_POST
13
+ $_REQUEST
14
+ $_SERVER
15
+ $_SESSION
16
+ $argc
17
+ $argv
18
+ $http_​response_​header
19
+ # Deprecated
20
+ $php_​errormsg
21
+
22
+ # This is really old, completely deprecated vars (PHP >= 4 < 5.3)
23
+ $HTTP_COOKIE_VARS
24
+ $HTTP_ENV_VARS
25
+ $HTTP_GET_VARS
26
+ $HTTP_POST_FILES
27
+ $HTTP_POST_VARS
28
+ $HTTP_RAW_POST_DATA
29
+ $HTTP_REQUEST_VARS
30
+ $HTTP_SERVER_VARS
@@ -0,0 +1,284 @@
1
+ # Apache
2
+ # (no slash; also guards against old.htaccess, old.htpasswd, etc.)
3
+ .htaccess
4
+ .htdigest
5
+ .htpasswd
6
+ # home level dotfiles (keep in sync with lfi-os-files.data)
7
+ # grep -E '^\.' lfi-os-files.data
8
+ .addressbook
9
+ .aptitude/config
10
+ .aws/
11
+ .azure/
12
+ .bash_
13
+ .bashrc
14
+ .cache/notify-osd.log
15
+ .config/
16
+ .cshrc
17
+ .docker
18
+ .drush/
19
+ .env
20
+ .eslintignore
21
+ .fbcindex
22
+ .forward
23
+ .gitattributes
24
+ .gitconfig
25
+ .gnupg/
26
+ .google_authenticator
27
+ .hplip/hplip.conf
28
+ .htaccess
29
+ .htdigest
30
+ .htpasswd
31
+ .ksh_history
32
+ .lesshst
33
+ .lftp/
34
+ .lhistory
35
+ .lighttpdpassword
36
+ .lldb-history
37
+ .local/share/mc/
38
+ .lynx_cookies
39
+ .my.cnf
40
+ .mysql_history
41
+ .nano_history
42
+ .node_repl_history
43
+ .npmrc
44
+ .nsconfig
45
+ .nsr
46
+ .oh-my-
47
+ .password-store
48
+ .pearrc
49
+ .pgpass
50
+ .php_history
51
+ .pinerc
52
+ .pki/
53
+ .proclog
54
+ .procmailrc
55
+ .profile
56
+ .psql_history
57
+ .python_history
58
+ .rediscli_history
59
+ .rhistory
60
+ .rhosts
61
+ .selected_editor
62
+ .sh_history
63
+ .sqlite_history
64
+ .snap/
65
+ .ssh/
66
+ .subversion/
67
+ .tconn/
68
+ .tcshrc
69
+ .tmux.conf
70
+ .tor/
71
+ .vagrant.d/
72
+ .vidalia/
73
+ .vim/
74
+ .viminfo
75
+ .vimrc
76
+ .vscode
77
+ .www_acl
78
+ .wwwacl
79
+ .Xauthority
80
+ .yarnrc
81
+ .zhistory
82
+ .zsh_history
83
+ .zshenv
84
+ .zshrc
85
+ # Version control
86
+ /.git/
87
+ /.gitignore
88
+ /.hg/
89
+ /.hgignore
90
+ /.svn/
91
+ # October CMS credentials file
92
+ /auth.json
93
+ # Wordpress
94
+ wp-config.php
95
+ wp-config.bak
96
+ wp-config.old
97
+ wp-config.temp
98
+ wp-config.tmp
99
+ wp-config.txt
100
+ # Symfony
101
+ /config/config.yml
102
+ /config/config_dev.yml
103
+ /config/config_prod.yml
104
+ /config/config_test.yml
105
+ /config/parameters.yml
106
+ /config/routing.yml
107
+ /config/security.yml
108
+ /config/services.yml
109
+ # Drupal
110
+ /sites/default/default.settings.php
111
+ /sites/default/settings.php
112
+ /sites/default/settings.local.php
113
+ # NextCloud
114
+ /config/config.php
115
+ # PrestaShop configuration files
116
+ /config/settings.inc.php
117
+ /app/config/parameters.php
118
+ # Magento
119
+ /app/etc/local.xml
120
+ # Sublime Text
121
+ /sftp-config.json
122
+ # ASP.NET
123
+ /Web.config
124
+ # Node
125
+ /package.json
126
+ /package-lock.json
127
+ /npm-shrinkwrap.json
128
+ /gruntfile.js
129
+ /npm-debug.log
130
+ /ormconfig.json
131
+ /tsconfig.json
132
+ /webpack.config.js
133
+ /yarn.lock
134
+ # Composer
135
+ /composer.json
136
+ /composer.lock
137
+ /packages.json
138
+ # OSX
139
+ /.DS_Store
140
+ # WS FTP
141
+ /.ws_ftp.ini
142
+ # New Per-Project Files
143
+ .idea
144
+ nbproject/
145
+ bower.json
146
+ .bowerrc
147
+ .eslintrc
148
+ .jshintrc
149
+ .gitlab-ci.yml
150
+ .travis.yml
151
+ database.yml
152
+ Dockerfile
153
+ # PHP_CodeSniffer configuration files
154
+ .php_cs.dist
155
+ .phpcs.xml
156
+ phpcs.xml
157
+ .phpcs.xml.dist
158
+ phpcs.xml.dist
159
+ # Windows desktop configuration file
160
+ Desktop.ini
161
+ # Windows Explorer cache of thumbnail images
162
+ Thumbs.db
163
+ # PHP configuration files
164
+ .user.ini
165
+ php.ini
166
+ # Oracle WebLogic Server configuration file
167
+ weblogic.xml
168
+ # Oracle SOAP Request Handler configuration file
169
+ soapConfig.xml
170
+ # Common names for local PHP error logs
171
+ php_error.log
172
+ php_errors.log
173
+ # Java directory for non-public application data
174
+ WEB-INF/
175
+ # Fortinet SSL VPN session file
176
+ sslvpn_websession
177
+ # BlockCypher log file used in code examples
178
+ BlockCypher.log
179
+ # Roundcube Webmail
180
+ config.inc.php
181
+ config.sample.php
182
+ defaults.inc.php
183
+ # Contains credentials for SendGrid service
184
+ sendgrid.env
185
+ # Fish shell files
186
+ .fish
187
+ fish_variables
188
+
189
+ # /proc entries (keep in sync with lfi-os-files.data)
190
+ # grep -E "^proc/" lfi-os-files.data
191
+ proc/0
192
+ proc/1
193
+ proc/2
194
+ proc/3
195
+ proc/4
196
+ proc/5
197
+ proc/6
198
+ proc/7
199
+ proc/8
200
+ proc/9
201
+ proc/acpi
202
+ proc/asound
203
+ proc/bootconfig
204
+ proc/buddyinfo
205
+ proc/bus
206
+ proc/cgroups
207
+ proc/cmdline
208
+ proc/config.gz
209
+ proc/consoles
210
+ proc/cpuinfo
211
+ proc/crypto
212
+ proc/devices
213
+ proc/diskstats
214
+ proc/dma
215
+ proc/docker
216
+ proc/driver
217
+ proc/dynamic_debug
218
+ proc/execdomains
219
+ proc/fb
220
+ proc/filesystems
221
+ proc/fs
222
+ proc/interrupts
223
+ proc/iomem
224
+ proc/ioports
225
+ proc/ipmi
226
+ proc/irq
227
+ proc/kallsyms
228
+ proc/kcore
229
+ proc/key-users
230
+ proc/keys
231
+ proc/kmsg
232
+ proc/kpagecgroup
233
+ proc/kpagecount
234
+ proc/kpageflags
235
+ proc/latency_stats
236
+ proc/loadavg
237
+ proc/locks
238
+ proc/mdstat
239
+ proc/meminfo
240
+ proc/misc
241
+ proc/modules
242
+ proc/mounts
243
+ proc/mpt
244
+ proc/mtd
245
+ proc/mtrr
246
+ proc/net
247
+ proc/pagetypeinfo
248
+ proc/partitions
249
+ proc/pressure
250
+ proc/sched_debug
251
+ proc/schedstat
252
+ proc/scsi
253
+ proc/self
254
+ proc/slabinfo
255
+ proc/softirqs
256
+ proc/stat
257
+ proc/swaps
258
+ proc/sys
259
+ proc/sysrq-trigger
260
+ proc/sysvipc
261
+ proc/thread-self
262
+ proc/timer_list
263
+ proc/timer_stats
264
+ proc/tty
265
+ proc/uptime
266
+ proc/version
267
+ proc/version_signature
268
+ proc/vmallocinfo
269
+ proc/vmstat
270
+ proc/zoneinfo
271
+
272
+ # /sys entries (keep in sync with lfi-os-files.data)
273
+ # grep -E "^sys/" lfi-os-files.data
274
+ sys/block
275
+ sys/bus
276
+ sys/class
277
+ sys/dev
278
+ sys/devices
279
+ sys/firmware
280
+ sys/fs
281
+ sys/hypervisor
282
+ sys/kernel
283
+ sys/module
284
+ sys/power
@@ -0,0 +1,177 @@
1
+ # This list can be generated from restricted-files.data by running the following shell command:
2
+ # body_start=$(grep -n -E -m 1 '^[^#$]' rules/restricted-upload.data | cut -d: -f1)
3
+ # ed -s rules/restricted-upload.data <<EOF
4
+ # $((body_start - 1)),\$d
5
+ # w
6
+ # q
7
+ # EOF
8
+ # words="$(awk ' !/^#/ {split($0, segments, "/")} {word = segments[length(segments)]} length(word) > 3 {print word}' rules/restricted-files.data | \
9
+ # sort | uniq)"
10
+ # while read -r word; do
11
+ # if [ "$(util/fp-finder/spell.sh -m -e - <<<"${word}")" != "${word}" ]; then
12
+ # echo "${word}" >> rules/restricted-upload.data
13
+ # fi
14
+ # done <<<"${words}"
15
+
16
+ .DS_Store
17
+ .addressbook
18
+ .bash_
19
+ .bashrc
20
+ .bowerrc
21
+ .cshrc
22
+ .docker
23
+ .env
24
+ .eslintignore
25
+ .eslintrc
26
+ .fbcindex
27
+ .forward
28
+ .gitattributes
29
+ .gitconfig
30
+ .gitignore
31
+ .gitlab-ci.yml
32
+ .google_authenticator
33
+ .hgignore
34
+ .htaccess
35
+ .htdigest
36
+ .htpasswd
37
+ .idea
38
+ .jshintrc
39
+ .ksh_history
40
+ .lesshst
41
+ .lhistory
42
+ .lighttpdpassword
43
+ .lldb-history
44
+ .lynx_cookies
45
+ .my.cnf
46
+ .mysql_history
47
+ .nano_history
48
+ .node_repl_history
49
+ .nsconfig
50
+ .nsr
51
+ .oh-my-
52
+ .password-store
53
+ .pearrc
54
+ .pgpass
55
+ .php_cs.dist
56
+ .php_history
57
+ .phpcs.xml
58
+ .phpcs.xml.dist
59
+ .pinerc
60
+ .proclog
61
+ .procmailrc
62
+ .profile
63
+ .psql_history
64
+ .python_history
65
+ .rediscli_history
66
+ .rhistory
67
+ .rhosts
68
+ .sh_history
69
+ .sqlite_history
70
+ .tcshrc
71
+ .travis.yml
72
+ .user.ini
73
+ .viminfo
74
+ .vimrc
75
+ .ws_ftp.ini
76
+ .www_acl
77
+ .wwwacl
78
+ .xauthority
79
+ .zhistory
80
+ .zsh_history
81
+ .zshrc
82
+ Desktop.ini
83
+ Dockerfile
84
+ Thumbs.db
85
+ Web.config
86
+ acpi
87
+ asound
88
+ auth.json
89
+ bootconfig
90
+ bower.json
91
+ buddyinfo
92
+ cgroups
93
+ cmdline
94
+ composer.json
95
+ composer.lock
96
+ config.gz
97
+ config.inc.php
98
+ config.php
99
+ config.sample.php
100
+ config.yml
101
+ config_dev.yml
102
+ config_prod.yml
103
+ config_test.yml
104
+ cpuinfo
105
+ database.yml
106
+ defaults.inc.php
107
+ default.settings.php
108
+ diskstats
109
+ dynamic_debug
110
+ execdomains
111
+ filesystems
112
+ gruntfile.js
113
+ hplip.conf
114
+ hypervisor
115
+ iomem
116
+ ioports
117
+ ipmi
118
+ kallsyms
119
+ kcore
120
+ key-users
121
+ kmsg
122
+ kpagecgroup
123
+ kpagecount
124
+ kpageflags
125
+ latency_stats
126
+ loadavg
127
+ local.xml
128
+ mdstat
129
+ meminfo
130
+ mtrr
131
+ notify-osd.log
132
+ npm-debug.log
133
+ npm-shrinkwrap.json
134
+ ormconfig.json
135
+ package-lock.json
136
+ package.json
137
+ packages.json
138
+ pagetypeinfo
139
+ parameters.php
140
+ parameters.yml
141
+ php.ini
142
+ php_error.log
143
+ php_errors.log
144
+ phpcs.xml
145
+ phpcs.xml.dist
146
+ routing.yml
147
+ sched_debug
148
+ schedstat
149
+ security.yml
150
+ services.yml
151
+ settings.inc.php
152
+ settings.local.php
153
+ settings.php
154
+ sftp-config.json
155
+ slabinfo
156
+ soapConfig.xml
157
+ softirqs
158
+ sslvpn_websession
159
+ sysrq-trigger
160
+ sysvipc
161
+ thread-self
162
+ timer_list
163
+ timer_stats
164
+ tsconfig.json
165
+ version_signature
166
+ vmallocinfo
167
+ vmstat
168
+ weblogic.xml
169
+ webpack.config.js
170
+ wp-config.bak
171
+ wp-config.old
172
+ wp-config.php
173
+ wp-config.temp
174
+ wp-config.tmp
175
+ wp-config.txt
176
+ yarn.lock
177
+ zoneinfo
@@ -0,0 +1,119 @@
1
+ # This file lists what we think the most widely used
2
+ # security scanners identifyable via their user agents.
3
+ #
4
+ # The list is curated by hand. Attempts to machine-generate
5
+ # a larger list leads to a lot of false positives and edge
6
+ # cases where certain scanners / bots are welcome in certain
7
+ # situations. We consider this a baseline of unwanted scanners.
8
+
9
+
10
+ # http://www.arachni-scanner.com/
11
+ arachni
12
+
13
+ betabot
14
+
15
+ bewica-security-scan
16
+
17
+ # Backup File Artifacts Checker
18
+ # https://github.com/mazen160/bfac
19
+ BFAC
20
+
21
+ # Commix
22
+ # https://github.com/commixproject/commix
23
+ commix
24
+
25
+ # Detectify website vulnerability scanner
26
+ # https://detectify.com/
27
+ Detectify
28
+
29
+ # hidden page scanner
30
+ # (deprecated) https://www.owasp.org/index.php/Category:OWASP_DirBuster_Project
31
+ dirbuster
32
+
33
+ fimap
34
+
35
+ # vuln scanner
36
+ # https://github.com/ffuf/ffuf
37
+ fuzz faster
38
+
39
+ # Scanner that looks for existing or hidden web objects
40
+ # https://github.com/OJ/gobuster
41
+ gobuster
42
+
43
+ # sql injection
44
+ havij
45
+
46
+ hexometer
47
+
48
+ jbrofuzz
49
+
50
+ jorgee
51
+
52
+ libwhisker
53
+
54
+ # port scanner
55
+ # https://github.com/robertdavidgraham/masscan
56
+ masscan
57
+
58
+ morfeus
59
+
60
+ # The Mysterious Mozlila User Agent bot
61
+ # https://trunc.org/learning/the-mozlila-user-agent-bot
62
+ Mozlila
63
+
64
+ # Nessus
65
+ # http://www.tenable.com/products/nessus-vulnerability-scanner
66
+ nessus
67
+
68
+ netlab360
69
+
70
+ netsparker
71
+
72
+ # vuln scanner
73
+ # https://cirt.net/Nikto2
74
+ nikto
75
+
76
+ nmap
77
+
78
+ # https://github.com/projectdiscovery/nuclei
79
+ nuclei
80
+
81
+ # http://www.openvas.org/
82
+ openvas
83
+
84
+ sitelockspider
85
+
86
+ # SQL Injections
87
+ # http://sqlmap.org/
88
+ sqlmap
89
+
90
+ # https://www.cyber.nj.gov/threat-profiles/trojan-variants/sysscan
91
+ sysscan
92
+
93
+ # https://github.com/google/tsunami-security-scanner
94
+ TsunamiSecurityScanner
95
+
96
+ w3af.org
97
+
98
+ # http://www.robotstxt.org/db/webbandit.html
99
+ webbandit
100
+
101
+ # (deprecated) http://www.scrt.ch/en/attack/downloads/webshag
102
+ webshag
103
+
104
+ # https://github.com/xmendez/wfuzz
105
+ wfuzz
106
+
107
+ whatweb
108
+
109
+ wprecon
110
+
111
+ # wordpress vuln scanner
112
+ # https://wpscan.org/
113
+ wpscan
114
+
115
+ # ZGrab scanner (Mozilla/5.0 zgrab/0.x)
116
+ # https://zmap.io
117
+ zgrab
118
+
119
+ zmeu