@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,375 @@
1
+ [
2
+ {
3
+ "id": "PROTO-WS-001",
4
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
5
+ "tags": [
6
+ "valid-handshake",
7
+ "baseline"
8
+ ],
9
+ "expected_block": false,
10
+ "severity_hint": "Low",
11
+ "notes": "Valid WebSocket handshake (baseline)",
12
+ "destructive": false,
13
+ "category": "Protocol"
14
+ },
15
+ {
16
+ "id": "PROTO-WS-002",
17
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\n\r\n",
18
+ "tags": [
19
+ "missing-key",
20
+ "quick",
21
+ "critical"
22
+ ],
23
+ "expected_block": true,
24
+ "severity_hint": "High",
25
+ "notes": "Missing Sec-WebSocket-Key header",
26
+ "destructive": false,
27
+ "category": "Protocol"
28
+ },
29
+ {
30
+ "id": "PROTO-WS-003",
31
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\n\r\n",
32
+ "tags": [
33
+ "missing-version",
34
+ "quick"
35
+ ],
36
+ "expected_block": true,
37
+ "severity_hint": "High",
38
+ "notes": "Missing Sec-WebSocket-Version header",
39
+ "destructive": false,
40
+ "category": "Protocol"
41
+ },
42
+ {
43
+ "id": "PROTO-WS-004",
44
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
45
+ "tags": [
46
+ "missing-upgrade"
47
+ ],
48
+ "expected_block": true,
49
+ "severity_hint": "High",
50
+ "notes": "Missing Upgrade header",
51
+ "destructive": false,
52
+ "category": "Protocol"
53
+ },
54
+ {
55
+ "id": "PROTO-WS-005",
56
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
57
+ "tags": [
58
+ "missing-connection"
59
+ ],
60
+ "expected_block": true,
61
+ "severity_hint": "High",
62
+ "notes": "Missing Connection: Upgrade header",
63
+ "destructive": false,
64
+ "category": "Protocol"
65
+ },
66
+ {
67
+ "id": "PROTO-WS-006",
68
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: short\r\nSec-WebSocket-Version: 13\r\n\r\n",
69
+ "tags": [
70
+ "invalid-key-length",
71
+ "quick"
72
+ ],
73
+ "expected_block": true,
74
+ "severity_hint": "High",
75
+ "notes": "Sec-WebSocket-Key too short (should be 16 bytes base64)",
76
+ "destructive": false,
77
+ "category": "Protocol"
78
+ },
79
+ {
80
+ "id": "PROTO-WS-007",
81
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: !!!invalid-base64!!!\r\nSec-WebSocket-Version: 13\r\n\r\n",
82
+ "tags": [
83
+ "invalid-key-encoding"
84
+ ],
85
+ "expected_block": true,
86
+ "severity_hint": "High",
87
+ "notes": "Invalid base64 encoding in Sec-WebSocket-Key",
88
+ "destructive": false,
89
+ "category": "Protocol"
90
+ },
91
+ {
92
+ "id": "PROTO-WS-008",
93
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 8\r\n\r\n",
94
+ "tags": [
95
+ "old-version"
96
+ ],
97
+ "expected_block": true,
98
+ "severity_hint": "Medium",
99
+ "notes": "Old WebSocket protocol version (8, current is 13)",
100
+ "destructive": false,
101
+ "category": "Protocol"
102
+ },
103
+ {
104
+ "id": "PROTO-WS-009",
105
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 99\r\n\r\n",
106
+ "tags": [
107
+ "invalid-version"
108
+ ],
109
+ "expected_block": true,
110
+ "severity_hint": "High",
111
+ "notes": "Invalid WebSocket protocol version (99)",
112
+ "destructive": false,
113
+ "category": "Protocol"
114
+ },
115
+ {
116
+ "id": "PROTO-WS-010",
117
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: keep-alive, Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
118
+ "tags": [
119
+ "multiple-connection-tokens"
120
+ ],
121
+ "expected_block": false,
122
+ "severity_hint": "Low",
123
+ "notes": "Connection header with multiple tokens (valid per spec)",
124
+ "destructive": false,
125
+ "category": "Protocol"
126
+ },
127
+ {
128
+ "id": "PROTO-WS-011",
129
+ "payload": "POST /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
130
+ "tags": [
131
+ "wrong-method",
132
+ "quick"
133
+ ],
134
+ "expected_block": true,
135
+ "severity_hint": "High",
136
+ "notes": "WebSocket handshake with POST instead of GET",
137
+ "destructive": false,
138
+ "category": "Protocol"
139
+ },
140
+ {
141
+ "id": "PROTO-WS-012",
142
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: h2c\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
143
+ "tags": [
144
+ "wrong-upgrade-value"
145
+ ],
146
+ "expected_block": true,
147
+ "severity_hint": "High",
148
+ "notes": "Upgrade to h2c instead of websocket",
149
+ "destructive": false,
150
+ "category": "Protocol"
151
+ },
152
+ {
153
+ "id": "PROTO-WS-013",
154
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: close\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
155
+ "tags": [
156
+ "connection-close",
157
+ "quick"
158
+ ],
159
+ "expected_block": true,
160
+ "severity_hint": "High",
161
+ "notes": "Connection: close instead of Connection: Upgrade",
162
+ "destructive": false,
163
+ "category": "Protocol"
164
+ },
165
+ {
166
+ "id": "PROTO-WS-014",
167
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Protocol: chat, superchat\r\n\r\n",
168
+ "tags": [
169
+ "valid-subprotocol"
170
+ ],
171
+ "expected_block": false,
172
+ "severity_hint": "Low",
173
+ "notes": "Valid subprotocol negotiation",
174
+ "destructive": false,
175
+ "category": "Protocol"
176
+ },
177
+ {
178
+ "id": "PROTO-WS-015",
179
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Protocol: <script>alert(1)</script>\r\n\r\n",
180
+ "tags": [
181
+ "xss-subprotocol",
182
+ "injection",
183
+ "quick"
184
+ ],
185
+ "expected_block": true,
186
+ "severity_hint": "Critical",
187
+ "notes": "XSS injection attempt in Sec-WebSocket-Protocol",
188
+ "destructive": false,
189
+ "category": "Protocol"
190
+ },
191
+ {
192
+ "id": "PROTO-WS-016",
193
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Extensions: permessage-deflate\r\n\r\n",
194
+ "tags": [
195
+ "valid-extension"
196
+ ],
197
+ "expected_block": false,
198
+ "severity_hint": "Low",
199
+ "notes": "Valid extension negotiation (permessage-deflate)",
200
+ "destructive": false,
201
+ "category": "Protocol"
202
+ },
203
+ {
204
+ "id": "PROTO-WS-017",
205
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Extensions: ../../../etc/passwd\r\n\r\n",
206
+ "tags": [
207
+ "traversal-extension",
208
+ "injection"
209
+ ],
210
+ "expected_block": true,
211
+ "severity_hint": "Critical",
212
+ "notes": "Path traversal attempt in Sec-WebSocket-Extensions",
213
+ "destructive": false,
214
+ "category": "Protocol"
215
+ },
216
+ {
217
+ "id": "PROTO-WS-018",
218
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Key: YW5vdGhlciBrZXkgdmFsdWU=\r\nSec-WebSocket-Version: 13\r\n\r\n",
219
+ "tags": [
220
+ "duplicate-key"
221
+ ],
222
+ "expected_block": true,
223
+ "severity_hint": "High",
224
+ "notes": "Duplicate Sec-WebSocket-Key headers",
225
+ "destructive": false,
226
+ "category": "Protocol"
227
+ },
228
+ {
229
+ "id": "PROTO-WS-019",
230
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Version: 8\r\n\r\n",
231
+ "tags": [
232
+ "duplicate-version"
233
+ ],
234
+ "expected_block": true,
235
+ "severity_hint": "High",
236
+ "notes": "Duplicate Sec-WebSocket-Version headers with different values",
237
+ "destructive": false,
238
+ "category": "Protocol"
239
+ },
240
+ {
241
+ "id": "PROTO-WS-020",
242
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\nOrigin: http://evil.com\r\n\r\n",
243
+ "tags": [
244
+ "cross-origin",
245
+ "cors"
246
+ ],
247
+ "expected_block": true,
248
+ "severity_hint": "High",
249
+ "notes": "Cross-origin WebSocket connection from untrusted origin",
250
+ "destructive": false,
251
+ "category": "Protocol"
252
+ },
253
+ {
254
+ "id": "PROTO-WS-021",
255
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\nOrigin: null\r\n\r\n",
256
+ "tags": [
257
+ "null-origin"
258
+ ],
259
+ "expected_block": true,
260
+ "severity_hint": "High",
261
+ "notes": "Null origin in WebSocket handshake",
262
+ "destructive": false,
263
+ "category": "Protocol"
264
+ },
265
+ {
266
+ "id": "PROTO-WS-022",
267
+ "payload": "GET /chat HTTP/1.0\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
268
+ "tags": [
269
+ "http10"
270
+ ],
271
+ "expected_block": true,
272
+ "severity_hint": "High",
273
+ "notes": "WebSocket handshake over HTTP/1.0 (requires HTTP/1.1+)",
274
+ "destructive": false,
275
+ "category": "Protocol"
276
+ },
277
+ {
278
+ "id": "PROTO-WS-023",
279
+ "payload": "GET /chat HTTP/2.0\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
280
+ "tags": [
281
+ "http2-upgrade"
282
+ ],
283
+ "expected_block": true,
284
+ "severity_hint": "High",
285
+ "notes": "WebSocket upgrade over HTTP/2 (not allowed per RFC 8441)",
286
+ "destructive": false,
287
+ "category": "Protocol"
288
+ },
289
+ {
290
+ "id": "PROTO-WS-024",
291
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: AAAAAAAAAAAAAAAAAAAAAA==\r\nSec-WebSocket-Version: 13\r\n\r\n",
292
+ "tags": [
293
+ "null-key"
294
+ ],
295
+ "expected_block": true,
296
+ "severity_hint": "Medium",
297
+ "notes": "All-zeros WebSocket key (weak randomness)",
298
+ "destructive": false,
299
+ "category": "Protocol"
300
+ },
301
+ {
302
+ "id": "PROTO-WS-025",
303
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\nContent-Length: 100\r\n\r\n",
304
+ "tags": [
305
+ "body-with-upgrade"
306
+ ],
307
+ "expected_block": true,
308
+ "severity_hint": "High",
309
+ "notes": "Content-Length on WebSocket upgrade request (should have no body)",
310
+ "destructive": false,
311
+ "category": "Protocol"
312
+ },
313
+ {
314
+ "id": "PROTO-WS-026",
315
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\nTransfer-Encoding: chunked\r\n\r\n",
316
+ "tags": [
317
+ "te-with-upgrade"
318
+ ],
319
+ "expected_block": true,
320
+ "severity_hint": "High",
321
+ "notes": "Transfer-Encoding on WebSocket upgrade request",
322
+ "destructive": false,
323
+ "category": "Protocol"
324
+ },
325
+ {
326
+ "id": "PROTO-WS-027",
327
+ "payload": "GET /../admin HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
328
+ "tags": [
329
+ "path-traversal",
330
+ "quick"
331
+ ],
332
+ "expected_block": true,
333
+ "severity_hint": "Critical",
334
+ "notes": "Path traversal in WebSocket endpoint",
335
+ "destructive": false,
336
+ "category": "Protocol"
337
+ },
338
+ {
339
+ "id": "PROTO-WS-028",
340
+ "payload": "GET /chat?token=<script>alert(1)</script> HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
341
+ "tags": [
342
+ "xss-query",
343
+ "injection"
344
+ ],
345
+ "expected_block": true,
346
+ "severity_hint": "Critical",
347
+ "notes": "XSS injection in WebSocket query parameter",
348
+ "destructive": false,
349
+ "category": "Protocol"
350
+ },
351
+ {
352
+ "id": "PROTO-WS-029",
353
+ "payload": "GET /chat HTTP/1.1\r\nHost: 127.0.0.1\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
354
+ "tags": [
355
+ "localhost-host"
356
+ ],
357
+ "expected_block": true,
358
+ "severity_hint": "High",
359
+ "notes": "WebSocket connection to localhost (potential SSRF)",
360
+ "destructive": false,
361
+ "category": "Protocol"
362
+ },
363
+ {
364
+ "id": "PROTO-WS-030",
365
+ "payload": "GET /chat HTTP/1.1\r\nHost: example.com\r\nUpgrade: websocket, h2c\r\nConnection: Upgrade\r\nSec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\nSec-WebSocket-Version: 13\r\n\r\n",
366
+ "tags": [
367
+ "multiple-upgrade-protocols"
368
+ ],
369
+ "expected_block": true,
370
+ "severity_hint": "High",
371
+ "notes": "Multiple protocols in Upgrade header",
372
+ "destructive": false,
373
+ "category": "Protocol"
374
+ }
375
+ ]
@@ -0,0 +1,286 @@
1
+ [
2
+ {
3
+ "id": "RATE-BURST-001",
4
+ "payload": "/api/test",
5
+ "repeat": 10,
6
+ "interval_ms": 100,
7
+ "tags": [
8
+ "rate-limit",
9
+ "burst",
10
+ "quick",
11
+ "medium"
12
+ ],
13
+ "expected_block": false,
14
+ "severity_hint": "Medium",
15
+ "notes": "10 rapid requests in 1 second (within api zone limit)",
16
+ "category": "RateLimit"
17
+ },
18
+ {
19
+ "id": "RATE-BURST-002",
20
+ "payload": "/login",
21
+ "method": "POST",
22
+ "headers": {
23
+ "Content-Type": "application/json",
24
+ "Content-Length": "128"
25
+ },
26
+ "repeat": 12,
27
+ "interval_ms": 5000,
28
+ "tags": [
29
+ "rate-limit",
30
+ "burst",
31
+ "auth-like",
32
+ "medium"
33
+ ],
34
+ "expected_block": true,
35
+ "severity_hint": "Medium",
36
+ "notes": "12 login attempts in 1 minute (exceeds auth_like 10 req/min)",
37
+ "category": "RateLimit"
38
+ },
39
+ {
40
+ "id": "RATE-BURST-003",
41
+ "payload": "/",
42
+ "repeat": 400,
43
+ "interval_ms": 150,
44
+ "tags": [
45
+ "rate-limit",
46
+ "burst",
47
+ "general",
48
+ "quick",
49
+ "medium"
50
+ ],
51
+ "expected_block": true,
52
+ "severity_hint": "Medium",
53
+ "notes": "400 requests in 1 minute (exceeds general 360 req/min)",
54
+ "category": "RateLimit"
55
+ },
56
+ {
57
+ "id": "RATE-BURST-004",
58
+ "payload": "/rest/workflows",
59
+ "repeat": 1100,
60
+ "interval_ms": 54,
61
+ "tags": [
62
+ "rate-limit",
63
+ "burst",
64
+ "api",
65
+ "high"
66
+ ],
67
+ "expected_block": true,
68
+ "severity_hint": "High",
69
+ "notes": "1100 API requests in 1 minute (exceeds api 1000 req/min)",
70
+ "category": "RateLimit"
71
+ },
72
+ {
73
+ "id": "RATE-BURST-005",
74
+ "payload": "/api/assets/upload",
75
+ "method": "POST",
76
+ "headers": {
77
+ "Content-Length": "10485760"
78
+ },
79
+ "repeat": 110,
80
+ "interval_ms": 545,
81
+ "tags": [
82
+ "rate-limit",
83
+ "burst",
84
+ "uploads",
85
+ "quick",
86
+ "medium"
87
+ ],
88
+ "expected_block": true,
89
+ "severity_hint": "Medium",
90
+ "notes": "110 large uploads in 1 minute (exceeds uploads 100 req/min)",
91
+ "category": "RateLimit"
92
+ },
93
+ {
94
+ "id": "RATE-BURST-006",
95
+ "payload": "/stream.mp4",
96
+ "headers": {
97
+ "Range": "bytes=0-1024"
98
+ },
99
+ "repeat": 1100,
100
+ "interval_ms": 54,
101
+ "tags": [
102
+ "rate-limit",
103
+ "burst",
104
+ "streaming",
105
+ "medium"
106
+ ],
107
+ "expected_block": true,
108
+ "severity_hint": "Medium",
109
+ "notes": "1100 streaming chunks in 1 minute (exceeds streaming 1000 req/min)",
110
+ "category": "RateLimit"
111
+ },
112
+ {
113
+ "id": "RATE-BURST-007",
114
+ "payload": "/icons/favicon.ico",
115
+ "repeat": 100,
116
+ "interval_ms": 10,
117
+ "tags": [
118
+ "rate-limit",
119
+ "burst",
120
+ "static-assets",
121
+ "quick",
122
+ "low"
123
+ ],
124
+ "expected_block": false,
125
+ "severity_hint": "Low",
126
+ "notes": "100 static asset requests in 1 second (within 10,000 req/min limit)",
127
+ "category": "RateLimit"
128
+ },
129
+ {
130
+ "id": "RATE-BURST-008",
131
+ "payload": "/login",
132
+ "method": "POST",
133
+ "headers": {
134
+ "Content-Type": "application/json",
135
+ "Content-Length": "100"
136
+ },
137
+ "repeat": 5,
138
+ "interval_ms": 10000,
139
+ "tags": [
140
+ "rate-limit",
141
+ "burst",
142
+ "auth-like",
143
+ "slow",
144
+ "low"
145
+ ],
146
+ "expected_block": false,
147
+ "severity_hint": "Low",
148
+ "notes": "5 login attempts spread over 50 seconds (within limit)",
149
+ "category": "RateLimit"
150
+ },
151
+ {
152
+ "id": "RATE-BURST-009",
153
+ "payload": "/rest/executions",
154
+ "repeat": 50,
155
+ "interval_ms": 20,
156
+ "tags": [
157
+ "rate-limit",
158
+ "burst",
159
+ "api",
160
+ "quick",
161
+ "low"
162
+ ],
163
+ "expected_block": false,
164
+ "severity_hint": "Low",
165
+ "notes": "50 rapid API requests in 1 second (within limit)",
166
+ "category": "RateLimit"
167
+ },
168
+ {
169
+ "id": "RATE-BURST-010",
170
+ "payload": "/password/reset",
171
+ "method": "POST",
172
+ "headers": {
173
+ "Content-Type": "application/json",
174
+ "Content-Length": "64"
175
+ },
176
+ "repeat": 3,
177
+ "interval_ms": 5000,
178
+ "tags": [
179
+ "rate-limit",
180
+ "burst",
181
+ "auth-like",
182
+ "quick",
183
+ "low"
184
+ ],
185
+ "expected_block": false,
186
+ "severity_hint": "Low",
187
+ "notes": "3 password resets in 15 seconds (within auth_like limit)",
188
+ "category": "RateLimit"
189
+ },
190
+ {
191
+ "id": "RATE-BURST-011",
192
+ "payload": "/",
193
+ "repeat": 7,
194
+ "interval_ms": 1000,
195
+ "tags": [
196
+ "rate-limit",
197
+ "burst",
198
+ "general",
199
+ "quick",
200
+ "low"
201
+ ],
202
+ "expected_block": false,
203
+ "severity_hint": "Low",
204
+ "notes": "7 requests per second (exceeds 6 req/sec slightly, tests jitter)",
205
+ "category": "RateLimit"
206
+ },
207
+ {
208
+ "id": "RATE-BURST-012",
209
+ "payload": "/token",
210
+ "method": "POST",
211
+ "headers": {
212
+ "Content-Type": "application/json",
213
+ "Content-Length": "512"
214
+ },
215
+ "repeat": 11,
216
+ "interval_ms": 5454,
217
+ "tags": [
218
+ "rate-limit",
219
+ "burst",
220
+ "auth-like",
221
+ "quick",
222
+ "medium"
223
+ ],
224
+ "expected_block": true,
225
+ "severity_hint": "Medium",
226
+ "notes": "11 token requests in 1 minute (exceeds auth_like 10 req/min)",
227
+ "category": "RateLimit"
228
+ },
229
+ {
230
+ "id": "RATE-BURST-013",
231
+ "payload": "/api/search/metadata?q=test",
232
+ "repeat": 20,
233
+ "interval_ms": 50,
234
+ "tags": [
235
+ "rate-limit",
236
+ "burst",
237
+ "api",
238
+ "quick",
239
+ "low"
240
+ ],
241
+ "expected_block": false,
242
+ "severity_hint": "Low",
243
+ "notes": "20 rapid search queries in 1 second (within limit)",
244
+ "category": "RateLimit"
245
+ },
246
+ {
247
+ "id": "RATE-BURST-014",
248
+ "payload": "/signup",
249
+ "method": "POST",
250
+ "headers": {
251
+ "Content-Type": "application/json",
252
+ "Content-Length": "200"
253
+ },
254
+ "repeat": 15,
255
+ "interval_ms": 4000,
256
+ "tags": [
257
+ "rate-limit",
258
+ "burst",
259
+ "auth-like",
260
+ "registration-abuse",
261
+ "quick",
262
+ "high"
263
+ ],
264
+ "expected_block": true,
265
+ "severity_hint": "High",
266
+ "notes": "15 signup attempts in 1 minute (exceeds auth_like 10 req/min) - registration abuse",
267
+ "category": "RateLimit"
268
+ },
269
+ {
270
+ "id": "RATE-BURST-015",
271
+ "payload": "/rest/workflows?code=test",
272
+ "repeat": 500,
273
+ "interval_ms": 120,
274
+ "tags": [
275
+ "rate-limit",
276
+ "burst",
277
+ "api",
278
+ "n8n",
279
+ "medium"
280
+ ],
281
+ "expected_block": false,
282
+ "severity_hint": "Medium",
283
+ "notes": "500 workflow requests in 1 minute (within api 1000 req/min limit)",
284
+ "category": "RateLimit"
285
+ }
286
+ ]