circle-ir 3.1.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 (194) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +200 -0
  3. package/configs/sinks/code_injection.yaml +672 -0
  4. package/configs/sinks/command.yaml +917 -0
  5. package/configs/sinks/deserialization.yaml +105 -0
  6. package/configs/sinks/ldap.yaml +136 -0
  7. package/configs/sinks/nodejs.json +629 -0
  8. package/configs/sinks/path.yaml +715 -0
  9. package/configs/sinks/python.json +501 -0
  10. package/configs/sinks/rust.json +339 -0
  11. package/configs/sinks/sql.yaml +233 -0
  12. package/configs/sinks/ssrf.yaml +160 -0
  13. package/configs/sinks/xpath.yaml +121 -0
  14. package/configs/sinks/xss.yaml +727 -0
  15. package/configs/sources/db_sources.yaml +90 -0
  16. package/configs/sources/env_sources.yaml +94 -0
  17. package/configs/sources/express.json +197 -0
  18. package/configs/sources/file_sources.yaml +164 -0
  19. package/configs/sources/http_sources.yaml +379 -0
  20. package/configs/sources/io_sources.yaml +519 -0
  21. package/configs/sources/network_sources.yaml +99 -0
  22. package/configs/sources/python.json +230 -0
  23. package/configs/sources/rust.json +286 -0
  24. package/configs/sources/spring.yaml +70 -0
  25. package/dist/analysis/advisory-db.d.ts +86 -0
  26. package/dist/analysis/advisory-db.js +104 -0
  27. package/dist/analysis/advisory-db.js.map +1 -0
  28. package/dist/analysis/cargo-parser.d.ts +42 -0
  29. package/dist/analysis/cargo-parser.js +102 -0
  30. package/dist/analysis/cargo-parser.js.map +1 -0
  31. package/dist/analysis/config-loader.d.ts +37 -0
  32. package/dist/analysis/config-loader.js +1561 -0
  33. package/dist/analysis/config-loader.js.map +1 -0
  34. package/dist/analysis/constant-propagation/ast-utils.d.ts +25 -0
  35. package/dist/analysis/constant-propagation/ast-utils.js +34 -0
  36. package/dist/analysis/constant-propagation/ast-utils.js.map +1 -0
  37. package/dist/analysis/constant-propagation/evaluator.d.ts +32 -0
  38. package/dist/analysis/constant-propagation/evaluator.js +296 -0
  39. package/dist/analysis/constant-propagation/evaluator.js.map +1 -0
  40. package/dist/analysis/constant-propagation/index.d.ts +62 -0
  41. package/dist/analysis/constant-propagation/index.js +152 -0
  42. package/dist/analysis/constant-propagation/index.js.map +1 -0
  43. package/dist/analysis/constant-propagation/patterns.d.ts +8 -0
  44. package/dist/analysis/constant-propagation/patterns.js +126 -0
  45. package/dist/analysis/constant-propagation/patterns.js.map +1 -0
  46. package/dist/analysis/constant-propagation/propagator.d.ts +180 -0
  47. package/dist/analysis/constant-propagation/propagator.js +1985 -0
  48. package/dist/analysis/constant-propagation/propagator.js.map +1 -0
  49. package/dist/analysis/constant-propagation/types.d.ts +63 -0
  50. package/dist/analysis/constant-propagation/types.js +5 -0
  51. package/dist/analysis/constant-propagation/types.js.map +1 -0
  52. package/dist/analysis/constant-propagation.d.ts +9 -0
  53. package/dist/analysis/constant-propagation.js +18 -0
  54. package/dist/analysis/constant-propagation.js.map +1 -0
  55. package/dist/analysis/dependency-scanner.d.ts +79 -0
  56. package/dist/analysis/dependency-scanner.js +122 -0
  57. package/dist/analysis/dependency-scanner.js.map +1 -0
  58. package/dist/analysis/dfg-verifier.d.ts +116 -0
  59. package/dist/analysis/dfg-verifier.js +399 -0
  60. package/dist/analysis/dfg-verifier.js.map +1 -0
  61. package/dist/analysis/findings.d.ts +11 -0
  62. package/dist/analysis/findings.js +228 -0
  63. package/dist/analysis/findings.js.map +1 -0
  64. package/dist/analysis/index.d.ts +16 -0
  65. package/dist/analysis/index.js +18 -0
  66. package/dist/analysis/index.js.map +1 -0
  67. package/dist/analysis/interprocedural.d.ts +99 -0
  68. package/dist/analysis/interprocedural.js +526 -0
  69. package/dist/analysis/interprocedural.js.map +1 -0
  70. package/dist/analysis/path-finder.d.ts +133 -0
  71. package/dist/analysis/path-finder.js +354 -0
  72. package/dist/analysis/path-finder.js.map +1 -0
  73. package/dist/analysis/rules.d.ts +75 -0
  74. package/dist/analysis/rules.js +332 -0
  75. package/dist/analysis/rules.js.map +1 -0
  76. package/dist/analysis/semver.d.ts +27 -0
  77. package/dist/analysis/semver.js +127 -0
  78. package/dist/analysis/semver.js.map +1 -0
  79. package/dist/analysis/taint-matcher.d.ts +15 -0
  80. package/dist/analysis/taint-matcher.js +634 -0
  81. package/dist/analysis/taint-matcher.js.map +1 -0
  82. package/dist/analysis/taint-propagation.d.ts +67 -0
  83. package/dist/analysis/taint-propagation.js +298 -0
  84. package/dist/analysis/taint-propagation.js.map +1 -0
  85. package/dist/analysis/unresolved.d.ts +14 -0
  86. package/dist/analysis/unresolved.js +202 -0
  87. package/dist/analysis/unresolved.js.map +1 -0
  88. package/dist/analyzer.d.ts +43 -0
  89. package/dist/analyzer.js +1010 -0
  90. package/dist/analyzer.js.map +1 -0
  91. package/dist/browser/circle-ir.js +16576 -0
  92. package/dist/browser.d.ts +38 -0
  93. package/dist/browser.js +38 -0
  94. package/dist/browser.js.map +1 -0
  95. package/dist/core/circle-ir-core.cjs +13626 -0
  96. package/dist/core/circle-ir-core.d.ts +59 -0
  97. package/dist/core/circle-ir-core.js +13591 -0
  98. package/dist/core/extractors/calls.d.ts +13 -0
  99. package/dist/core/extractors/calls.js +1429 -0
  100. package/dist/core/extractors/calls.js.map +1 -0
  101. package/dist/core/extractors/cfg.d.ts +9 -0
  102. package/dist/core/extractors/cfg.js +519 -0
  103. package/dist/core/extractors/cfg.js.map +1 -0
  104. package/dist/core/extractors/dfg.d.ts +12 -0
  105. package/dist/core/extractors/dfg.js +1081 -0
  106. package/dist/core/extractors/dfg.js.map +1 -0
  107. package/dist/core/extractors/exports.d.ts +14 -0
  108. package/dist/core/extractors/exports.js +80 -0
  109. package/dist/core/extractors/exports.js.map +1 -0
  110. package/dist/core/extractors/imports.d.ts +9 -0
  111. package/dist/core/extractors/imports.js +739 -0
  112. package/dist/core/extractors/imports.js.map +1 -0
  113. package/dist/core/extractors/index.d.ts +10 -0
  114. package/dist/core/extractors/index.js +11 -0
  115. package/dist/core/extractors/index.js.map +1 -0
  116. package/dist/core/extractors/meta.d.ts +10 -0
  117. package/dist/core/extractors/meta.js +109 -0
  118. package/dist/core/extractors/meta.js.map +1 -0
  119. package/dist/core/extractors/types.d.ts +10 -0
  120. package/dist/core/extractors/types.js +1479 -0
  121. package/dist/core/extractors/types.js.map +1 -0
  122. package/dist/core/index.d.ts +5 -0
  123. package/dist/core/index.js +8 -0
  124. package/dist/core/index.js.map +1 -0
  125. package/dist/core/parser.d.ts +84 -0
  126. package/dist/core/parser.js +250 -0
  127. package/dist/core/parser.js.map +1 -0
  128. package/dist/core-lib.d.ts +59 -0
  129. package/dist/core-lib.js +62 -0
  130. package/dist/core-lib.js.map +1 -0
  131. package/dist/index.d.ts +15 -0
  132. package/dist/index.js +20 -0
  133. package/dist/index.js.map +1 -0
  134. package/dist/languages/index.d.ts +11 -0
  135. package/dist/languages/index.js +14 -0
  136. package/dist/languages/index.js.map +1 -0
  137. package/dist/languages/plugins/base.d.ts +44 -0
  138. package/dist/languages/plugins/base.js +82 -0
  139. package/dist/languages/plugins/base.js.map +1 -0
  140. package/dist/languages/plugins/index.d.ts +14 -0
  141. package/dist/languages/plugins/index.js +25 -0
  142. package/dist/languages/plugins/index.js.map +1 -0
  143. package/dist/languages/plugins/java.d.ts +49 -0
  144. package/dist/languages/plugins/java.js +402 -0
  145. package/dist/languages/plugins/java.js.map +1 -0
  146. package/dist/languages/plugins/javascript.d.ts +48 -0
  147. package/dist/languages/plugins/javascript.js +445 -0
  148. package/dist/languages/plugins/javascript.js.map +1 -0
  149. package/dist/languages/plugins/python.d.ts +47 -0
  150. package/dist/languages/plugins/python.js +480 -0
  151. package/dist/languages/plugins/python.js.map +1 -0
  152. package/dist/languages/plugins/rust.d.ts +47 -0
  153. package/dist/languages/plugins/rust.js +405 -0
  154. package/dist/languages/plugins/rust.js.map +1 -0
  155. package/dist/languages/registry.d.ts +30 -0
  156. package/dist/languages/registry.js +80 -0
  157. package/dist/languages/registry.js.map +1 -0
  158. package/dist/languages/types.d.ts +184 -0
  159. package/dist/languages/types.js +8 -0
  160. package/dist/languages/types.js.map +1 -0
  161. package/dist/resolution/cross-file.d.ts +146 -0
  162. package/dist/resolution/cross-file.js +439 -0
  163. package/dist/resolution/cross-file.js.map +1 -0
  164. package/dist/resolution/index.d.ts +12 -0
  165. package/dist/resolution/index.js +10 -0
  166. package/dist/resolution/index.js.map +1 -0
  167. package/dist/resolution/symbol-table.d.ts +136 -0
  168. package/dist/resolution/symbol-table.js +336 -0
  169. package/dist/resolution/symbol-table.js.map +1 -0
  170. package/dist/resolution/type-hierarchy.d.ts +124 -0
  171. package/dist/resolution/type-hierarchy.js +515 -0
  172. package/dist/resolution/type-hierarchy.js.map +1 -0
  173. package/dist/types/config.d.ts +45 -0
  174. package/dist/types/config.js +5 -0
  175. package/dist/types/config.js.map +1 -0
  176. package/dist/types/index.d.ts +392 -0
  177. package/dist/types/index.js +7 -0
  178. package/dist/types/index.js.map +1 -0
  179. package/dist/utils/logger.d.ts +85 -0
  180. package/dist/utils/logger.js +198 -0
  181. package/dist/utils/logger.js.map +1 -0
  182. package/dist/wasm/tree-sitter-java.wasm +0 -0
  183. package/dist/wasm/tree-sitter-javascript.wasm +0 -0
  184. package/dist/wasm/tree-sitter-python.wasm +0 -0
  185. package/dist/wasm/tree-sitter-rust.wasm +0 -0
  186. package/dist/wasm/web-tree-sitter.wasm +0 -0
  187. package/docs/SPEC.md +1021 -0
  188. package/examples/browser-example.html +610 -0
  189. package/examples/node-example.ts +215 -0
  190. package/package.json +107 -0
  191. package/wasm/tree-sitter-java.wasm +0 -0
  192. package/wasm/tree-sitter-javascript.wasm +0 -0
  193. package/wasm/tree-sitter-python.wasm +0 -0
  194. package/wasm/tree-sitter-rust.wasm +0 -0
@@ -0,0 +1,715 @@
1
+ {
2
+ "sinks": [
3
+ {
4
+ "method": "FileInputStream",
5
+ "type": "path_traversal",
6
+ "cwe": "CWE-022",
7
+ "severity": "high",
8
+ "arg_positions": [
9
+ 0
10
+ ],
11
+ "note": "Direct file access with user input"
12
+ },
13
+ {
14
+ "method": "FileOutputStream",
15
+ "type": "path_traversal",
16
+ "cwe": "CWE-022",
17
+ "severity": "high",
18
+ "arg_positions": [
19
+ 0
20
+ ]
21
+ },
22
+ {
23
+ "method": "FileReader",
24
+ "type": "path_traversal",
25
+ "cwe": "CWE-022",
26
+ "severity": "high",
27
+ "arg_positions": [
28
+ 0
29
+ ]
30
+ },
31
+ {
32
+ "method": "FileWriter",
33
+ "type": "path_traversal",
34
+ "cwe": "CWE-022",
35
+ "severity": "high",
36
+ "arg_positions": [
37
+ 0
38
+ ]
39
+ },
40
+ {
41
+ "method": "RandomAccessFile",
42
+ "type": "path_traversal",
43
+ "cwe": "CWE-022",
44
+ "severity": "high",
45
+ "arg_positions": [
46
+ 0
47
+ ]
48
+ },
49
+ {
50
+ "method": "File",
51
+ "type": "path_traversal",
52
+ "cwe": "CWE-022",
53
+ "severity": "medium",
54
+ "arg_positions": [
55
+ 0
56
+ ],
57
+ "note": "File object creation - check usage"
58
+ },
59
+ {
60
+ "method": "delete",
61
+ "class": "File",
62
+ "type": "path_traversal",
63
+ "cwe": "CWE-022",
64
+ "severity": "high"
65
+ },
66
+ {
67
+ "method": "renameTo",
68
+ "class": "File",
69
+ "type": "path_traversal",
70
+ "cwe": "CWE-022",
71
+ "severity": "high"
72
+ },
73
+ {
74
+ "method": "newInputStream",
75
+ "class": "Files",
76
+ "type": "path_traversal",
77
+ "cwe": "CWE-022",
78
+ "severity": "high",
79
+ "arg_positions": [
80
+ 0
81
+ ]
82
+ },
83
+ {
84
+ "method": "newOutputStream",
85
+ "class": "Files",
86
+ "type": "path_traversal",
87
+ "cwe": "CWE-022",
88
+ "severity": "high",
89
+ "arg_positions": [
90
+ 0
91
+ ]
92
+ },
93
+ {
94
+ "method": "newBufferedReader",
95
+ "class": "Files",
96
+ "type": "path_traversal",
97
+ "cwe": "CWE-022",
98
+ "severity": "high",
99
+ "arg_positions": [
100
+ 0
101
+ ]
102
+ },
103
+ {
104
+ "method": "newBufferedWriter",
105
+ "class": "Files",
106
+ "type": "path_traversal",
107
+ "cwe": "CWE-022",
108
+ "severity": "high",
109
+ "arg_positions": [
110
+ 0
111
+ ]
112
+ },
113
+ {
114
+ "method": "readAllBytes",
115
+ "class": "Files",
116
+ "type": "path_traversal",
117
+ "cwe": "CWE-022",
118
+ "severity": "high",
119
+ "arg_positions": [
120
+ 0
121
+ ]
122
+ },
123
+ {
124
+ "method": "readAllLines",
125
+ "class": "Files",
126
+ "type": "path_traversal",
127
+ "cwe": "CWE-022",
128
+ "severity": "high",
129
+ "arg_positions": [
130
+ 0
131
+ ]
132
+ },
133
+ {
134
+ "method": "write",
135
+ "class": "Files",
136
+ "type": "path_traversal",
137
+ "cwe": "CWE-022",
138
+ "severity": "high",
139
+ "arg_positions": [
140
+ 0
141
+ ]
142
+ },
143
+ {
144
+ "method": "delete",
145
+ "class": "Files",
146
+ "type": "path_traversal",
147
+ "cwe": "CWE-022",
148
+ "severity": "high",
149
+ "arg_positions": [
150
+ 0
151
+ ]
152
+ },
153
+ {
154
+ "method": "move",
155
+ "class": "Files",
156
+ "type": "path_traversal",
157
+ "cwe": "CWE-022",
158
+ "severity": "high",
159
+ "arg_positions": [
160
+ 0,
161
+ 1
162
+ ]
163
+ },
164
+ {
165
+ "method": "copy",
166
+ "class": "Files",
167
+ "type": "path_traversal",
168
+ "cwe": "CWE-022",
169
+ "severity": "high",
170
+ "arg_positions": [
171
+ 0,
172
+ 1
173
+ ]
174
+ },
175
+ {
176
+ "method": "createFile",
177
+ "class": "Files",
178
+ "type": "path_traversal",
179
+ "cwe": "CWE-022",
180
+ "severity": "high",
181
+ "arg_positions": [
182
+ 0
183
+ ]
184
+ },
185
+ {
186
+ "method": "createDirectory",
187
+ "class": "Files",
188
+ "type": "path_traversal",
189
+ "cwe": "CWE-022",
190
+ "severity": "high",
191
+ "arg_positions": [
192
+ 0
193
+ ]
194
+ },
195
+ {
196
+ "method": "createDirectories",
197
+ "class": "Files",
198
+ "type": "path_traversal",
199
+ "cwe": "CWE-022",
200
+ "severity": "high",
201
+ "arg_positions": [
202
+ 0
203
+ ]
204
+ },
205
+ {
206
+ "method": "resolve",
207
+ "class": "Path",
208
+ "type": "path_traversal",
209
+ "cwe": "CWE-022",
210
+ "severity": "high",
211
+ "arg_positions": [
212
+ 0
213
+ ],
214
+ "note": "Path resolution with user input"
215
+ },
216
+ {
217
+ "method": "resolveSibling",
218
+ "class": "Path",
219
+ "type": "path_traversal",
220
+ "cwe": "CWE-022",
221
+ "severity": "high",
222
+ "arg_positions": [
223
+ 0
224
+ ]
225
+ },
226
+ {
227
+ "method": "toFile",
228
+ "class": "Path",
229
+ "type": "path_traversal",
230
+ "cwe": "CWE-022",
231
+ "severity": "medium",
232
+ "note": "Path to File conversion"
233
+ },
234
+ {
235
+ "method": "getInputStream",
236
+ "class": "Resource",
237
+ "type": "path_traversal",
238
+ "cwe": "CWE-022",
239
+ "severity": "high",
240
+ "note": "Resource input stream access"
241
+ },
242
+ {
243
+ "method": "getFile",
244
+ "class": "Resource",
245
+ "type": "path_traversal",
246
+ "cwe": "CWE-022",
247
+ "severity": "high"
248
+ },
249
+ {
250
+ "method": "getURL",
251
+ "class": "Resource",
252
+ "type": "path_traversal",
253
+ "cwe": "CWE-022",
254
+ "severity": "medium"
255
+ },
256
+ {
257
+ "method": "resolveURI",
258
+ "class": "SourceResolver",
259
+ "type": "path_traversal",
260
+ "cwe": "CWE-022",
261
+ "severity": "high",
262
+ "arg_positions": [
263
+ 0
264
+ ],
265
+ "note": "Cocoon URI resolution with user input"
266
+ },
267
+ {
268
+ "method": "resolve",
269
+ "class": "SourceResolver",
270
+ "type": "path_traversal",
271
+ "cwe": "CWE-022",
272
+ "severity": "high",
273
+ "arg_positions": [
274
+ 0
275
+ ]
276
+ },
277
+ {
278
+ "method": "getResource",
279
+ "class": "ClassLoader",
280
+ "type": "path_traversal",
281
+ "cwe": "CWE-022",
282
+ "severity": "high",
283
+ "arg_positions": [
284
+ 0
285
+ ],
286
+ "note": "ClassLoader resource path traversal"
287
+ },
288
+ {
289
+ "method": "getResourceAsStream",
290
+ "class": "ClassLoader",
291
+ "type": "path_traversal",
292
+ "cwe": "CWE-022",
293
+ "severity": "high",
294
+ "arg_positions": [
295
+ 0
296
+ ]
297
+ },
298
+ {
299
+ "method": "getResources",
300
+ "class": "ClassLoader",
301
+ "type": "path_traversal",
302
+ "cwe": "CWE-022",
303
+ "severity": "high",
304
+ "arg_positions": [
305
+ 0
306
+ ]
307
+ },
308
+ {
309
+ "method": "getResource",
310
+ "class": "Class",
311
+ "type": "path_traversal",
312
+ "cwe": "CWE-022",
313
+ "severity": "high",
314
+ "arg_positions": [
315
+ 0
316
+ ],
317
+ "note": "Class.getResource() path traversal"
318
+ },
319
+ {
320
+ "method": "getResourceAsStream",
321
+ "class": "Class",
322
+ "type": "path_traversal",
323
+ "cwe": "CWE-022",
324
+ "severity": "high",
325
+ "arg_positions": [
326
+ 0
327
+ ]
328
+ },
329
+ {
330
+ "method": "getResource",
331
+ "class": "ResourceLoader",
332
+ "type": "path_traversal",
333
+ "cwe": "CWE-022",
334
+ "severity": "high",
335
+ "arg_positions": [
336
+ 0
337
+ ],
338
+ "note": "Spring ResourceLoader"
339
+ },
340
+ {
341
+ "method": "PathResource",
342
+ "type": "path_traversal",
343
+ "cwe": "CWE-022",
344
+ "severity": "high",
345
+ "arg_positions": [
346
+ 0
347
+ ],
348
+ "note": "Spring PathResource constructor"
349
+ },
350
+ {
351
+ "method": "FileSystemResource",
352
+ "type": "path_traversal",
353
+ "cwe": "CWE-022",
354
+ "severity": "high",
355
+ "arg_positions": [
356
+ 0
357
+ ]
358
+ },
359
+ {
360
+ "method": "readFileToString",
361
+ "class": "FileUtils",
362
+ "type": "path_traversal",
363
+ "cwe": "CWE-022",
364
+ "severity": "high",
365
+ "arg_positions": [
366
+ 0
367
+ ]
368
+ },
369
+ {
370
+ "method": "writeStringToFile",
371
+ "class": "FileUtils",
372
+ "type": "path_traversal",
373
+ "cwe": "CWE-022",
374
+ "severity": "high",
375
+ "arg_positions": [
376
+ 0
377
+ ]
378
+ },
379
+ {
380
+ "method": "copyFile",
381
+ "class": "FileUtils",
382
+ "type": "path_traversal",
383
+ "cwe": "CWE-022",
384
+ "severity": "high",
385
+ "arg_positions": [
386
+ 0,
387
+ 1
388
+ ]
389
+ },
390
+ {
391
+ "method": "deleteQuietly",
392
+ "class": "FileUtils",
393
+ "type": "path_traversal",
394
+ "cwe": "CWE-022",
395
+ "severity": "high",
396
+ "arg_positions": [
397
+ 0
398
+ ]
399
+ },
400
+ {
401
+ "method": "getResourceAsStream",
402
+ "type": "path_traversal",
403
+ "cwe": "CWE-22",
404
+ "severity": "high",
405
+ "arg_positions": [
406
+ 0
407
+ ],
408
+ "note": "Auto-mined from CVE analysis"
409
+ },
410
+ {
411
+ "method": "getResource",
412
+ "type": "path_traversal",
413
+ "cwe": "CWE-22",
414
+ "severity": "high",
415
+ "arg_positions": [
416
+ 0
417
+ ],
418
+ "note": "Auto-mined from CVE analysis"
419
+ },
420
+ {
421
+ "method": "File",
422
+ "class": "constructor",
423
+ "type": "path_traversal",
424
+ "cwe": "CWE-22",
425
+ "severity": "high",
426
+ "arg_positions": [
427
+ 0
428
+ ],
429
+ "note": "Auto-mined from CVE analysis"
430
+ },
431
+ {
432
+ "method": "openStream",
433
+ "class": "URL",
434
+ "type": "path_traversal",
435
+ "cwe": "CWE-22",
436
+ "severity": "high",
437
+ "arg_positions": [
438
+ 0
439
+ ],
440
+ "note": "Auto-mined from CVE analysis"
441
+ },
442
+ {
443
+ "method": "resolve",
444
+ "type": "path_traversal",
445
+ "cwe": "CWE-22",
446
+ "severity": "high",
447
+ "arg_positions": [
448
+ 0
449
+ ],
450
+ "note": "Auto-mined from CVE analysis"
451
+ },
452
+ {
453
+ "method": "parse",
454
+ "class": "DocumentBuilder",
455
+ "type": "path_traversal",
456
+ "cwe": "CWE-22",
457
+ "severity": "high",
458
+ "arg_positions": [
459
+ 0
460
+ ],
461
+ "note": "Auto-mined from CVE analysis"
462
+ },
463
+ {
464
+ "method": "compile",
465
+ "class": "XPath",
466
+ "type": "path_traversal",
467
+ "cwe": "CWE-22",
468
+ "severity": "high",
469
+ "arg_positions": [
470
+ 0
471
+ ],
472
+ "note": "Auto-mined from CVE analysis"
473
+ },
474
+ {
475
+ "method": "FileOutputStream",
476
+ "class": "constructor",
477
+ "type": "path_traversal",
478
+ "cwe": "CWE-22",
479
+ "severity": "high",
480
+ "arg_positions": [
481
+ 0
482
+ ],
483
+ "note": "Auto-mined from CVE analysis"
484
+ },
485
+ {
486
+ "method": "normalize",
487
+ "type": "path_traversal",
488
+ "cwe": "CWE-22",
489
+ "severity": "high",
490
+ "arg_positions": [
491
+ 0
492
+ ],
493
+ "note": "Auto-mined from CVE analysis"
494
+ },
495
+ {
496
+ "method": "FileInputStream",
497
+ "class": "constructor",
498
+ "type": "path_traversal",
499
+ "cwe": "CWE-22",
500
+ "severity": "high",
501
+ "arg_positions": [
502
+ 0
503
+ ],
504
+ "note": "Auto-mined from CVE analysis"
505
+ },
506
+ {
507
+ "method": "FileReader",
508
+ "class": "constructor",
509
+ "type": "path_traversal",
510
+ "cwe": "CWE-22",
511
+ "severity": "high",
512
+ "arg_positions": [
513
+ 0
514
+ ],
515
+ "note": "Auto-mined from CVE analysis"
516
+ },
517
+ {
518
+ "method": "println",
519
+ "class": "PrintWriter",
520
+ "type": "path_traversal",
521
+ "cwe": "CWE-22",
522
+ "severity": "high",
523
+ "arg_positions": [
524
+ 0
525
+ ],
526
+ "note": "Auto-mined from CVE analysis"
527
+ },
528
+ {
529
+ "method": "write",
530
+ "type": "path_traversal",
531
+ "cwe": "CWE-22",
532
+ "severity": "high",
533
+ "arg_positions": [
534
+ 0
535
+ ],
536
+ "note": "Auto-mined from CVE analysis"
537
+ },
538
+ {
539
+ "method": "get",
540
+ "class": "Paths",
541
+ "type": "path_traversal",
542
+ "cwe": "CWE-22",
543
+ "severity": "high",
544
+ "arg_positions": [
545
+ 0
546
+ ],
547
+ "note": "Auto-mined from CVE analysis"
548
+ },
549
+ {
550
+ "method": "forName",
551
+ "class": "Class",
552
+ "type": "path_traversal",
553
+ "cwe": "CWE-22",
554
+ "severity": "high",
555
+ "arg_positions": [
556
+ 0
557
+ ],
558
+ "note": "Auto-mined from CVE analysis"
559
+ },
560
+ {
561
+ "method": "newInstance",
562
+ "type": "path_traversal",
563
+ "cwe": "CWE-22",
564
+ "severity": "high",
565
+ "arg_positions": [
566
+ 0
567
+ ],
568
+ "note": "Auto-mined from CVE analysis"
569
+ },
570
+ {
571
+ "method": "readObject",
572
+ "class": "ObjectInputStream",
573
+ "type": "path_traversal",
574
+ "cwe": "CWE-22",
575
+ "severity": "high",
576
+ "arg_positions": [
577
+ 0
578
+ ],
579
+ "note": "Auto-mined from CVE analysis"
580
+ },
581
+ {
582
+ "method": "execute",
583
+ "class": "Statement",
584
+ "type": "path_traversal",
585
+ "cwe": "CWE-22",
586
+ "severity": "high",
587
+ "arg_positions": [
588
+ 0
589
+ ],
590
+ "note": "Auto-mined from CVE analysis"
591
+ },
592
+ {
593
+ "method": "start",
594
+ "class": "ProcessBuilder",
595
+ "type": "path_traversal",
596
+ "cwe": "CWE-22",
597
+ "severity": "high",
598
+ "arg_positions": [
599
+ 0
600
+ ],
601
+ "note": "Auto-mined from CVE analysis"
602
+ },
603
+ {
604
+ "method": "print",
605
+ "class": "PrintWriter",
606
+ "type": "path_traversal",
607
+ "cwe": "CWE-22",
608
+ "severity": "high",
609
+ "arg_positions": [
610
+ 0
611
+ ],
612
+ "note": "Auto-mined from CVE analysis"
613
+ },
614
+ {
615
+ "method": "executeQuery",
616
+ "class": "Statement",
617
+ "type": "path_traversal",
618
+ "cwe": "CWE-22",
619
+ "severity": "high",
620
+ "arg_positions": [
621
+ 0
622
+ ],
623
+ "note": "Auto-mined from CVE analysis"
624
+ },
625
+ {
626
+ "method": "executeUpdate",
627
+ "class": "Statement",
628
+ "type": "path_traversal",
629
+ "cwe": "CWE-22",
630
+ "severity": "high",
631
+ "arg_positions": [
632
+ 0
633
+ ],
634
+ "note": "Auto-mined from CVE analysis"
635
+ },
636
+ {
637
+ "method": "child",
638
+ "class": "FilePath",
639
+ "type": "path_traversal",
640
+ "cwe": "CWE-022",
641
+ "severity": "high",
642
+ "arg_positions": [0],
643
+ "note": "Jenkins FilePath child resolution - CVE-2022-25174"
644
+ },
645
+ {
646
+ "method": "copyRecursiveTo",
647
+ "class": "FilePath",
648
+ "type": "path_traversal",
649
+ "cwe": "CWE-022",
650
+ "severity": "high",
651
+ "arg_positions": [0],
652
+ "note": "Jenkins FilePath copy - may traverse paths"
653
+ },
654
+ {
655
+ "method": "write",
656
+ "class": "FilePath",
657
+ "type": "path_traversal",
658
+ "cwe": "CWE-022",
659
+ "severity": "high",
660
+ "arg_positions": [0],
661
+ "note": "Jenkins FilePath write"
662
+ },
663
+ {
664
+ "method": "read",
665
+ "class": "FilePath",
666
+ "type": "path_traversal",
667
+ "cwe": "CWE-022",
668
+ "severity": "high",
669
+ "note": "Jenkins FilePath read"
670
+ },
671
+ {
672
+ "method": "list",
673
+ "class": "FilePath",
674
+ "type": "path_traversal",
675
+ "cwe": "CWE-022",
676
+ "severity": "medium",
677
+ "arg_positions": [0],
678
+ "note": "Jenkins FilePath directory listing"
679
+ },
680
+ {
681
+ "method": "deleteRecursive",
682
+ "class": "FilePath",
683
+ "type": "path_traversal",
684
+ "cwe": "CWE-022",
685
+ "severity": "high",
686
+ "note": "Jenkins FilePath recursive delete"
687
+ }
688
+ ],
689
+ "sanitizers": [
690
+ {
691
+ "method": "getCanonicalPath",
692
+ "class": "File",
693
+ "removes": [
694
+ "path_traversal"
695
+ ],
696
+ "note": "Safe if followed by startsWith check"
697
+ },
698
+ {
699
+ "method": "normalize",
700
+ "class": "Paths",
701
+ "removes": [
702
+ "path_traversal"
703
+ ],
704
+ "note": "Normalizes path removing .. sequences"
705
+ },
706
+ {
707
+ "method": "startsWith",
708
+ "class": "String",
709
+ "removes": [
710
+ "path_traversal"
711
+ ],
712
+ "note": "Whitelist validation"
713
+ }
714
+ ]
715
+ }