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,339 @@
1
+ {
2
+ "name": "Rust Sinks",
3
+ "description": "Taint sinks for Rust web frameworks and standard library",
4
+ "sinks": [
5
+ {
6
+ "method": "query",
7
+ "class": "sqlx",
8
+ "type": "sql_injection",
9
+ "cwe": "CWE-89",
10
+ "severity": "critical",
11
+ "tainted_args": [0],
12
+ "note": "sqlx raw query execution"
13
+ },
14
+ {
15
+ "method": "query_as",
16
+ "class": "sqlx",
17
+ "type": "sql_injection",
18
+ "cwe": "CWE-89",
19
+ "severity": "critical",
20
+ "tainted_args": [0],
21
+ "note": "sqlx query_as with raw SQL"
22
+ },
23
+ {
24
+ "method": "query_scalar",
25
+ "class": "sqlx",
26
+ "type": "sql_injection",
27
+ "cwe": "CWE-89",
28
+ "severity": "critical",
29
+ "tainted_args": [0],
30
+ "note": "sqlx query_scalar with raw SQL"
31
+ },
32
+ {
33
+ "method": "execute",
34
+ "class": "sqlx",
35
+ "type": "sql_injection",
36
+ "cwe": "CWE-89",
37
+ "severity": "critical",
38
+ "tainted_args": [0],
39
+ "note": "sqlx execute with raw SQL"
40
+ },
41
+ {
42
+ "method": "fetch_one",
43
+ "class": "sqlx",
44
+ "type": "sql_injection",
45
+ "cwe": "CWE-89",
46
+ "severity": "critical",
47
+ "tainted_args": [0],
48
+ "note": "sqlx fetch_one with raw SQL"
49
+ },
50
+ {
51
+ "method": "fetch_all",
52
+ "class": "sqlx",
53
+ "type": "sql_injection",
54
+ "cwe": "CWE-89",
55
+ "severity": "critical",
56
+ "tainted_args": [0],
57
+ "note": "sqlx fetch_all with raw SQL"
58
+ },
59
+ {
60
+ "method": "arg",
61
+ "class": "Command",
62
+ "type": "command_injection",
63
+ "cwe": "CWE-78",
64
+ "severity": "critical",
65
+ "tainted_args": [0],
66
+ "note": "Command argument with user input"
67
+ },
68
+ {
69
+ "method": "args",
70
+ "class": "Command",
71
+ "type": "command_injection",
72
+ "cwe": "CWE-78",
73
+ "severity": "critical",
74
+ "tainted_args": [0],
75
+ "note": "Command arguments with user input"
76
+ },
77
+ {
78
+ "method": "new",
79
+ "class": "Command",
80
+ "type": "command_injection",
81
+ "cwe": "CWE-78",
82
+ "severity": "critical",
83
+ "tainted_args": [0],
84
+ "note": "Command creation with user-controlled program"
85
+ },
86
+ {
87
+ "method": "spawn",
88
+ "class": "Command",
89
+ "type": "command_injection",
90
+ "cwe": "CWE-78",
91
+ "severity": "critical",
92
+ "tainted_args": [0],
93
+ "note": "Command spawn"
94
+ },
95
+ {
96
+ "method": "output",
97
+ "class": "Command",
98
+ "type": "command_injection",
99
+ "cwe": "CWE-78",
100
+ "severity": "critical",
101
+ "tainted_args": [],
102
+ "note": "Command output execution"
103
+ },
104
+ {
105
+ "method": "get",
106
+ "class": "reqwest",
107
+ "type": "ssrf",
108
+ "cwe": "CWE-918",
109
+ "severity": "high",
110
+ "tainted_args": [0],
111
+ "note": "HTTP GET request with user-controlled URL"
112
+ },
113
+ {
114
+ "method": "post",
115
+ "class": "reqwest",
116
+ "type": "ssrf",
117
+ "cwe": "CWE-918",
118
+ "severity": "high",
119
+ "tainted_args": [0],
120
+ "note": "HTTP POST request with user-controlled URL"
121
+ },
122
+ {
123
+ "method": "put",
124
+ "class": "reqwest",
125
+ "type": "ssrf",
126
+ "cwe": "CWE-918",
127
+ "severity": "high",
128
+ "tainted_args": [0],
129
+ "note": "HTTP PUT request with user-controlled URL"
130
+ },
131
+ {
132
+ "method": "delete",
133
+ "class": "reqwest",
134
+ "type": "ssrf",
135
+ "cwe": "CWE-918",
136
+ "severity": "high",
137
+ "tainted_args": [0],
138
+ "note": "HTTP DELETE request with user-controlled URL"
139
+ },
140
+ {
141
+ "method": "get",
142
+ "class": "Client",
143
+ "type": "ssrf",
144
+ "cwe": "CWE-918",
145
+ "severity": "high",
146
+ "tainted_args": [0],
147
+ "note": "HTTP client GET with user-controlled URL"
148
+ },
149
+ {
150
+ "method": "post",
151
+ "class": "Client",
152
+ "type": "ssrf",
153
+ "cwe": "CWE-918",
154
+ "severity": "high",
155
+ "tainted_args": [0],
156
+ "note": "HTTP client POST with user-controlled URL"
157
+ },
158
+ {
159
+ "method": "send",
160
+ "class": "Client",
161
+ "type": "ssrf",
162
+ "cwe": "CWE-918",
163
+ "severity": "high",
164
+ "tainted_args": [0],
165
+ "note": "HTTP client send request"
166
+ },
167
+ {
168
+ "method": "body",
169
+ "class": "HttpResponse",
170
+ "type": "xss",
171
+ "cwe": "CWE-79",
172
+ "severity": "high",
173
+ "tainted_args": [0],
174
+ "note": "Actix-web response body with user input"
175
+ },
176
+ {
177
+ "method": "body",
178
+ "class": "HttpResponseBuilder",
179
+ "type": "xss",
180
+ "cwe": "CWE-79",
181
+ "severity": "high",
182
+ "tainted_args": [0],
183
+ "note": "Actix-web response builder body"
184
+ },
185
+ {
186
+ "method": "json",
187
+ "class": "HttpResponse",
188
+ "type": "xss",
189
+ "cwe": "CWE-79",
190
+ "severity": "medium",
191
+ "tainted_args": [0],
192
+ "note": "JSON response (lower risk)"
193
+ },
194
+ {
195
+ "method": "read_to_string",
196
+ "class": "fs",
197
+ "type": "path_traversal",
198
+ "cwe": "CWE-22",
199
+ "severity": "high",
200
+ "tainted_args": [0],
201
+ "note": "File read with user-controlled path"
202
+ },
203
+ {
204
+ "method": "read",
205
+ "class": "fs",
206
+ "type": "path_traversal",
207
+ "cwe": "CWE-22",
208
+ "severity": "high",
209
+ "tainted_args": [0],
210
+ "note": "File read with user-controlled path"
211
+ },
212
+ {
213
+ "method": "write",
214
+ "class": "fs",
215
+ "type": "path_traversal",
216
+ "cwe": "CWE-22",
217
+ "severity": "high",
218
+ "tainted_args": [0],
219
+ "note": "File write with user-controlled path"
220
+ },
221
+ {
222
+ "method": "create",
223
+ "class": "File",
224
+ "type": "path_traversal",
225
+ "cwe": "CWE-22",
226
+ "severity": "high",
227
+ "tainted_args": [0],
228
+ "note": "File creation with user-controlled path"
229
+ },
230
+ {
231
+ "method": "open",
232
+ "class": "File",
233
+ "type": "path_traversal",
234
+ "cwe": "CWE-22",
235
+ "severity": "high",
236
+ "tainted_args": [0],
237
+ "note": "File open with user-controlled path"
238
+ },
239
+ {
240
+ "method": "remove_file",
241
+ "class": "fs",
242
+ "type": "path_traversal",
243
+ "cwe": "CWE-22",
244
+ "severity": "high",
245
+ "tainted_args": [0],
246
+ "note": "File deletion with user-controlled path"
247
+ },
248
+ {
249
+ "method": "remove_dir",
250
+ "class": "fs",
251
+ "type": "path_traversal",
252
+ "cwe": "CWE-22",
253
+ "severity": "high",
254
+ "tainted_args": [0],
255
+ "note": "Directory deletion with user-controlled path"
256
+ },
257
+ {
258
+ "method": "remove_dir_all",
259
+ "class": "fs",
260
+ "type": "path_traversal",
261
+ "cwe": "CWE-22",
262
+ "severity": "critical",
263
+ "tainted_args": [0],
264
+ "note": "Recursive directory deletion with user-controlled path"
265
+ },
266
+ {
267
+ "method": "from_str",
268
+ "class": "serde_yaml",
269
+ "type": "deserialization",
270
+ "cwe": "CWE-502",
271
+ "severity": "high",
272
+ "tainted_args": [0],
273
+ "note": "YAML deserialization of untrusted data"
274
+ },
275
+ {
276
+ "method": "from_reader",
277
+ "class": "serde_yaml",
278
+ "type": "deserialization",
279
+ "cwe": "CWE-502",
280
+ "severity": "high",
281
+ "tainted_args": [0],
282
+ "note": "YAML deserialization from reader"
283
+ },
284
+ {
285
+ "method": "from_str",
286
+ "class": "serde_json",
287
+ "type": "deserialization",
288
+ "cwe": "CWE-502",
289
+ "severity": "medium",
290
+ "tainted_args": [0],
291
+ "note": "JSON deserialization (lower risk than YAML)"
292
+ },
293
+ {
294
+ "method": "from_slice",
295
+ "class": "serde_json",
296
+ "type": "deserialization",
297
+ "cwe": "CWE-502",
298
+ "severity": "medium",
299
+ "tainted_args": [0],
300
+ "note": "JSON deserialization from bytes"
301
+ },
302
+ {
303
+ "method": "join",
304
+ "class": "Path",
305
+ "type": "path_traversal",
306
+ "cwe": "CWE-22",
307
+ "severity": "high",
308
+ "tainted_args": [0],
309
+ "note": "Path join with user input (doesn't prevent traversal)"
310
+ },
311
+ {
312
+ "method": "new",
313
+ "class": "Path",
314
+ "type": "path_traversal",
315
+ "cwe": "CWE-22",
316
+ "severity": "high",
317
+ "tainted_args": [0],
318
+ "note": "Path creation with user input"
319
+ },
320
+ {
321
+ "method": "new",
322
+ "class": "PathBuf",
323
+ "type": "path_traversal",
324
+ "cwe": "CWE-22",
325
+ "severity": "high",
326
+ "tainted_args": [0],
327
+ "note": "PathBuf creation with user input"
328
+ },
329
+ {
330
+ "method": "push",
331
+ "class": "PathBuf",
332
+ "type": "path_traversal",
333
+ "cwe": "CWE-22",
334
+ "severity": "high",
335
+ "tainted_args": [0],
336
+ "note": "PathBuf push with user input"
337
+ }
338
+ ]
339
+ }
@@ -0,0 +1,233 @@
1
+ {
2
+ "sinks": [
3
+ {
4
+ "method": "createNativeQuery",
5
+ "class": "EntityManager",
6
+ "type": "sql_injection",
7
+ "cwe": "CWE-89",
8
+ "severity": "critical",
9
+ "arg_positions": [
10
+ 0
11
+ ]
12
+ },
13
+ {
14
+ "method": "createQuery",
15
+ "class": "EntityManager",
16
+ "type": "sql_injection",
17
+ "cwe": "CWE-89",
18
+ "severity": "high",
19
+ "arg_positions": [
20
+ 0
21
+ ],
22
+ "note": "HQL injection if string concat used"
23
+ },
24
+ {
25
+ "method": "executeQuery",
26
+ "class": "Statement",
27
+ "type": "sql_injection",
28
+ "cwe": "CWE-89",
29
+ "severity": "critical",
30
+ "arg_positions": [
31
+ 0
32
+ ]
33
+ },
34
+ {
35
+ "method": "execute",
36
+ "class": "Statement",
37
+ "type": "sql_injection",
38
+ "cwe": "CWE-89",
39
+ "severity": "critical",
40
+ "arg_positions": [
41
+ 0
42
+ ]
43
+ },
44
+ {
45
+ "method": "executeUpdate",
46
+ "class": "Statement",
47
+ "type": "sql_injection",
48
+ "cwe": "CWE-89",
49
+ "severity": "critical",
50
+ "arg_positions": [
51
+ 0
52
+ ]
53
+ },
54
+ {
55
+ "method": "addBatch",
56
+ "class": "Statement",
57
+ "type": "sql_injection",
58
+ "cwe": "CWE-89",
59
+ "severity": "critical",
60
+ "arg_positions": [
61
+ 0
62
+ ]
63
+ },
64
+ {
65
+ "method": "query",
66
+ "class": "JdbcTemplate",
67
+ "type": "sql_injection",
68
+ "cwe": "CWE-89",
69
+ "severity": "critical",
70
+ "arg_positions": [
71
+ 0
72
+ ]
73
+ },
74
+ {
75
+ "method": "queryForObject",
76
+ "class": "JdbcTemplate",
77
+ "type": "sql_injection",
78
+ "cwe": "CWE-89",
79
+ "severity": "critical",
80
+ "arg_positions": [
81
+ 0
82
+ ]
83
+ },
84
+ {
85
+ "method": "queryForList",
86
+ "class": "JdbcTemplate",
87
+ "type": "sql_injection",
88
+ "cwe": "CWE-89",
89
+ "severity": "critical",
90
+ "arg_positions": [
91
+ 0
92
+ ]
93
+ },
94
+ {
95
+ "method": "update",
96
+ "class": "JdbcTemplate",
97
+ "type": "sql_injection",
98
+ "cwe": "CWE-89",
99
+ "severity": "critical",
100
+ "arg_positions": [
101
+ 0
102
+ ]
103
+ },
104
+ {
105
+ "method": "execute",
106
+ "class": "JdbcTemplate",
107
+ "type": "sql_injection",
108
+ "cwe": "CWE-89",
109
+ "severity": "critical",
110
+ "arg_positions": [
111
+ 0
112
+ ]
113
+ },
114
+ {
115
+ "method": "queryForRowSet",
116
+ "class": "JdbcTemplate",
117
+ "type": "sql_injection",
118
+ "cwe": "CWE-89",
119
+ "severity": "critical",
120
+ "arg_positions": [
121
+ 0
122
+ ]
123
+ },
124
+ {
125
+ "method": "queryForMap",
126
+ "class": "JdbcTemplate",
127
+ "type": "sql_injection",
128
+ "cwe": "CWE-89",
129
+ "severity": "critical",
130
+ "arg_positions": [
131
+ 0
132
+ ]
133
+ },
134
+ {
135
+ "method": "batchUpdate",
136
+ "class": "JdbcTemplate",
137
+ "type": "sql_injection",
138
+ "cwe": "CWE-89",
139
+ "severity": "critical",
140
+ "arg_positions": [
141
+ 0
142
+ ]
143
+ },
144
+ {
145
+ "method": "File",
146
+ "class": "constructor",
147
+ "type": "sql_injection",
148
+ "cwe": "CWE-89",
149
+ "severity": "critical",
150
+ "arg_positions": [
151
+ 0
152
+ ],
153
+ "note": "Auto-mined from CVE analysis"
154
+ },
155
+ {
156
+ "method": "FileInputStream",
157
+ "class": "constructor",
158
+ "type": "sql_injection",
159
+ "cwe": "CWE-89",
160
+ "severity": "critical",
161
+ "arg_positions": [
162
+ 0
163
+ ],
164
+ "note": "Auto-mined from CVE analysis"
165
+ },
166
+ {
167
+ "method": "getResource",
168
+ "type": "sql_injection",
169
+ "cwe": "CWE-89",
170
+ "severity": "critical",
171
+ "arg_positions": [
172
+ 0
173
+ ],
174
+ "note": "Auto-mined from CVE analysis"
175
+ },
176
+ {
177
+ "method": "openConnection",
178
+ "class": "URL",
179
+ "type": "sql_injection",
180
+ "cwe": "CWE-89",
181
+ "severity": "critical",
182
+ "arg_positions": [
183
+ 0
184
+ ],
185
+ "note": "Auto-mined from CVE analysis"
186
+ },
187
+ {
188
+ "method": "openStream",
189
+ "class": "URL",
190
+ "type": "sql_injection",
191
+ "cwe": "CWE-89",
192
+ "severity": "critical",
193
+ "arg_positions": [
194
+ 0
195
+ ],
196
+ "note": "Auto-mined from CVE analysis"
197
+ },
198
+ {
199
+ "method": "forName",
200
+ "class": "Class",
201
+ "type": "sql_injection",
202
+ "cwe": "CWE-89",
203
+ "severity": "critical",
204
+ "arg_positions": [
205
+ 0
206
+ ],
207
+ "note": "Auto-mined from CVE analysis"
208
+ }
209
+ ],
210
+ "sanitizers": [
211
+ {
212
+ "method": "prepareStatement",
213
+ "class": "Connection",
214
+ "removes": [
215
+ "sql_injection"
216
+ ],
217
+ "note": "Safe if parameters are bound with setX methods"
218
+ },
219
+ {
220
+ "method": "setParameter",
221
+ "class": "Query",
222
+ "removes": [
223
+ "sql_injection"
224
+ ]
225
+ },
226
+ {
227
+ "annotation": "@Param",
228
+ "removes": [
229
+ "sql_injection"
230
+ ]
231
+ }
232
+ ]
233
+ }