@waftester/cli 2.8.0

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 (141) hide show
  1. package/LICENSE +80 -0
  2. package/LICENSE-COMMUNITY +28 -0
  3. package/README.md +121 -0
  4. package/bin/cli.js +152 -0
  5. package/package.json +52 -0
  6. package/payloads/community/README.md +45 -0
  7. package/payloads/community/ai/ml-poisoning.json +173 -0
  8. package/payloads/community/ai/prompt-injection.json +247 -0
  9. package/payloads/community/ai/workflow-abuse.json +222 -0
  10. package/payloads/community/auth/jwt.json +855 -0
  11. package/payloads/community/auth/login-bypass.json +623 -0
  12. package/payloads/community/auth/mfa.json +402 -0
  13. package/payloads/community/auth/oauth.json +421 -0
  14. package/payloads/community/auth/open-redirect.json +1028 -0
  15. package/payloads/community/auth/session.json +404 -0
  16. package/payloads/community/cache/deception.json +402 -0
  17. package/payloads/community/cache/poisoning.json +403 -0
  18. package/payloads/community/deserialization/gadget.json +375 -0
  19. package/payloads/community/deserialization/prototype.json +370 -0
  20. package/payloads/community/fuzz/content-type.json +397 -0
  21. package/payloads/community/fuzz/headers.json +401 -0
  22. package/payloads/community/fuzz/methods.json +397 -0
  23. package/payloads/community/fuzz/obfuscation.json +362 -0
  24. package/payloads/community/fuzz/special-chars.json +740 -0
  25. package/payloads/community/fuzz/waf-bypass.json +452 -0
  26. package/payloads/community/graphql/batching-abuse.json +271 -0
  27. package/payloads/community/graphql/depth-limit.json +271 -0
  28. package/payloads/community/graphql/introspection.json +267 -0
  29. package/payloads/community/injection/crlf.json +569 -0
  30. package/payloads/community/injection/ldap.json +357 -0
  31. package/payloads/community/injection/nosqli.json +529 -0
  32. package/payloads/community/injection/oscmd.json +662 -0
  33. package/payloads/community/injection/rce-polyglots.json +452 -0
  34. package/payloads/community/injection/sqli.json +681 -0
  35. package/payloads/community/injection/ssti.json +584 -0
  36. package/payloads/community/injection/upload-attacks.json +632 -0
  37. package/payloads/community/injection/xpath.json +357 -0
  38. package/payloads/community/injection/xxe.json +716 -0
  39. package/payloads/community/logic/forced-browsing.json +405 -0
  40. package/payloads/community/logic/idor.json +1026 -0
  41. package/payloads/community/logic/privilege.json +337 -0
  42. package/payloads/community/media/exif-injection.json +225 -0
  43. package/payloads/community/media/metadata-poison.json +239 -0
  44. package/payloads/community/protocol/http-smuggling.json +798 -0
  45. package/payloads/community/protocol/http2-attacks.json +382 -0
  46. package/payloads/community/protocol/websocket-abuse.json +375 -0
  47. package/payloads/community/rate-limit/burst-simulation.json +286 -0
  48. package/payloads/community/rate-limit/bypass-attempts.json +326 -0
  49. package/payloads/community/rate-limit/zone-tests.json +332 -0
  50. package/payloads/community/services/authentik.json +415 -0
  51. package/payloads/community/services/immich.json +423 -0
  52. package/payloads/community/services/n8n.json +366 -0
  53. package/payloads/community/sqli-basic.json +182 -0
  54. package/payloads/community/ssrf/cloud-metadata.json +999 -0
  55. package/payloads/community/ssrf/dns-rebinding.json +503 -0
  56. package/payloads/community/ssrf/internal-networks.json +627 -0
  57. package/payloads/community/ssrf/protocol-smuggling.json +350 -0
  58. package/payloads/community/ssti/multi-language-templates.json +191 -0
  59. package/payloads/community/ssti/python-templates.json +200 -0
  60. package/payloads/community/traversal/basic.json +675 -0
  61. package/payloads/community/traversal/cloud-credentials.json +107 -0
  62. package/payloads/community/traversal/config-files.json +193 -0
  63. package/payloads/community/traversal/encoding.json +558 -0
  64. package/payloads/community/traversal/null-byte.json +105 -0
  65. package/payloads/community/traversal/symlink.json +93 -0
  66. package/payloads/community/traversal/unicode.json +134 -0
  67. package/payloads/community/traversal/unix-advanced.json +195 -0
  68. package/payloads/community/traversal/windows-advanced.json +195 -0
  69. package/payloads/community/waf-bypass/cloudflare-bypass.json +102 -0
  70. package/payloads/community/waf-bypass/encoding-bypass.json +120 -0
  71. package/payloads/community/waf-bypass/evasion-techniques.json +164 -0
  72. package/payloads/community/waf-bypass/hpp-bypass.json +92 -0
  73. package/payloads/community/waf-bypass/modsecurity-crs.json +220 -0
  74. package/payloads/community/waf-bypass/protocol-attacks.json +101 -0
  75. package/payloads/community/waf-bypass/sqlmap-tamper.json +252 -0
  76. package/payloads/community/waf-bypass/unicode-charset.json +152 -0
  77. package/payloads/community/waf-bypass/vendor-bypasses.json +72 -0
  78. package/payloads/community/waf-validation/README.md +172 -0
  79. package/payloads/community/waf-validation/bypass-techniques.json +272 -0
  80. package/payloads/community/waf-validation/custom-rules.json +952 -0
  81. package/payloads/community/waf-validation/evasion-techniques.json +272 -0
  82. package/payloads/community/waf-validation/modsecurity-core.json +151 -0
  83. package/payloads/community/waf-validation/owasp-top10.json +236 -0
  84. package/payloads/community/waf-validation/regression-tests.json +227 -0
  85. package/payloads/community/xss/csp-bypass.json +431 -0
  86. package/payloads/community/xss/dom.json +389 -0
  87. package/payloads/community/xss/filter-bypass.json +1242 -0
  88. package/payloads/community/xss/mutation.json +263 -0
  89. package/payloads/community/xss/polyglots.json +371 -0
  90. package/payloads/community/xss/reflected.json +187 -0
  91. package/payloads/community/xss/stored.json +330 -0
  92. package/payloads/crlf-injection.json +182 -0
  93. package/payloads/ids-map.json +155 -0
  94. package/payloads/ldap-injection.json +182 -0
  95. package/payloads/nosql-injection.json +227 -0
  96. package/payloads/prototype-pollution.json +182 -0
  97. package/payloads/request-smuggling.json +182 -0
  98. package/payloads/version.json +28 -0
  99. package/payloads/xss-advanced.json +227 -0
  100. package/templates/README.md +221 -0
  101. package/templates/nuclei/http/waf-bypass/crlf-bypass.yaml +146 -0
  102. package/templates/nuclei/http/waf-bypass/lfi-bypass.yaml +152 -0
  103. package/templates/nuclei/http/waf-bypass/nosqli-bypass.yaml +166 -0
  104. package/templates/nuclei/http/waf-bypass/rce-bypass.yaml +171 -0
  105. package/templates/nuclei/http/waf-bypass/sqli-basic.yaml +142 -0
  106. package/templates/nuclei/http/waf-bypass/sqli-evasion.yaml +192 -0
  107. package/templates/nuclei/http/waf-bypass/ssrf-bypass.yaml +130 -0
  108. package/templates/nuclei/http/waf-bypass/ssti-bypass.yaml +147 -0
  109. package/templates/nuclei/http/waf-bypass/xss-basic.yaml +163 -0
  110. package/templates/nuclei/http/waf-bypass/xss-evasion.yaml +217 -0
  111. package/templates/nuclei/http/waf-bypass/xxe-bypass.yaml +204 -0
  112. package/templates/nuclei/http/waf-detection/akamai-detect.yaml +105 -0
  113. package/templates/nuclei/http/waf-detection/aws-waf-detect.yaml +115 -0
  114. package/templates/nuclei/http/waf-detection/azure-waf-detect.yaml +114 -0
  115. package/templates/nuclei/http/waf-detection/cloudflare-detect.yaml +121 -0
  116. package/templates/nuclei/http/waf-detection/modsecurity-detect.yaml +129 -0
  117. package/templates/nuclei/workflows/waf-assessment-workflow.yaml +71 -0
  118. package/templates/output/asff.tmpl +61 -0
  119. package/templates/output/csv.tmpl +4 -0
  120. package/templates/output/junit.tmpl +34 -0
  121. package/templates/output/markdown-report.tmpl +92 -0
  122. package/templates/output/slack-notification.tmpl +95 -0
  123. package/templates/output/text-summary.tmpl +56 -0
  124. package/templates/overrides/api-only.yaml +130 -0
  125. package/templates/overrides/crs-tuning.yaml +204 -0
  126. package/templates/overrides/false-positive-suppression.yaml +159 -0
  127. package/templates/policies/owasp-top10.yaml +152 -0
  128. package/templates/policies/pci-dss.yaml +124 -0
  129. package/templates/policies/permissive.yaml +40 -0
  130. package/templates/policies/standard.yaml +57 -0
  131. package/templates/policies/strict.yaml +72 -0
  132. package/templates/report-configs/compliance.yaml +173 -0
  133. package/templates/report-configs/dark.yaml +136 -0
  134. package/templates/report-configs/enterprise.yaml +175 -0
  135. package/templates/report-configs/minimal.yaml +84 -0
  136. package/templates/report-configs/print.yaml +139 -0
  137. package/templates/workflows/api-scan.yaml +132 -0
  138. package/templates/workflows/ci-gate.yaml +129 -0
  139. package/templates/workflows/full-scan.yaml +133 -0
  140. package/templates/workflows/quick-probe.yaml +80 -0
  141. package/templates/workflows/waf-detection.yaml +89 -0
@@ -0,0 +1,405 @@
1
+ [
2
+ {
3
+ "id": "LOGIC-FORCED-001",
4
+ "payload": "GET /admin HTTP/1.1\r\nHost: target.com\r\n\r\n",
5
+ "tags": [
6
+ "forced-browsing",
7
+ "admin-path",
8
+ "quick",
9
+ "critical"
10
+ ],
11
+ "expected_block": true,
12
+ "severity_hint": "Critical",
13
+ "notes": "Direct access to admin panel without authentication",
14
+ "destructive": false,
15
+ "category": "Logic"
16
+ },
17
+ {
18
+ "id": "LOGIC-FORCED-002",
19
+ "payload": "GET /admin/ HTTP/1.1\r\nHost: target.com\r\n\r\n",
20
+ "tags": [
21
+ "forced-browsing",
22
+ "admin-path",
23
+ "quick"
24
+ ],
25
+ "expected_block": true,
26
+ "severity_hint": "Critical",
27
+ "notes": "Admin panel with trailing slash",
28
+ "destructive": false,
29
+ "category": "Logic"
30
+ },
31
+ {
32
+ "id": "LOGIC-FORCED-003",
33
+ "payload": "GET /administrator HTTP/1.1\r\nHost: target.com\r\n\r\n",
34
+ "tags": [
35
+ "forced-browsing",
36
+ "admin-variant"
37
+ ],
38
+ "expected_block": true,
39
+ "severity_hint": "Critical",
40
+ "notes": "Alternative admin path naming",
41
+ "destructive": false,
42
+ "category": "Logic"
43
+ },
44
+ {
45
+ "id": "LOGIC-FORCED-004",
46
+ "payload": "GET /api/admin/users HTTP/1.1\r\nHost: target.com\r\n\r\n",
47
+ "tags": [
48
+ "forced-browsing",
49
+ "api-admin",
50
+ "critical"
51
+ ],
52
+ "expected_block": true,
53
+ "severity_hint": "Critical",
54
+ "notes": "Admin API endpoint without auth",
55
+ "destructive": false,
56
+ "category": "Logic"
57
+ },
58
+ {
59
+ "id": "LOGIC-FORCED-005",
60
+ "payload": "GET /api/v1/admin/settings HTTP/1.1\r\nHost: target.com\r\n\r\n",
61
+ "tags": [
62
+ "forced-browsing",
63
+ "settings-api"
64
+ ],
65
+ "expected_block": true,
66
+ "severity_hint": "Critical",
67
+ "notes": "Versioned admin settings API",
68
+ "destructive": false,
69
+ "category": "Logic"
70
+ },
71
+ {
72
+ "id": "LOGIC-FORCED-006",
73
+ "payload": "GET /dashboard HTTP/1.1\r\nHost: target.com\r\n\r\n",
74
+ "tags": [
75
+ "forced-browsing",
76
+ "dashboard"
77
+ ],
78
+ "expected_block": true,
79
+ "severity_hint": "High",
80
+ "notes": "Dashboard access without authentication",
81
+ "destructive": false,
82
+ "category": "Logic"
83
+ },
84
+ {
85
+ "id": "LOGIC-FORCED-007",
86
+ "payload": "GET /console HTTP/1.1\r\nHost: target.com\r\n\r\n",
87
+ "tags": [
88
+ "forced-browsing",
89
+ "console"
90
+ ],
91
+ "expected_block": true,
92
+ "severity_hint": "Critical",
93
+ "notes": "Management console access",
94
+ "destructive": false,
95
+ "category": "Logic"
96
+ },
97
+ {
98
+ "id": "LOGIC-FORCED-008",
99
+ "payload": "GET /api/internal/config HTTP/1.1\r\nHost: target.com\r\n\r\n",
100
+ "tags": [
101
+ "forced-browsing",
102
+ "internal-api",
103
+ "quick"
104
+ ],
105
+ "expected_block": true,
106
+ "severity_hint": "Critical",
107
+ "notes": "Internal configuration API",
108
+ "destructive": false,
109
+ "category": "Logic"
110
+ },
111
+ {
112
+ "id": "LOGIC-FORCED-009",
113
+ "payload": "GET /api/debug HTTP/1.1\r\nHost: target.com\r\n\r\n",
114
+ "tags": [
115
+ "forced-browsing",
116
+ "debug-endpoint"
117
+ ],
118
+ "expected_block": true,
119
+ "severity_hint": "High",
120
+ "notes": "Debug endpoint (often left exposed)",
121
+ "destructive": false,
122
+ "category": "Logic"
123
+ },
124
+ {
125
+ "id": "LOGIC-FORCED-010",
126
+ "payload": "GET /.env HTTP/1.1\r\nHost: target.com\r\n\r\n",
127
+ "tags": [
128
+ "forced-browsing",
129
+ "env-file",
130
+ "critical"
131
+ ],
132
+ "expected_block": true,
133
+ "severity_hint": "Critical",
134
+ "notes": "Environment configuration file",
135
+ "destructive": false,
136
+ "category": "Logic"
137
+ },
138
+ {
139
+ "id": "LOGIC-FORCED-011",
140
+ "payload": "GET /api/v1/users HTTP/1.1\r\nHost: target.com\r\n\r\n",
141
+ "tags": [
142
+ "forced-browsing",
143
+ "user-list"
144
+ ],
145
+ "expected_block": true,
146
+ "severity_hint": "High",
147
+ "notes": "User listing API without auth",
148
+ "destructive": false,
149
+ "category": "Logic"
150
+ },
151
+ {
152
+ "id": "LOGIC-FORCED-012",
153
+ "payload": "GET /api/users/1/private HTTP/1.1\r\nHost: target.com\r\n\r\n",
154
+ "tags": [
155
+ "forced-browsing",
156
+ "private-data"
157
+ ],
158
+ "expected_block": true,
159
+ "severity_hint": "Critical",
160
+ "notes": "Private user data endpoint",
161
+ "destructive": false,
162
+ "category": "Logic"
163
+ },
164
+ {
165
+ "id": "LOGIC-FORCED-013",
166
+ "payload": "GET /backup HTTP/1.1\r\nHost: target.com\r\n\r\n",
167
+ "tags": [
168
+ "forced-browsing",
169
+ "backup"
170
+ ],
171
+ "expected_block": true,
172
+ "severity_hint": "Critical",
173
+ "notes": "Backup directory access",
174
+ "destructive": false,
175
+ "category": "Logic"
176
+ },
177
+ {
178
+ "id": "LOGIC-FORCED-014",
179
+ "payload": "GET /logs HTTP/1.1\r\nHost: target.com\r\n\r\n",
180
+ "tags": [
181
+ "forced-browsing",
182
+ "logs"
183
+ ],
184
+ "expected_block": true,
185
+ "severity_hint": "High",
186
+ "notes": "Log file directory access",
187
+ "destructive": false,
188
+ "category": "Logic"
189
+ },
190
+ {
191
+ "id": "LOGIC-FORCED-015",
192
+ "payload": "GET /phpmyadmin HTTP/1.1\r\nHost: target.com\r\n\r\n",
193
+ "tags": [
194
+ "forced-browsing",
195
+ "database-admin"
196
+ ],
197
+ "expected_block": true,
198
+ "severity_hint": "Critical",
199
+ "notes": "phpMyAdmin database management",
200
+ "destructive": false,
201
+ "category": "Logic"
202
+ },
203
+ {
204
+ "id": "LOGIC-FORCED-016",
205
+ "payload": "GET /actuator/health HTTP/1.1\r\nHost: target.com\r\n\r\n",
206
+ "tags": [
207
+ "forced-browsing",
208
+ "actuator"
209
+ ],
210
+ "expected_block": true,
211
+ "severity_hint": "Medium",
212
+ "notes": "Spring Boot actuator endpoint",
213
+ "destructive": false,
214
+ "category": "Logic"
215
+ },
216
+ {
217
+ "id": "LOGIC-FORCED-017",
218
+ "payload": "GET /actuator/env HTTP/1.1\r\nHost: target.com\r\n\r\n",
219
+ "tags": [
220
+ "forced-browsing",
221
+ "actuator-sensitive",
222
+ "critical"
223
+ ],
224
+ "expected_block": true,
225
+ "severity_hint": "Critical",
226
+ "notes": "Spring Boot environment variables exposure",
227
+ "destructive": false,
228
+ "category": "Logic"
229
+ },
230
+ {
231
+ "id": "LOGIC-FORCED-018",
232
+ "payload": "GET /api/v1/internal/metrics HTTP/1.1\r\nHost: target.com\r\n\r\n",
233
+ "tags": [
234
+ "forced-browsing",
235
+ "metrics"
236
+ ],
237
+ "expected_block": true,
238
+ "severity_hint": "Medium",
239
+ "notes": "Internal metrics endpoint",
240
+ "destructive": false,
241
+ "category": "Logic"
242
+ },
243
+ {
244
+ "id": "LOGIC-FORCED-019",
245
+ "payload": "GET /graphql HTTP/1.1\r\nHost: target.com\r\nContent-Type: application/json\r\n\r\n{\"query\":\"{__schema{types{name}}}\"}",
246
+ "tags": [
247
+ "forced-browsing",
248
+ "graphql"
249
+ ],
250
+ "expected_block": true,
251
+ "severity_hint": "High",
252
+ "notes": "GraphQL endpoint without auth",
253
+ "destructive": false,
254
+ "category": "Logic"
255
+ },
256
+ {
257
+ "id": "LOGIC-FORCED-020",
258
+ "payload": "GET /api/v1/secrets HTTP/1.1\r\nHost: target.com\r\n\r\n",
259
+ "tags": [
260
+ "forced-browsing",
261
+ "secrets",
262
+ "critical"
263
+ ],
264
+ "expected_block": true,
265
+ "severity_hint": "Critical",
266
+ "notes": "Secrets management endpoint",
267
+ "destructive": false,
268
+ "category": "Logic"
269
+ },
270
+ {
271
+ "id": "LOGIC-FORCED-021",
272
+ "payload": "GET /api/v1/config.json HTTP/1.1\r\nHost: target.com\r\n\r\n",
273
+ "tags": [
274
+ "forced-browsing",
275
+ "config-file"
276
+ ],
277
+ "expected_block": true,
278
+ "severity_hint": "High",
279
+ "notes": "JSON configuration file",
280
+ "destructive": false,
281
+ "category": "Logic"
282
+ },
283
+ {
284
+ "id": "LOGIC-FORCED-022",
285
+ "payload": "GET /server-status HTTP/1.1\r\nHost: target.com\r\n\r\n",
286
+ "tags": [
287
+ "forced-browsing",
288
+ "server-status"
289
+ ],
290
+ "expected_block": true,
291
+ "severity_hint": "Medium",
292
+ "notes": "Apache server-status page",
293
+ "destructive": false,
294
+ "category": "Logic"
295
+ },
296
+ {
297
+ "id": "LOGIC-FORCED-023",
298
+ "payload": "GET /api/swagger.json HTTP/1.1\r\nHost: target.com\r\n\r\n",
299
+ "tags": [
300
+ "forced-browsing",
301
+ "api-docs"
302
+ ],
303
+ "expected_block": true,
304
+ "severity_hint": "Medium",
305
+ "notes": "Swagger API documentation",
306
+ "destructive": false,
307
+ "category": "Logic"
308
+ },
309
+ {
310
+ "id": "LOGIC-FORCED-024",
311
+ "payload": "GET /api-docs HTTP/1.1\r\nHost: target.com\r\n\r\n",
312
+ "tags": [
313
+ "forced-browsing",
314
+ "api-docs"
315
+ ],
316
+ "expected_block": true,
317
+ "severity_hint": "Medium",
318
+ "notes": "API documentation endpoint",
319
+ "destructive": false,
320
+ "category": "Logic"
321
+ },
322
+ {
323
+ "id": "LOGIC-FORCED-025",
324
+ "payload": "GET /admin/phpinfo.php HTTP/1.1\r\nHost: target.com\r\n\r\n",
325
+ "tags": [
326
+ "forced-browsing",
327
+ "phpinfo",
328
+ "quick"
329
+ ],
330
+ "expected_block": true,
331
+ "severity_hint": "High",
332
+ "notes": "phpinfo() page in admin directory",
333
+ "destructive": false,
334
+ "category": "Logic"
335
+ },
336
+ {
337
+ "id": "LOGIC-FORCED-026",
338
+ "payload": "PUT /api/admin/settings HTTP/1.1\r\nHost: target.com\r\nContent-Type: application/json\r\n\r\n{\"maintenance_mode\":true}",
339
+ "tags": [
340
+ "forced-browsing",
341
+ "method-misuse",
342
+ "critical"
343
+ ],
344
+ "expected_block": true,
345
+ "severity_hint": "Critical",
346
+ "notes": "PUT method on admin settings (should require auth)",
347
+ "destructive": true,
348
+ "category": "Logic"
349
+ },
350
+ {
351
+ "id": "LOGIC-FORCED-027",
352
+ "payload": "DELETE /api/users/1 HTTP/1.1\r\nHost: target.com\r\n\r\n",
353
+ "tags": [
354
+ "forced-browsing",
355
+ "method-misuse",
356
+ "critical"
357
+ ],
358
+ "expected_block": true,
359
+ "severity_hint": "Critical",
360
+ "notes": "DELETE method without authentication",
361
+ "destructive": true,
362
+ "category": "Logic"
363
+ },
364
+ {
365
+ "id": "LOGIC-FORCED-028",
366
+ "payload": "POST /api/admin/users HTTP/1.1\r\nHost: target.com\r\nContent-Type: application/json\r\n\r\n{\"username\":\"hacker\",\"role\":\"admin\"}",
367
+ "tags": [
368
+ "forced-browsing",
369
+ "method-misuse",
370
+ "critical"
371
+ ],
372
+ "expected_block": true,
373
+ "severity_hint": "Critical",
374
+ "notes": "POST to create admin user without auth",
375
+ "destructive": true,
376
+ "category": "Logic"
377
+ },
378
+ {
379
+ "id": "LOGIC-FORCED-029",
380
+ "payload": "PATCH /api/users/1 HTTP/1.1\r\nHost: target.com\r\nContent-Type: application/json\r\n\r\n{\"role\":\"admin\"}",
381
+ "tags": [
382
+ "forced-browsing",
383
+ "method-misuse",
384
+ "critical"
385
+ ],
386
+ "expected_block": true,
387
+ "severity_hint": "Critical",
388
+ "notes": "PATCH method for privilege escalation",
389
+ "destructive": true,
390
+ "category": "Logic"
391
+ },
392
+ {
393
+ "id": "LOGIC-FORCED-030",
394
+ "payload": "GET /api/v1/workflows HTTP/1.1\r\nHost: target.com\r\n\r\n",
395
+ "tags": [
396
+ "forced-browsing",
397
+ "n8n-specific"
398
+ ],
399
+ "expected_block": true,
400
+ "severity_hint": "High",
401
+ "notes": "n8n workflows listing without auth",
402
+ "destructive": false,
403
+ "category": "Logic"
404
+ }
405
+ ]