@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,402 @@
1
+ [
2
+ {
3
+ "id": "AUTH-MFA-110",
4
+ "payload": "totp_code=",
5
+ "tags": [
6
+ "mfa-bypass",
7
+ "empty-code",
8
+ "quick",
9
+ "critical"
10
+ ],
11
+ "expected_block": false,
12
+ "severity_hint": "Critical",
13
+ "notes": "Empty TOTP code - MFA enforcement bypass",
14
+ "category": "Auth"
15
+ },
16
+ {
17
+ "id": "AUTH-MFA-111",
18
+ "payload": "totp_code=000000",
19
+ "tags": [
20
+ "mfa-bypass",
21
+ "default-code",
22
+ "quick",
23
+ "high"
24
+ ],
25
+ "expected_block": false,
26
+ "severity_hint": "High",
27
+ "notes": "Default/null TOTP code - testing for weak MFA validation",
28
+ "category": "Auth"
29
+ },
30
+ {
31
+ "id": "AUTH-MFA-112",
32
+ "payload": "totp_code=123456",
33
+ "tags": [
34
+ "mfa-brute-force",
35
+ "common-code",
36
+ "quick",
37
+ "high"
38
+ ],
39
+ "expected_block": false,
40
+ "severity_hint": "High",
41
+ "notes": "Common TOTP code - brute force attempt with frequent pattern",
42
+ "category": "Auth"
43
+ },
44
+ {
45
+ "id": "AUTH-MFA-113",
46
+ "payload": "backup_code=AAAAA-AAAAA",
47
+ "tags": [
48
+ "backup-code",
49
+ "predictable",
50
+ "high"
51
+ ],
52
+ "expected_block": false,
53
+ "severity_hint": "High",
54
+ "notes": "Predictable backup code pattern - weak code generation",
55
+ "category": "Auth"
56
+ },
57
+ {
58
+ "id": "AUTH-MFA-114",
59
+ "payload": "backup_code=12345-67890",
60
+ "tags": [
61
+ "backup-code",
62
+ "sequential",
63
+ "high"
64
+ ],
65
+ "expected_block": false,
66
+ "severity_hint": "High",
67
+ "notes": "Sequential backup code - testing backup code entropy",
68
+ "category": "Auth"
69
+ },
70
+ {
71
+ "id": "AUTH-MFA-115",
72
+ "payload": "sms_code=1234",
73
+ "tags": [
74
+ "sms-intercept",
75
+ "short-code",
76
+ "quick",
77
+ "high"
78
+ ],
79
+ "expected_block": false,
80
+ "severity_hint": "High",
81
+ "notes": "4-digit SMS code - brute forceable, weak MFA",
82
+ "category": "Auth"
83
+ },
84
+ {
85
+ "id": "AUTH-MFA-116",
86
+ "payload": "trust_device=true&skip_mfa=true",
87
+ "tags": [
88
+ "mfa-bypass",
89
+ "trust-device",
90
+ "quick",
91
+ "critical"
92
+ ],
93
+ "expected_block": false,
94
+ "severity_hint": "Critical",
95
+ "notes": "MFA bypass via trust_device parameter - client-side control",
96
+ "category": "Auth"
97
+ },
98
+ {
99
+ "id": "AUTH-MFA-117",
100
+ "payload": "mfa_required=false",
101
+ "tags": [
102
+ "mfa-bypass",
103
+ "parameter-tampering",
104
+ "quick",
105
+ "critical"
106
+ ],
107
+ "expected_block": false,
108
+ "severity_hint": "Critical",
109
+ "notes": "MFA enforcement disabled via parameter - authorization bypass",
110
+ "category": "Auth"
111
+ },
112
+ {
113
+ "id": "AUTH-MFA-118",
114
+ "payload": "totp_code=999999&totp_code=000000",
115
+ "tags": [
116
+ "mfa-bypass",
117
+ "parameter-pollution",
118
+ "high"
119
+ ],
120
+ "expected_block": false,
121
+ "severity_hint": "High",
122
+ "notes": "Multiple TOTP codes - HPP (HTTP Parameter Pollution) bypass",
123
+ "category": "Auth"
124
+ },
125
+ {
126
+ "id": "AUTH-MFA-119",
127
+ "payload": "X-Skip-MFA: true",
128
+ "tags": [
129
+ "mfa-bypass",
130
+ "header-injection",
131
+ "critical"
132
+ ],
133
+ "expected_block": false,
134
+ "severity_hint": "Critical",
135
+ "notes": "Custom header to skip MFA - testing for undocumented bypass",
136
+ "category": "Auth"
137
+ },
138
+ {
139
+ "id": "AUTH-MFA-120",
140
+ "payload": "mfa_token=expired_token_from_previous_session",
141
+ "tags": [
142
+ "mfa-bypass",
143
+ "token-reuse",
144
+ "high"
145
+ ],
146
+ "expected_block": false,
147
+ "severity_hint": "High",
148
+ "notes": "Expired MFA token reuse - testing token expiration enforcement",
149
+ "category": "Auth"
150
+ },
151
+ {
152
+ "id": "AUTH-MFA-121",
153
+ "payload": "totp_code=123456&totp_code=234567&totp_code=345678",
154
+ "tags": [
155
+ "mfa-brute-force",
156
+ "multiple-attempts",
157
+ "quick",
158
+ "high"
159
+ ],
160
+ "expected_block": false,
161
+ "severity_hint": "High",
162
+ "notes": "Multiple TOTP codes in single request - rate limit bypass via batching",
163
+ "category": "Auth"
164
+ },
165
+ {
166
+ "id": "AUTH-MFA-122",
167
+ "payload": "totp_verified=true",
168
+ "tags": [
169
+ "mfa-bypass",
170
+ "status-injection",
171
+ "critical"
172
+ ],
173
+ "expected_block": false,
174
+ "severity_hint": "Critical",
175
+ "notes": "Pre-verified TOTP status - session parameter manipulation",
176
+ "category": "Auth"
177
+ },
178
+ {
179
+ "id": "AUTH-MFA-123",
180
+ "payload": "mfa_step=completed",
181
+ "tags": [
182
+ "mfa-bypass",
183
+ "workflow-skip",
184
+ "critical"
185
+ ],
186
+ "expected_block": false,
187
+ "severity_hint": "Critical",
188
+ "notes": "MFA workflow step bypass - jumping to completed state",
189
+ "category": "Auth"
190
+ },
191
+ {
192
+ "id": "AUTH-MFA-124",
193
+ "payload": "totp_code=null",
194
+ "tags": [
195
+ "mfa-bypass",
196
+ "null-value",
197
+ "high"
198
+ ],
199
+ "expected_block": false,
200
+ "severity_hint": "High",
201
+ "notes": "Null TOTP code - type confusion bypass",
202
+ "category": "Auth"
203
+ },
204
+ {
205
+ "id": "AUTH-MFA-125",
206
+ "payload": "remember_mfa=999999",
207
+ "tags": [
208
+ "mfa-bypass",
209
+ "remember-device",
210
+ "high"
211
+ ],
212
+ "expected_block": false,
213
+ "severity_hint": "High",
214
+ "notes": "Extended remember-device period - persistent MFA bypass",
215
+ "category": "Auth"
216
+ },
217
+ {
218
+ "id": "AUTH-MFA-126",
219
+ "payload": "totp_code[]=123456",
220
+ "tags": [
221
+ "mfa-bypass",
222
+ "array-injection",
223
+ "high"
224
+ ],
225
+ "expected_block": false,
226
+ "severity_hint": "High",
227
+ "notes": "TOTP code as array - type juggling bypass",
228
+ "category": "Auth"
229
+ },
230
+ {
231
+ "id": "AUTH-MFA-127",
232
+ "payload": "totp_window=999",
233
+ "tags": [
234
+ "mfa-bypass",
235
+ "time-window",
236
+ "medium"
237
+ ],
238
+ "expected_block": false,
239
+ "severity_hint": "Medium",
240
+ "notes": "Extended TOTP time window - relaxed validation bypass",
241
+ "category": "Auth"
242
+ },
243
+ {
244
+ "id": "AUTH-MFA-128",
245
+ "payload": "recovery_code=RECOVER-12345",
246
+ "tags": [
247
+ "recovery-code",
248
+ "weak-format",
249
+ "high"
250
+ ],
251
+ "expected_block": false,
252
+ "severity_hint": "High",
253
+ "notes": "Predictable recovery code format - enumeration risk",
254
+ "category": "Auth"
255
+ },
256
+ {
257
+ "id": "AUTH-MFA-129",
258
+ "payload": "authenticator_id=00000000-0000-0000-0000-000000000001",
259
+ "tags": [
260
+ "mfa-bypass",
261
+ "device-impersonation",
262
+ "high"
263
+ ],
264
+ "expected_block": false,
265
+ "severity_hint": "High",
266
+ "notes": "Predictable authenticator device ID - device impersonation",
267
+ "category": "Auth"
268
+ },
269
+ {
270
+ "id": "AUTH-MFA-130",
271
+ "payload": "totp_code=../../../etc/passwd",
272
+ "tags": [
273
+ "injection",
274
+ "path-traversal",
275
+ "quick",
276
+ "critical"
277
+ ],
278
+ "expected_block": true,
279
+ "severity_hint": "Critical",
280
+ "notes": "Path traversal in TOTP code field - testing input validation",
281
+ "category": "Auth"
282
+ },
283
+ {
284
+ "id": "AUTH-MFA-131",
285
+ "payload": "totp_code=<script>alert('xss')</script>",
286
+ "tags": [
287
+ "injection",
288
+ "xss",
289
+ "quick",
290
+ "high"
291
+ ],
292
+ "expected_block": true,
293
+ "severity_hint": "High",
294
+ "notes": "XSS in MFA code field - reflected in error messages",
295
+ "category": "Auth"
296
+ },
297
+ {
298
+ "id": "AUTH-MFA-132",
299
+ "payload": "totp_code=' OR '1'='1",
300
+ "tags": [
301
+ "injection",
302
+ "sqli",
303
+ "quick",
304
+ "critical"
305
+ ],
306
+ "expected_block": true,
307
+ "severity_hint": "Critical",
308
+ "notes": "SQL injection in TOTP validation - targeting verification query",
309
+ "category": "Auth"
310
+ },
311
+ {
312
+ "id": "AUTH-MFA-133",
313
+ "payload": "push_notification_approved=true",
314
+ "tags": [
315
+ "push-mfa",
316
+ "auto-approve",
317
+ "critical"
318
+ ],
319
+ "expected_block": false,
320
+ "severity_hint": "Critical",
321
+ "notes": "Auto-approved push notification - client-side approval bypass",
322
+ "category": "Auth"
323
+ },
324
+ {
325
+ "id": "AUTH-MFA-134",
326
+ "payload": "biometric_verified=true",
327
+ "tags": [
328
+ "biometric",
329
+ "status-injection",
330
+ "critical"
331
+ ],
332
+ "expected_block": false,
333
+ "severity_hint": "Critical",
334
+ "notes": "Fake biometric verification status - client-side control",
335
+ "category": "Auth"
336
+ },
337
+ {
338
+ "id": "AUTH-MFA-135",
339
+ "payload": "webauthn_response={\"type\":\"public-key\",\"challenge\":\"fake\"}",
340
+ "tags": [
341
+ "webauthn",
342
+ "response-forgery",
343
+ "critical"
344
+ ],
345
+ "expected_block": false,
346
+ "severity_hint": "Critical",
347
+ "notes": "Forged WebAuthn response - testing cryptographic validation",
348
+ "category": "Auth"
349
+ },
350
+ {
351
+ "id": "AUTH-MFA-136",
352
+ "payload": "totp_code=123456&rate_limit_bypass=true",
353
+ "tags": [
354
+ "rate-limit",
355
+ "bypass-flag",
356
+ "high"
357
+ ],
358
+ "expected_block": false,
359
+ "severity_hint": "High",
360
+ "notes": "Rate limit bypass flag with brute force - testing rate limit enforcement",
361
+ "category": "Auth"
362
+ },
363
+ {
364
+ "id": "AUTH-MFA-137",
365
+ "payload": "totp_attempts=0",
366
+ "tags": [
367
+ "rate-limit",
368
+ "counter-reset",
369
+ "high"
370
+ ],
371
+ "expected_block": false,
372
+ "severity_hint": "High",
373
+ "notes": "Reset MFA attempt counter - client-side rate limit manipulation",
374
+ "category": "Auth"
375
+ },
376
+ {
377
+ "id": "AUTH-MFA-138",
378
+ "payload": "mfa_grace_period=999999",
379
+ "tags": [
380
+ "mfa-bypass",
381
+ "grace-period",
382
+ "high"
383
+ ],
384
+ "expected_block": false,
385
+ "severity_hint": "High",
386
+ "notes": "Extended MFA grace period - delayed enforcement bypass",
387
+ "category": "Auth"
388
+ },
389
+ {
390
+ "id": "AUTH-MFA-139",
391
+ "payload": "fallback_method=email&email_code_verified=true",
392
+ "tags": [
393
+ "mfa-bypass",
394
+ "fallback-method",
395
+ "high"
396
+ ],
397
+ "expected_block": false,
398
+ "severity_hint": "High",
399
+ "notes": "MFA fallback method with pre-verified status - weaker method bypass",
400
+ "category": "Auth"
401
+ }
402
+ ]