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,519 @@
1
+ {
2
+ "sources": [
3
+ {
4
+ "method": "readLine",
5
+ "class": "BufferedReader",
6
+ "type": "io_input",
7
+ "severity": "high",
8
+ "return_tainted": true,
9
+ "note": "Line read from file, network, or console"
10
+ },
11
+ {
12
+ "method": "read",
13
+ "class": "BufferedReader",
14
+ "type": "io_input",
15
+ "severity": "high",
16
+ "return_tainted": true,
17
+ "note": "Characters read from input"
18
+ },
19
+ {
20
+ "method": "read",
21
+ "class": "InputStreamReader",
22
+ "type": "io_input",
23
+ "severity": "high",
24
+ "return_tainted": true,
25
+ "note": "Characters from input stream"
26
+ },
27
+ {
28
+ "method": "readLine",
29
+ "class": "DataInputStream",
30
+ "type": "io_input",
31
+ "severity": "high",
32
+ "return_tainted": true,
33
+ "note": "Line from data input stream"
34
+ },
35
+ {
36
+ "method": "readUTF",
37
+ "class": "DataInputStream",
38
+ "type": "io_input",
39
+ "severity": "high",
40
+ "return_tainted": true,
41
+ "note": "UTF string from data input stream"
42
+ },
43
+ {
44
+ "method": "nextLine",
45
+ "class": "Scanner",
46
+ "type": "io_input",
47
+ "severity": "high",
48
+ "return_tainted": true,
49
+ "note": "Line from scanner input"
50
+ },
51
+ {
52
+ "method": "next",
53
+ "class": "Scanner",
54
+ "type": "io_input",
55
+ "severity": "high",
56
+ "return_tainted": true,
57
+ "note": "Token from scanner input"
58
+ },
59
+ {
60
+ "method": "readLine",
61
+ "class": "Console",
62
+ "type": "console_input",
63
+ "severity": "high",
64
+ "return_tainted": true,
65
+ "note": "Line from console input"
66
+ },
67
+ {
68
+ "method": "readPassword",
69
+ "class": "Console",
70
+ "type": "console_input",
71
+ "severity": "high",
72
+ "return_tainted": true,
73
+ "note": "Password from console input"
74
+ },
75
+ {
76
+ "method": "getenv",
77
+ "class": "System",
78
+ "type": "env_input",
79
+ "severity": "high",
80
+ "return_tainted": true,
81
+ "note": "Environment variable - can be attacker-controlled"
82
+ },
83
+ {
84
+ "method": "getProperty",
85
+ "class": "System",
86
+ "type": "env_input",
87
+ "severity": "medium",
88
+ "return_tainted": true,
89
+ "note": "System property"
90
+ },
91
+ {
92
+ "method": "getProperty",
93
+ "class": "Properties",
94
+ "type": "env_input",
95
+ "severity": "high",
96
+ "return_tainted": true,
97
+ "note": "Property value from properties file"
98
+ },
99
+ {
100
+ "method": "getInputStream",
101
+ "class": "Socket",
102
+ "type": "network_input",
103
+ "severity": "high",
104
+ "return_tainted": true,
105
+ "note": "Input stream from network socket"
106
+ },
107
+ {
108
+ "method": "openStream",
109
+ "class": "URL",
110
+ "type": "network_input",
111
+ "severity": "high",
112
+ "return_tainted": true,
113
+ "note": "Stream from URL connection"
114
+ },
115
+ {
116
+ "method": "getString",
117
+ "class": "ResultSet",
118
+ "type": "database_input",
119
+ "severity": "high",
120
+ "return_tainted": true,
121
+ "note": "String from database result"
122
+ },
123
+ {
124
+ "method": "getObject",
125
+ "class": "ResultSet",
126
+ "type": "database_input",
127
+ "severity": "high",
128
+ "return_tainted": true,
129
+ "note": "Object from database result"
130
+ },
131
+ {
132
+ "method": "readAllLines",
133
+ "class": "Files",
134
+ "type": "file_input",
135
+ "severity": "high",
136
+ "return_tainted": true,
137
+ "note": "Lines from file"
138
+ },
139
+ {
140
+ "method": "readString",
141
+ "class": "Files",
142
+ "type": "file_input",
143
+ "severity": "high",
144
+ "return_tainted": true,
145
+ "note": "Content from file"
146
+ },
147
+ {
148
+ "method": "readAllBytes",
149
+ "class": "Files",
150
+ "type": "file_input",
151
+ "severity": "high",
152
+ "return_tainted": true,
153
+ "note": "Bytes from file"
154
+ },
155
+ {
156
+ "method": "getArgs",
157
+ "type": "cli_input",
158
+ "severity": "high",
159
+ "return_tainted": true,
160
+ "note": "Command line arguments"
161
+ },
162
+ {
163
+ "method": "get",
164
+ "class": "Map",
165
+ "type": "plugin_param",
166
+ "severity": "high",
167
+ "return_tainted": true,
168
+ "note": "Map.get() - often used for plugin/config parameters from user input"
169
+ },
170
+ {
171
+ "method": "get",
172
+ "class": "HashMap",
173
+ "type": "plugin_param",
174
+ "severity": "high",
175
+ "return_tainted": true,
176
+ "note": "HashMap.get() - often used for plugin parameters"
177
+ },
178
+ {
179
+ "method": "get",
180
+ "class": "LinkedHashMap",
181
+ "type": "plugin_param",
182
+ "severity": "high",
183
+ "return_tainted": true,
184
+ "note": "LinkedHashMap.get() for config parameters"
185
+ },
186
+ {
187
+ "method": "get",
188
+ "class": "TreeMap",
189
+ "type": "plugin_param",
190
+ "severity": "high",
191
+ "return_tainted": true,
192
+ "note": "TreeMap.get() for config parameters"
193
+ },
194
+ {
195
+ "method": "get",
196
+ "class": "ConcurrentHashMap",
197
+ "type": "plugin_param",
198
+ "severity": "high",
199
+ "return_tainted": true,
200
+ "note": "ConcurrentHashMap.get() for config parameters"
201
+ },
202
+ {
203
+ "method": "get",
204
+ "class": "Hashtable",
205
+ "type": "plugin_param",
206
+ "severity": "high",
207
+ "return_tainted": true,
208
+ "note": "Hashtable.get() for config parameters"
209
+ },
210
+ {
211
+ "method": "getAttribute",
212
+ "class": "HttpSession",
213
+ "type": "session_data",
214
+ "severity": "high",
215
+ "return_tainted": true,
216
+ "note": "Session attribute - may contain user-controlled data"
217
+ },
218
+ {
219
+ "method": "getAttribute",
220
+ "class": "HttpServletRequest",
221
+ "type": "request_data",
222
+ "severity": "high",
223
+ "return_tainted": true,
224
+ "note": "Request attribute - may contain user-controlled data"
225
+ },
226
+ {
227
+ "method": "getAttribute",
228
+ "class": "ServletContext",
229
+ "type": "context_data",
230
+ "severity": "medium",
231
+ "return_tainted": true,
232
+ "note": "Context attribute"
233
+ },
234
+ {
235
+ "method": "contentAsString",
236
+ "type": "file_input",
237
+ "severity": "high",
238
+ "return_tainted": true,
239
+ "note": "File content as string - may contain untrusted data"
240
+ },
241
+ {
242
+ "method": "readAsString",
243
+ "type": "file_input",
244
+ "severity": "high",
245
+ "return_tainted": true,
246
+ "note": "File content as string"
247
+ },
248
+ {
249
+ "method": "readToString",
250
+ "type": "file_input",
251
+ "severity": "high",
252
+ "return_tainted": true,
253
+ "note": "File content as string"
254
+ },
255
+ {
256
+ "method": "getText",
257
+ "class": "File",
258
+ "type": "file_input",
259
+ "severity": "high",
260
+ "return_tainted": true,
261
+ "note": "File content as text (Groovy)"
262
+ },
263
+ {
264
+ "method": "text",
265
+ "class": "File",
266
+ "type": "file_input",
267
+ "severity": "high",
268
+ "return_tainted": true,
269
+ "note": "File content as text (Groovy property)"
270
+ },
271
+ {
272
+ "method": "getContent",
273
+ "class": "WikiDocument",
274
+ "type": "file_input",
275
+ "severity": "high",
276
+ "return_tainted": true,
277
+ "note": "XWiki document content - user-controlled wiki text"
278
+ },
279
+ {
280
+ "method": "getRenderedContent",
281
+ "class": "WikiDocument",
282
+ "type": "file_input",
283
+ "severity": "high",
284
+ "return_tainted": true,
285
+ "note": "XWiki rendered content"
286
+ },
287
+ {
288
+ "method": "getStringValue",
289
+ "class": "BaseObject",
290
+ "type": "file_input",
291
+ "severity": "high",
292
+ "return_tainted": true,
293
+ "note": "XWiki object property value"
294
+ },
295
+ {
296
+ "method": "getFilename",
297
+ "class": "Part",
298
+ "type": "file_input",
299
+ "severity": "high",
300
+ "return_tainted": true,
301
+ "note": "Multipart file upload filename"
302
+ },
303
+ {
304
+ "method": "getSubmittedFileName",
305
+ "class": "Part",
306
+ "type": "file_input",
307
+ "severity": "high",
308
+ "return_tainted": true,
309
+ "note": "Multipart file upload filename"
310
+ },
311
+ {
312
+ "method": "getOriginalFilename",
313
+ "class": "MultipartFile",
314
+ "type": "file_input",
315
+ "severity": "high",
316
+ "return_tainted": true,
317
+ "note": "Spring multipart file original filename"
318
+ },
319
+ {
320
+ "method": "getFileName",
321
+ "class": "MimePart",
322
+ "type": "file_input",
323
+ "severity": "high",
324
+ "return_tainted": true,
325
+ "note": "Email attachment filename - CVE-2018-8041 pattern"
326
+ },
327
+ {
328
+ "method": "getFileName",
329
+ "class": "BodyPart",
330
+ "type": "file_input",
331
+ "severity": "high",
332
+ "return_tainted": true,
333
+ "note": "Email attachment filename"
334
+ },
335
+ {
336
+ "method": "getFileName",
337
+ "class": "MimeBodyPart",
338
+ "type": "file_input",
339
+ "severity": "high",
340
+ "return_tainted": true,
341
+ "note": "MIME attachment filename"
342
+ },
343
+ {
344
+ "method": "getName",
345
+ "class": "FileItem",
346
+ "type": "file_input",
347
+ "severity": "high",
348
+ "return_tainted": true,
349
+ "note": "Apache Commons FileUpload filename"
350
+ },
351
+ {
352
+ "method": "param",
353
+ "class": "RoutingContext",
354
+ "type": "http_param",
355
+ "severity": "high",
356
+ "return_tainted": true,
357
+ "note": "Vert.x routing context parameter"
358
+ },
359
+ {
360
+ "method": "pathParam",
361
+ "class": "RoutingContext",
362
+ "type": "http_path",
363
+ "severity": "high",
364
+ "return_tainted": true,
365
+ "note": "Vert.x path parameter"
366
+ },
367
+ {
368
+ "method": "queryParam",
369
+ "class": "RoutingContext",
370
+ "type": "http_param",
371
+ "severity": "high",
372
+ "return_tainted": true,
373
+ "note": "Vert.x query parameter"
374
+ },
375
+ {
376
+ "method": "getBodyAsString",
377
+ "class": "RoutingContext",
378
+ "type": "http_body",
379
+ "severity": "high",
380
+ "return_tainted": true,
381
+ "note": "Vert.x request body"
382
+ },
383
+ {
384
+ "method": "getBodyAsJson",
385
+ "class": "RoutingContext",
386
+ "type": "http_body",
387
+ "severity": "high",
388
+ "return_tainted": true,
389
+ "note": "Vert.x JSON request body"
390
+ },
391
+ {
392
+ "method": "path",
393
+ "class": "HttpServerRequest",
394
+ "type": "http_path",
395
+ "severity": "high",
396
+ "return_tainted": true,
397
+ "note": "Vert.x request path"
398
+ },
399
+ {
400
+ "method": "uri",
401
+ "class": "HttpServerRequest",
402
+ "type": "http_path",
403
+ "severity": "high",
404
+ "return_tainted": true,
405
+ "note": "Vert.x request URI"
406
+ },
407
+ {
408
+ "method": "getParam",
409
+ "class": "HttpServerRequest",
410
+ "type": "http_param",
411
+ "severity": "high",
412
+ "return_tainted": true,
413
+ "note": "Vert.x HTTP request parameter"
414
+ },
415
+ {
416
+ "method": "getHeader",
417
+ "class": "HttpServerRequest",
418
+ "type": "http_header",
419
+ "severity": "high",
420
+ "return_tainted": true,
421
+ "note": "Vert.x HTTP request header"
422
+ },
423
+ {
424
+ "method": "getJsonObject",
425
+ "class": "Message",
426
+ "type": "network_input",
427
+ "severity": "high",
428
+ "return_tainted": true,
429
+ "note": "Vert.x event bus message body"
430
+ },
431
+ {
432
+ "method": "body",
433
+ "class": "Message",
434
+ "type": "network_input",
435
+ "severity": "high",
436
+ "return_tainted": true,
437
+ "note": "Vert.x event bus message body"
438
+ },
439
+ {
440
+ "method": "normalizedPath",
441
+ "type": "http_path",
442
+ "severity": "high",
443
+ "return_tainted": true,
444
+ "note": "Normalized path still contains user input - CVE-2018-12542 pattern"
445
+ },
446
+ {
447
+ "method": "toAbsolutePath",
448
+ "class": "Path",
449
+ "type": "file_input",
450
+ "severity": "high",
451
+ "return_tainted": true,
452
+ "note": "Path resolution with user input"
453
+ },
454
+ {
455
+ "method": "resolve",
456
+ "class": "Path",
457
+ "type": "file_input",
458
+ "severity": "high",
459
+ "return_tainted": true,
460
+ "note": "Path resolution with user input"
461
+ },
462
+ {
463
+ "method": "resolveSibling",
464
+ "class": "Path",
465
+ "type": "file_input",
466
+ "severity": "high",
467
+ "return_tainted": true,
468
+ "note": "Path resolution with user input"
469
+ },
470
+ {
471
+ "method": "fromXML",
472
+ "class": "XStream",
473
+ "type": "deserialization_input",
474
+ "severity": "critical",
475
+ "return_tainted": true,
476
+ "note": "XStream deserialization - untrusted XML input"
477
+ },
478
+ {
479
+ "method": "unmarshal",
480
+ "class": "XStream",
481
+ "type": "deserialization_input",
482
+ "severity": "critical",
483
+ "return_tainted": true,
484
+ "note": "XStream unmarshalling - untrusted input"
485
+ },
486
+ {
487
+ "method": "startElement",
488
+ "class": "ContentHandler",
489
+ "type": "html_input",
490
+ "severity": "high",
491
+ "return_tainted": true,
492
+ "note": "SAX element start - receives untrusted HTML/XML element"
493
+ },
494
+ {
495
+ "method": "scan",
496
+ "class": "AntiSamy",
497
+ "type": "html_input",
498
+ "severity": "high",
499
+ "return_tainted": true,
500
+ "note": "AntiSamy HTML scanning"
501
+ },
502
+ {
503
+ "method": "getCleanHTML",
504
+ "class": "CleanResults",
505
+ "type": "html_input",
506
+ "severity": "high",
507
+ "return_tainted": true,
508
+ "note": "AntiSamy cleaned HTML output - may still have bypass"
509
+ },
510
+ {
511
+ "method": "realClass",
512
+ "class": "Mapper",
513
+ "type": "deserialization_input",
514
+ "severity": "critical",
515
+ "return_tainted": true,
516
+ "note": "XStream class mapping from untrusted element name"
517
+ }
518
+ ]
519
+ }
@@ -0,0 +1,99 @@
1
+ {
2
+ "sources": [
3
+ {
4
+ "method": "getInputStream",
5
+ "class": "Socket",
6
+ "type": "network_input",
7
+ "severity": "high",
8
+ "return_tainted": true,
9
+ "note": "Raw socket input stream - untrusted network data"
10
+ },
11
+ {
12
+ "method": "getInputStream",
13
+ "class": "ServerSocket",
14
+ "type": "network_input",
15
+ "severity": "high",
16
+ "return_tainted": true,
17
+ "note": "Socket input from accepted connection"
18
+ },
19
+ {
20
+ "method": "getEntity",
21
+ "class": "HttpResponse",
22
+ "type": "http_response",
23
+ "severity": "medium",
24
+ "return_tainted": true,
25
+ "note": "HTTP response entity - could be attacker-controlled (SSRF)"
26
+ },
27
+ {
28
+ "method": "bodyToMono",
29
+ "class": "ClientResponse",
30
+ "type": "http_response",
31
+ "severity": "medium",
32
+ "return_tainted": true,
33
+ "note": "WebClient response body"
34
+ },
35
+ {
36
+ "method": "bodyToFlux",
37
+ "class": "ClientResponse",
38
+ "type": "http_response",
39
+ "severity": "medium",
40
+ "return_tainted": true,
41
+ "note": "WebClient response body (streaming)"
42
+ },
43
+ {
44
+ "method": "getResponseBodyAsString",
45
+ "class": "RestTemplate",
46
+ "type": "http_response",
47
+ "severity": "medium",
48
+ "return_tainted": true,
49
+ "note": "RestTemplate response body"
50
+ },
51
+ {
52
+ "method": "getText",
53
+ "class": "TextMessage",
54
+ "type": "jms_message",
55
+ "severity": "high",
56
+ "return_tainted": true,
57
+ "note": "JMS text message body - could be attacker-controlled"
58
+ },
59
+ {
60
+ "method": "getBody",
61
+ "class": "Message",
62
+ "type": "jms_message",
63
+ "severity": "high",
64
+ "return_tainted": true,
65
+ "note": "JMS message body"
66
+ },
67
+ {
68
+ "method": "getStringProperty",
69
+ "class": "Message",
70
+ "type": "jms_message",
71
+ "severity": "high",
72
+ "return_tainted": true,
73
+ "note": "JMS message property"
74
+ },
75
+ {
76
+ "annotation": "@Remote",
77
+ "type": "rmi",
78
+ "severity": "high",
79
+ "param_tainted": true,
80
+ "note": "RMI remote method parameters - from untrusted client"
81
+ },
82
+ {
83
+ "method": "getText",
84
+ "class": "Session",
85
+ "type": "websocket",
86
+ "severity": "high",
87
+ "return_tainted": true,
88
+ "note": "WebSocket message text"
89
+ },
90
+ {
91
+ "method": "getBasicRemote",
92
+ "class": "Session",
93
+ "type": "websocket",
94
+ "severity": "high",
95
+ "return_tainted": true,
96
+ "note": "WebSocket remote endpoint"
97
+ }
98
+ ]
99
+ }