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,727 @@
1
+ {
2
+ "sinks": [
3
+ {
4
+ "method": "sendError",
5
+ "class": "HttpServletResponse",
6
+ "type": "xss",
7
+ "cwe": "CWE-079",
8
+ "severity": "high",
9
+ "arg_positions": [
10
+ 1
11
+ ],
12
+ "note": "XSS in error message (CWE-81)"
13
+ },
14
+ {
15
+ "method": "setStatus",
16
+ "class": "HttpServletResponse",
17
+ "type": "xss",
18
+ "cwe": "CWE-079",
19
+ "severity": "medium",
20
+ "arg_positions": [
21
+ 1
22
+ ]
23
+ },
24
+ {
25
+ "method": "sendRedirect",
26
+ "class": "HttpServletResponse",
27
+ "type": "xss",
28
+ "cwe": "CWE-079",
29
+ "severity": "high",
30
+ "arg_positions": [
31
+ 0
32
+ ],
33
+ "note": "Open redirect leading to XSS"
34
+ },
35
+ {
36
+ "method": "setHeader",
37
+ "class": "HttpServletResponse",
38
+ "type": "xss",
39
+ "cwe": "CWE-079",
40
+ "severity": "high",
41
+ "arg_positions": [
42
+ 1
43
+ ],
44
+ "note": "HTTP header injection / XSS in header"
45
+ },
46
+ {
47
+ "method": "addHeader",
48
+ "class": "HttpServletResponse",
49
+ "type": "xss",
50
+ "cwe": "CWE-079",
51
+ "severity": "high",
52
+ "arg_positions": [
53
+ 1
54
+ ]
55
+ },
56
+ {
57
+ "method": "getWriter",
58
+ "class": "HttpServletResponse",
59
+ "type": "xss",
60
+ "cwe": "CWE-079",
61
+ "severity": "high",
62
+ "note": "Returns PrintWriter - check what's written"
63
+ },
64
+ {
65
+ "method": "print",
66
+ "class": "PrintWriter",
67
+ "type": "xss",
68
+ "cwe": "CWE-079",
69
+ "severity": "high",
70
+ "arg_positions": [
71
+ 0
72
+ ],
73
+ "note": "Direct output to HTTP response"
74
+ },
75
+ {
76
+ "method": "println",
77
+ "class": "PrintWriter",
78
+ "type": "xss",
79
+ "cwe": "CWE-079",
80
+ "severity": "high",
81
+ "arg_positions": [
82
+ 0
83
+ ]
84
+ },
85
+ {
86
+ "method": "write",
87
+ "class": "PrintWriter",
88
+ "type": "xss",
89
+ "cwe": "CWE-079",
90
+ "severity": "high",
91
+ "arg_positions": [
92
+ 0
93
+ ]
94
+ },
95
+ {
96
+ "method": "printf",
97
+ "class": "PrintWriter",
98
+ "type": "xss",
99
+ "cwe": "CWE-079",
100
+ "severity": "high",
101
+ "arg_positions": [
102
+ 1
103
+ ]
104
+ },
105
+ {
106
+ "method": "format",
107
+ "class": "PrintWriter",
108
+ "type": "xss",
109
+ "cwe": "CWE-079",
110
+ "severity": "high",
111
+ "arg_positions": [
112
+ 1
113
+ ]
114
+ },
115
+ {
116
+ "method": "append",
117
+ "class": "PrintWriter",
118
+ "type": "xss",
119
+ "cwe": "CWE-079",
120
+ "severity": "high",
121
+ "arg_positions": [
122
+ 0
123
+ ]
124
+ },
125
+ {
126
+ "method": "getOutputStream",
127
+ "class": "HttpServletResponse",
128
+ "type": "xss",
129
+ "cwe": "CWE-079",
130
+ "severity": "medium"
131
+ },
132
+ {
133
+ "method": "print",
134
+ "class": "ServletOutputStream",
135
+ "type": "xss",
136
+ "cwe": "CWE-079",
137
+ "severity": "high",
138
+ "arg_positions": [
139
+ 0
140
+ ]
141
+ },
142
+ {
143
+ "method": "println",
144
+ "class": "ServletOutputStream",
145
+ "type": "xss",
146
+ "cwe": "CWE-079",
147
+ "severity": "high",
148
+ "arg_positions": [
149
+ 0
150
+ ]
151
+ },
152
+ {
153
+ "method": "print",
154
+ "class": "JspWriter",
155
+ "type": "xss",
156
+ "cwe": "CWE-079",
157
+ "severity": "high",
158
+ "arg_positions": [
159
+ 0
160
+ ]
161
+ },
162
+ {
163
+ "method": "println",
164
+ "class": "JspWriter",
165
+ "type": "xss",
166
+ "cwe": "CWE-079",
167
+ "severity": "high",
168
+ "arg_positions": [
169
+ 0
170
+ ]
171
+ },
172
+ {
173
+ "method": "write",
174
+ "class": "JspWriter",
175
+ "type": "xss",
176
+ "cwe": "CWE-079",
177
+ "severity": "high",
178
+ "arg_positions": [
179
+ 0
180
+ ]
181
+ },
182
+ {
183
+ "method": "ok",
184
+ "class": "ResponseEntity",
185
+ "type": "xss",
186
+ "cwe": "CWE-079",
187
+ "severity": "medium",
188
+ "arg_positions": [
189
+ 0
190
+ ],
191
+ "note": "Check if body contains unencoded user input"
192
+ },
193
+ {
194
+ "method": "body",
195
+ "class": "ResponseEntity$BodyBuilder",
196
+ "type": "xss",
197
+ "cwe": "CWE-079",
198
+ "severity": "medium",
199
+ "arg_positions": [
200
+ 0
201
+ ]
202
+ },
203
+ {
204
+ "annotation": "@ResponseBody",
205
+ "type": "xss",
206
+ "cwe": "CWE-079",
207
+ "severity": "medium",
208
+ "note": "Check return value encoding"
209
+ },
210
+ {
211
+ "method": "addAttribute",
212
+ "class": "Model",
213
+ "type": "xss",
214
+ "cwe": "CWE-079",
215
+ "severity": "medium",
216
+ "arg_positions": [
217
+ 1
218
+ ],
219
+ "note": "Check if used in unescaped JSP/Thymeleaf"
220
+ },
221
+ {
222
+ "method": "addAttribute",
223
+ "class": "ModelMap",
224
+ "type": "xss",
225
+ "cwe": "CWE-079",
226
+ "severity": "medium",
227
+ "arg_positions": [
228
+ 1
229
+ ]
230
+ },
231
+ {
232
+ "method": "put",
233
+ "class": "ModelMap",
234
+ "type": "xss",
235
+ "cwe": "CWE-079",
236
+ "severity": "medium",
237
+ "arg_positions": [
238
+ 1
239
+ ]
240
+ },
241
+ {
242
+ "method": "setAttribute",
243
+ "class": "HttpServletRequest",
244
+ "type": "xss",
245
+ "cwe": "CWE-079",
246
+ "severity": "low",
247
+ "arg_positions": [
248
+ 1
249
+ ],
250
+ "note": "Low risk unless forwarded to JSP"
251
+ },
252
+ {
253
+ "method": "append",
254
+ "class": "StringBuilder",
255
+ "type": "xss",
256
+ "cwe": "CWE-079",
257
+ "severity": "medium",
258
+ "arg_positions": [
259
+ 0
260
+ ],
261
+ "note": "Check if used for HTML and written to response"
262
+ },
263
+ {
264
+ "method": "append",
265
+ "class": "StringBuffer",
266
+ "type": "xss",
267
+ "cwe": "CWE-079",
268
+ "severity": "medium",
269
+ "arg_positions": [
270
+ 0
271
+ ]
272
+ },
273
+ {
274
+ "method": "put",
275
+ "class": "VelocityContext",
276
+ "type": "xss",
277
+ "cwe": "CWE-079",
278
+ "severity": "high",
279
+ "arg_positions": [
280
+ 1
281
+ ],
282
+ "note": "Velocity doesn't auto-escape by default"
283
+ },
284
+ {
285
+ "method": "setVariable",
286
+ "class": "Environment",
287
+ "type": "xss",
288
+ "cwe": "CWE-079",
289
+ "severity": "medium",
290
+ "arg_positions": [
291
+ 1
292
+ ]
293
+ },
294
+ {
295
+ "method": "Cookie",
296
+ "type": "xss",
297
+ "cwe": "CWE-079",
298
+ "severity": "low",
299
+ "arg_positions": [
300
+ 1
301
+ ],
302
+ "note": "Cookie value XSS - rare but possible"
303
+ },
304
+ {
305
+ "method": "setValue",
306
+ "class": "Cookie",
307
+ "type": "xss",
308
+ "cwe": "CWE-079",
309
+ "severity": "low",
310
+ "arg_positions": [
311
+ 0
312
+ ]
313
+ },
314
+ {
315
+ "method": "addJavascript",
316
+ "type": "xss",
317
+ "cwe": "CWE-079",
318
+ "severity": "critical",
319
+ "arg_positions": [
320
+ 0
321
+ ],
322
+ "note": "JavaScript context requires JS encoding"
323
+ },
324
+ {
325
+ "method": "setAttribute",
326
+ "class": "HttpSession",
327
+ "type": "xss",
328
+ "cwe": "CWE-079",
329
+ "severity": "high",
330
+ "arg_positions": [
331
+ 1
332
+ ],
333
+ "note": "Session attribute can be reflected in HTML"
334
+ },
335
+ {
336
+ "method": "putValue",
337
+ "class": "HttpSession",
338
+ "type": "xss",
339
+ "cwe": "CWE-079",
340
+ "severity": "high",
341
+ "arg_positions": [
342
+ 1
343
+ ]
344
+ },
345
+ {
346
+ "method": "setAttribute",
347
+ "class": "HttpServletRequest",
348
+ "type": "xss",
349
+ "cwe": "CWE-079",
350
+ "severity": "high",
351
+ "arg_positions": [
352
+ 1
353
+ ],
354
+ "note": "Request attribute reflection"
355
+ },
356
+ {
357
+ "method": "addAttribute",
358
+ "class": "Model",
359
+ "type": "xss",
360
+ "cwe": "CWE-079",
361
+ "severity": "high",
362
+ "arg_positions": [
363
+ 1
364
+ ],
365
+ "note": "Spring MVC model attribute XSS"
366
+ },
367
+ {
368
+ "method": "addAttribute",
369
+ "class": "ModelMap",
370
+ "type": "xss",
371
+ "cwe": "CWE-079",
372
+ "severity": "high",
373
+ "arg_positions": [
374
+ 1
375
+ ]
376
+ },
377
+ {
378
+ "method": "addObject",
379
+ "class": "ModelAndView",
380
+ "type": "xss",
381
+ "cwe": "CWE-079",
382
+ "severity": "high",
383
+ "arg_positions": [
384
+ 1
385
+ ]
386
+ },
387
+ {
388
+ "method": "getResource",
389
+ "type": "xss",
390
+ "cwe": "CWE-79",
391
+ "severity": "high",
392
+ "arg_positions": [
393
+ 0
394
+ ],
395
+ "note": "Auto-mined from CVE analysis"
396
+ },
397
+ {
398
+ "method": "compile",
399
+ "class": "XPath",
400
+ "type": "xss",
401
+ "cwe": "CWE-79",
402
+ "severity": "high",
403
+ "arg_positions": [
404
+ 0
405
+ ],
406
+ "note": "Auto-mined from CVE analysis"
407
+ },
408
+ {
409
+ "method": "write",
410
+ "type": "xss",
411
+ "cwe": "CWE-79",
412
+ "severity": "high",
413
+ "arg_positions": [
414
+ 0
415
+ ],
416
+ "note": "Auto-mined from CVE analysis"
417
+ },
418
+ {
419
+ "method": "newInstance",
420
+ "type": "xss",
421
+ "cwe": "CWE-79",
422
+ "severity": "high",
423
+ "arg_positions": [
424
+ 0
425
+ ],
426
+ "note": "Auto-mined from CVE analysis"
427
+ },
428
+ {
429
+ "method": "parse",
430
+ "class": "DocumentBuilder",
431
+ "type": "xss",
432
+ "cwe": "CWE-79",
433
+ "severity": "high",
434
+ "arg_positions": [
435
+ 0
436
+ ],
437
+ "note": "Auto-mined from CVE analysis"
438
+ },
439
+ {
440
+ "method": "execute",
441
+ "class": "WikiPlugin",
442
+ "type": "xss",
443
+ "cwe": "CWE-079",
444
+ "severity": "high",
445
+ "note": "Wiki plugin execution - may render HTML"
446
+ },
447
+ {
448
+ "method": "handleLinks",
449
+ "type": "xss",
450
+ "cwe": "CWE-079",
451
+ "severity": "high",
452
+ "note": "Wiki link rendering"
453
+ },
454
+ {
455
+ "method": "getString",
456
+ "class": "WysiwygEditingRenderer",
457
+ "type": "xss",
458
+ "cwe": "CWE-079",
459
+ "severity": "high",
460
+ "note": "Wiki WYSIWYG rendering"
461
+ },
462
+ {
463
+ "method": "printXMLElement",
464
+ "type": "xss",
465
+ "cwe": "CWE-079",
466
+ "severity": "high",
467
+ "note": "XML/HTML element output"
468
+ },
469
+ {
470
+ "method": "printXMLStartElement",
471
+ "type": "xss",
472
+ "cwe": "CWE-079",
473
+ "severity": "high",
474
+ "note": "XML/HTML start element output"
475
+ },
476
+ {
477
+ "method": "printRaw",
478
+ "type": "xss",
479
+ "cwe": "CWE-079",
480
+ "severity": "high",
481
+ "note": "Raw HTML output without encoding"
482
+ },
483
+ {
484
+ "method": "getValidInput",
485
+ "class": "DefaultValidator",
486
+ "type": "xss",
487
+ "cwe": "CWE-079",
488
+ "severity": "high",
489
+ "note": "ESAPI validator - may have bypass vulnerabilities"
490
+ },
491
+ {
492
+ "method": "getValidSafeHTML",
493
+ "class": "DefaultValidator",
494
+ "type": "xss",
495
+ "cwe": "CWE-079",
496
+ "severity": "high",
497
+ "note": "ESAPI HTML validator"
498
+ },
499
+ {
500
+ "method": "scan",
501
+ "class": "AntiSamyDOMScanner",
502
+ "type": "xss",
503
+ "cwe": "CWE-079",
504
+ "severity": "high",
505
+ "note": "AntiSamy HTML scanner"
506
+ },
507
+ {
508
+ "method": "scan",
509
+ "class": "AntiSamySAXScanner",
510
+ "type": "xss",
511
+ "cwe": "CWE-079",
512
+ "severity": "high",
513
+ "note": "AntiSamy SAX scanner"
514
+ },
515
+ {
516
+ "method": "startElement",
517
+ "class": "MagicSAXFilter",
518
+ "type": "xss",
519
+ "cwe": "CWE-079",
520
+ "severity": "high",
521
+ "note": "AntiSamy SAX filter"
522
+ },
523
+ {
524
+ "method": "decodeRedirectUri",
525
+ "type": "xss",
526
+ "cwe": "CWE-079",
527
+ "severity": "high",
528
+ "note": "Redirect URI decoding - potential XSS via open redirect"
529
+ },
530
+ {
531
+ "method": "getOrigin",
532
+ "class": "UriUtils",
533
+ "type": "xss",
534
+ "cwe": "CWE-079",
535
+ "severity": "high",
536
+ "note": "URI origin extraction"
537
+ },
538
+ {
539
+ "method": "isValid",
540
+ "class": "SafeHtmlValidator",
541
+ "type": "xss",
542
+ "cwe": "CWE-079",
543
+ "severity": "high",
544
+ "note": "Hibernate SafeHtml validator"
545
+ },
546
+ {
547
+ "method": "getFragmentAsDocument",
548
+ "type": "xss",
549
+ "cwe": "CWE-079",
550
+ "severity": "high",
551
+ "note": "HTML fragment parsing"
552
+ },
553
+ {
554
+ "method": "cleanAttributes",
555
+ "type": "xss",
556
+ "cwe": "CWE-079",
557
+ "severity": "high",
558
+ "note": "XWiki/HTML attribute sanitization - may have bypass"
559
+ },
560
+ {
561
+ "method": "printXMLElement",
562
+ "class": "XHTMLWikiPrinter",
563
+ "type": "xss",
564
+ "cwe": "CWE-079",
565
+ "severity": "high",
566
+ "note": "XWiki XHTML element output"
567
+ },
568
+ {
569
+ "method": "printXMLStartElement",
570
+ "class": "XHTMLWikiPrinter",
571
+ "type": "xss",
572
+ "cwe": "CWE-079",
573
+ "severity": "high",
574
+ "note": "XWiki XHTML start element output"
575
+ },
576
+ {
577
+ "method": "printXMLComment",
578
+ "class": "XMLWikiPrinter",
579
+ "type": "xss",
580
+ "cwe": "CWE-079",
581
+ "severity": "high",
582
+ "note": "XML comment output"
583
+ },
584
+ {
585
+ "method": "sanitize",
586
+ "class": "JsonSanitizer",
587
+ "type": "xss",
588
+ "cwe": "CWE-079",
589
+ "severity": "high",
590
+ "note": "Google JsonSanitizer - check for bypass CVEs"
591
+ },
592
+ {
593
+ "method": "validate",
594
+ "class": "SafeHtmlValidator",
595
+ "type": "xss",
596
+ "cwe": "CWE-079",
597
+ "severity": "high",
598
+ "note": "Hibernate SafeHtml - CVE-2019-10219 bypass"
599
+ },
600
+ {
601
+ "method": "clean",
602
+ "class": "HtmlCleaner",
603
+ "type": "xss",
604
+ "cwe": "CWE-079",
605
+ "severity": "high",
606
+ "note": "HtmlCleaner sanitization"
607
+ },
608
+ {
609
+ "method": "clean",
610
+ "class": "Cleaner",
611
+ "type": "xss",
612
+ "cwe": "CWE-079",
613
+ "severity": "high",
614
+ "note": "Jsoup cleaner"
615
+ },
616
+ {
617
+ "method": "save",
618
+ "class": "JobGroupController",
619
+ "type": "xss",
620
+ "cwe": "CWE-079",
621
+ "severity": "high",
622
+ "note": "XXL-Job controller - CVE-2020-29204"
623
+ },
624
+ {
625
+ "method": "parseText",
626
+ "class": "Jsoup",
627
+ "type": "xss",
628
+ "cwe": "CWE-079",
629
+ "severity": "high",
630
+ "note": "Jsoup HTML parsing"
631
+ }
632
+ ],
633
+ "sanitizers": [
634
+ {
635
+ "method": "forHtml",
636
+ "class": "Encode",
637
+ "removes": [
638
+ "xss"
639
+ ],
640
+ "note": "OWASP HTML entity encoding"
641
+ },
642
+ {
643
+ "method": "forHtmlAttribute",
644
+ "class": "Encode",
645
+ "removes": [
646
+ "xss"
647
+ ]
648
+ },
649
+ {
650
+ "method": "forJavaScript",
651
+ "class": "Encode",
652
+ "removes": [
653
+ "xss"
654
+ ]
655
+ },
656
+ {
657
+ "method": "forHtmlContent",
658
+ "class": "Encode",
659
+ "removes": [
660
+ "xss"
661
+ ]
662
+ },
663
+ {
664
+ "method": "escapeHtml4",
665
+ "class": "StringEscapeUtils",
666
+ "removes": [
667
+ "xss"
668
+ ]
669
+ },
670
+ {
671
+ "method": "escapeHtml3",
672
+ "class": "StringEscapeUtils",
673
+ "removes": [
674
+ "xss"
675
+ ]
676
+ },
677
+ {
678
+ "method": "escapeEcmaScript",
679
+ "class": "StringEscapeUtils",
680
+ "removes": [
681
+ "xss"
682
+ ]
683
+ },
684
+ {
685
+ "method": "escapeXml",
686
+ "class": "StringEscapeUtils",
687
+ "removes": [
688
+ "xss"
689
+ ]
690
+ },
691
+ {
692
+ "method": "htmlEscape",
693
+ "class": "HtmlUtils",
694
+ "removes": [
695
+ "xss"
696
+ ]
697
+ },
698
+ {
699
+ "method": "htmlEscapeDecimal",
700
+ "class": "HtmlUtils",
701
+ "removes": [
702
+ "xss"
703
+ ]
704
+ },
705
+ {
706
+ "method": "htmlEscapeHex",
707
+ "class": "HtmlUtils",
708
+ "removes": [
709
+ "xss"
710
+ ]
711
+ },
712
+ {
713
+ "tag": "c:out",
714
+ "removes": [
715
+ "xss"
716
+ ],
717
+ "note": "JSTL c:out auto-escapes by default"
718
+ },
719
+ {
720
+ "attribute": "th:text",
721
+ "removes": [
722
+ "xss"
723
+ ],
724
+ "note": "Thymeleaf th:text auto-escapes"
725
+ }
726
+ ]
727
+ }