-
Notifications
You must be signed in to change notification settings - Fork 0
/
snyk_test.json
677 lines (677 loc) · 41.8 KB
/
snyk_test.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
{
"vulnerabilities": [
{
"CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:H/RL:O/RC:C",
"alternativeIds": [],
"creationTime": "2016-12-25T16:51:51Z",
"credit": [
"Alvaro Munoz"
],
"cvssScore": 7.3,
"description": "## Overview\n\n[commons-beanutils:commons-beanutils](https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils) provides an easy-to-use but flexible wrapper around reflection and introspection.\n\n\nAffected versions of this package are vulnerable to Arbitrary Code Execution.\nIt does not suppress the class property, which allows remote attackers to manipulate the `ClassLoader` and execute arbitrary code via the class parameter, as demonstrated by the passing of this parameter to the `getClass` method of the `ActionForm` object in Struts 1.\n\n## Details\nSerialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like _Remote Method Invocation (RMI)_, _Java Management Extension (JMX)_, _Java Messaging System (JMS)_, _Action Message Format (AMF)_, _Java Server Faces (JSF) ViewState_, etc.\r\n\r\n \r\n\r\n_Deserialization of untrusted data_ ([CWE-502](https://cwe.mitre.org/data/definitions/502.html)), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.\r\n\r\n \r\n\r\nJava deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a [popular library (Apache Commons Collection)](https://snyk.io/vuln/SNYK-JAVA-COMMONSCOLLECTIONS-30078). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.\r\n\r\n \r\n\r\nAn attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.\r\n\r\n \r\n\r\n> Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).\r\n\r\n- Apache Blog\r\n\r\n \r\n\r\nThe vulnerability, also know as _Mad Gadget_\r\n\r\n> Mad Gadget is one of the most pernicious vulnerabilities we’ve seen. By merely existing on the Java classpath, seven “gadget” classes in Apache Commons Collections (versions 3.0, 3.1, 3.2, 3.2.1, and 4.0) make object deserialization for the entire JVM process Turing complete with an exec function. Since many business applications use object deserialization to send messages across the network, it would be like hiring a bank teller who was trained to hand over all the money in the vault if asked to do so politely, and then entrusting that teller with the key. The only thing that would keep a bank safe in such a circumstance is that most people wouldn’t consider asking such a question.\r\n\r\n- Google\n\n## Remediation\n\nUpgrade `commons-beanutils:commons-beanutils` to version 1.9.2 or higher.\n\n\n## References\n\n- [Alvaro Munoz Blog](http://h30499.www3.hp.com/t5/HP-Security-Research-Blog/Protect-your-Struts1-applications/ba-p/6463188#.U2J7xeaSxro)\n\n- [Exploit - ExploitDB](https://exploit-db.com/exploits/41690)\n\n- [GitHub Commit](https://github.com/apache/commons-beanutils/pull/7/commits/2780a77600e6428b730e3a5197b7c5baf1c4cca0)\n\n- [Jira Issue](https://issues.apache.org/jira/browse/BEANUTILS-463)\n\n- [Redhat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=1091938)\n",
"disclosureTime": "2014-05-01T16:51:51Z",
"exploit": "High",
"fixedIn": [
"1.9.2"
],
"functions": [],
"functions_new": [],
"id": "SNYK-JAVA-COMMONSBEANUTILS-30077",
"identifiers": {
"CVE": [
"CVE-2014-0114"
],
"CWE": [
"CWE-20"
]
},
"language": "java",
"mavenModuleName": {
"artifactId": "commons-beanutils",
"groupId": "commons-beanutils"
},
"modificationTime": "2019-07-19T08:44:29.622229Z",
"moduleName": "commons-beanutils:commons-beanutils",
"packageManager": "maven",
"packageName": "commons-beanutils:commons-beanutils",
"patches": [],
"publicationTime": "2014-05-01T16:51:51Z",
"references": [
{
"title": "Alvaro Munoz Blog",
"url": "http://h30499.www3.hp.com/t5/HP-Security-Research-Blog/Protect-your-Struts1-applications/ba-p/6463188%23.U2J7xeaSxro"
},
{
"title": "Exploit - ExploitDB",
"url": "https://exploit-db.com/exploits/41690"
},
{
"title": "GitHub Commit",
"url": "https://github.com/apache/commons-beanutils/pull/7/commits/2780a77600e6428b730e3a5197b7c5baf1c4cca0"
},
{
"title": "Jira Issue",
"url": "https://issues.apache.org/jira/browse/BEANUTILS-463"
},
{
"title": "Redhat Bugzilla",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=1091938"
}
],
"semver": {
"vulnerable": [
"[1.8.0,1.9.2)"
]
},
"severity": "high",
"title": "Arbitrary Code Execution",
"isPinnable": false,
"from": [
"eu.clarin.cmdi:VirtualCollectionRegistry@1.3.0-SNAPSHOT",
"de.uni_leipzig.asv:clarin.webservices.pidservices2@2.1.0",
"net.sf.json-lib:json-lib@2.4",
"commons-beanutils:commons-beanutils@1.8.0"
],
"upgradePath": [],
"isUpgradable": false,
"isPatchable": false,
"name": "commons-beanutils:commons-beanutils",
"version": "1.8.0"
},
{
"CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O",
"alternativeIds": [],
"creationTime": "2016-12-25T16:51:56Z",
"credit": [
"Unknown"
],
"cvssScore": 9.8,
"description": "## Overview\n\n[commons-collections:commons-collections](https://mvnrepository.com/artifact/commons-collections/commons-collections) is a library which contains types that extend and augment the Java Collections Framework.\n\n\nAffected versions of this package are vulnerable to Deserialization of Untrusted Data.\nIt is possible to execute arbitrary Java code with the `InvokerTransformer` serializable collections . The `sun.reflect.annotation.AnnotationInvocationHandler#readObject` method invokes `#entrySet` and `#get` on a deserialized collection. If an attacker has to ability to send serialized data (JMX, RMI, EJB) to an application using the `common-collections` library, it is possible to combine the aforementioned methods to execute arbitrary code on the application.\n\n## Details\nSerialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like _Remote Method Invocation (RMI)_, _Java Management Extension (JMX)_, _Java Messaging System (JMS)_, _Action Message Format (AMF)_, _Java Server Faces (JSF) ViewState_, etc.\r\n\r\n \r\n\r\n_Deserialization of untrusted data_ ([CWE-502](https://cwe.mitre.org/data/definitions/502.html)), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.\r\n\r\n \r\n\r\nJava deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a [popular library (Apache Commons Collection)](https://snyk.io/vuln/SNYK-JAVA-COMMONSCOLLECTIONS-30078). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.\r\n\r\n \r\n\r\nAn attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.\r\n\r\n \r\n\r\n> Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).\r\n\r\n- Apache Blog\r\n\r\n \r\n\r\nThe vulnerability, also know as _Mad Gadget_\r\n\r\n> Mad Gadget is one of the most pernicious vulnerabilities we’ve seen. By merely existing on the Java classpath, seven “gadget” classes in Apache Commons Collections (versions 3.0, 3.1, 3.2, 3.2.1, and 4.0) make object deserialization for the entire JVM process Turing complete with an exec function. Since many business applications use object deserialization to send messages across the network, it would be like hiring a bank teller who was trained to hand over all the money in the vault if asked to do so politely, and then entrusting that teller with the key. The only thing that would keep a bank safe in such a circumstance is that most people wouldn’t consider asking such a question.\r\n\r\n- Google\n\n## Remediation\n\nUpgrade `commons-collections:commons-collections` to version 3.2.2 or higher.\n\n\n## References\n\n- [FoxGloveSecurity Blog](http://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/)\n\n- [GitHub Commit](https://github.com/apache/commons-collections/commit/e585cd0433ae4cfbc56e58572b9869bd0c86b611)\n\n- [Jira Issue](https://issues.apache.org/jira/browse/COLLECTIONS-580)\n",
"disclosureTime": "2015-11-06T16:51:56Z",
"exploit": "Functional",
"fixedIn": [
"3.2.2"
],
"functions": [
{
"functionId": {
"className": "InvokerTransformer",
"filePath": "org/apache/commons/collections/functors/InvokerTransformer.java",
"functionName": "transform"
},
"version": [
"[3,3.2.2)"
]
}
],
"functions_new": [
{
"functionId": {
"className": "org.apache.commons.collections.functors.InvokerTransformer",
"functionName": "transform"
},
"version": [
"[3,3.2.2)"
]
}
],
"id": "SNYK-JAVA-COMMONSCOLLECTIONS-30078",
"identifiers": {
"CVE": [
"CVE-2015-4852",
"CVE-2015-7501"
],
"CWE": [
"CWE-502"
]
},
"language": "java",
"mavenModuleName": {
"artifactId": "commons-collections",
"groupId": "commons-collections"
},
"modificationTime": "2019-09-06T13:34:59.829115Z",
"moduleName": "commons-collections:commons-collections",
"packageManager": "maven",
"packageName": "commons-collections:commons-collections",
"patches": [],
"publicationTime": "2015-11-06T16:51:56Z",
"references": [
{
"title": "FoxGloveSecurity Blog",
"url": "http://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/"
},
{
"title": "GitHub Commit",
"url": "https://github.com/apache/commons-collections/commit/e585cd0433ae4cfbc56e58572b9869bd0c86b611"
},
{
"title": "Jira Issue",
"url": "https://issues.apache.org/jira/browse/COLLECTIONS-580"
}
],
"semver": {
"vulnerable": [
"[3.0,3.2.2)"
]
},
"severity": "high",
"title": "Deserialization of Untrusted Data",
"isPinnable": false,
"from": [
"eu.clarin.cmdi:VirtualCollectionRegistry@1.3.0-SNAPSHOT",
"de.uni_leipzig.asv:clarin.webservices.pidservices2@2.1.0",
"net.sf.json-lib:json-lib@2.4",
"commons-collections:commons-collections@3.2.1"
],
"upgradePath": [],
"isUpgradable": false,
"isPatchable": false,
"name": "commons-collections:commons-collections",
"version": "3.2.1"
},
{
"CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
"alternativeIds": [],
"creationTime": "2016-12-25T16:51:47Z",
"credit": [
"Unknown"
],
"cvssScore": 5.4,
"description": "## Overview\n[`commons-httpclient:commons-httpclient`](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22commons-httpclient%22) is a component of the Apache HttpComponents project.\n\nAffected versions of this package are vulnerable to Man-in-the-Middle attacks due to not verifying that the requesting server hostname matches a domain name in the subject's `Common Name (CN)` or `subjectAltName` field of the X.509 certificate. This allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.\n\n## Remediation\nThere is no fix version for `commons-httpclient:commons-httpclient`.\n\n## References\n- [The University of Texas](http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf)\n- [X-Force Vulnerability Report](https://exchange.xforce.ibmcloud.com/vulnerabilities/79984)\n- [Jira Issue](https://issues.apache.org/jira/browse/HTTPCLIENT-1265)\n",
"disclosureTime": "2013-03-25T16:51:47Z",
"exploit": "Not Defined",
"fixedIn": [],
"functions": [
{
"functionId": {
"className": "SSLProtocolSocketFactory",
"filePath": "org/apache/commons/httpclient/protocol/SSLProtocolSocketFactory.java",
"functionName": "createSocket"
},
"version": [
"[2.0, 3.1)"
]
}
],
"functions_new": [
{
"functionId": {
"className": "org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory",
"functionName": "createSocket"
},
"version": [
"[2.0, 3.1)"
]
}
],
"id": "SNYK-JAVA-COMMONSHTTPCLIENT-30083",
"identifiers": {
"CVE": [
"CVE-2012-5783"
],
"CWE": [
"CWE-295"
]
},
"language": "java",
"mavenModuleName": {
"artifactId": "commons-httpclient",
"groupId": "commons-httpclient"
},
"modificationTime": "2019-05-01T14:29:08.359500Z",
"moduleName": "commons-httpclient:commons-httpclient",
"packageManager": "maven",
"packageName": "commons-httpclient:commons-httpclient",
"patches": [],
"publicationTime": "2013-03-25T16:51:47Z",
"references": [
{
"title": "Jira Issue",
"url": "https://issues.apache.org/jira/browse/HTTPCLIENT-1265"
},
{
"title": "The University of Texas",
"url": "http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf"
},
{
"title": "X-Force Vulnerability Report",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/79984"
}
],
"semver": {
"vulnerable": [
"[0,]"
]
},
"severity": "medium",
"title": "Improper Certificate Validation",
"isPinnable": false,
"from": [
"eu.clarin.cmdi:VirtualCollectionRegistry@1.3.0-SNAPSHOT",
"de.uni_leipzig.asv:clarin.webservices.pidservices2@2.1.0",
"com.sun.jersey.contribs:jersey-apache-client@1.18",
"commons-httpclient:commons-httpclient@3.1"
],
"upgradePath": [],
"isUpgradable": false,
"isPatchable": false,
"name": "commons-httpclient:commons-httpclient",
"version": "3.1"
},
{
"CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
"alternativeIds": [],
"creationTime": "2017-02-22T07:28:21.771000Z",
"credit": [
"Unknown"
],
"cvssScore": 4.3,
"description": "## Overview\n\n[commons-httpclient:commons-httpclient](https://mvnrepository.com/artifact/commons-httpclient/commons-httpclient) is a HttpClient component of the Apache HttpComponents project.\n\n\nAffected versions of this package are vulnerable to Man-in-the-Middle (MitM).\ndue to not verifing the requesting server's hostname agains existing domain names in the SSL Certificate. The `AbstractVerifier` does not properly verify that the server hostname matches a domain name in the subject's `Common Name (CN)` or `subjectAltName` field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via a certificate with a subject that specifies a common name in a field that is not the CN field. \r\n\r\n**NOTE:** this issue exists because of an incomplete fix for [CVE-2012-5783](SNYK-JAVA-COMMONSHTTPCLIENT-30083).\n\n## Remediation\n\nThere is no fixed version for `commons-httpclient:commons-httpclient`.\n\n\n## References\n\n- [NVD](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6153)\n\n- [Possible GitHub Commit](https://github.com/apache/httpcomponents-client/commit/6e14fc146a66e0f3eb362f45f95d1a58ee18886a)\n",
"disclosureTime": "2014-09-07T12:18:36Z",
"exploit": "Not Defined",
"fixedIn": [],
"functions": [],
"functions_new": [],
"id": "SNYK-JAVA-COMMONSHTTPCLIENT-31660",
"identifiers": {
"CVE": [
"CVE-2012-6153"
],
"CWE": [
"CWE-20"
]
},
"language": "java",
"mavenModuleName": {
"artifactId": "commons-httpclient",
"groupId": "commons-httpclient"
},
"modificationTime": "2019-06-27T13:32:00.680439Z",
"moduleName": "commons-httpclient:commons-httpclient",
"packageManager": "maven",
"packageName": "commons-httpclient:commons-httpclient",
"patches": [],
"publicationTime": "2018-04-08T12:56:14Z",
"references": [
{
"title": "NVD",
"url": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6153"
},
{
"title": "Possible GitHub Commit",
"url": "https://github.com/apache/httpcomponents-client/commit/6e14fc146a66e0f3eb362f45f95d1a58ee18886a"
}
],
"semver": {
"vulnerable": [
"[0,]"
]
},
"severity": "medium",
"title": "Man-in-the-Middle (MitM)",
"isPinnable": false,
"from": [
"eu.clarin.cmdi:VirtualCollectionRegistry@1.3.0-SNAPSHOT",
"de.uni_leipzig.asv:clarin.webservices.pidservices2@2.1.0",
"com.sun.jersey.contribs:jersey-apache-client@1.18",
"commons-httpclient:commons-httpclient@3.1"
],
"upgradePath": [],
"isUpgradable": false,
"isPatchable": false,
"name": "commons-httpclient:commons-httpclient",
"version": "3.1"
}
],
"ok": false,
"dependencyCount": 104,
"org": "wjm.elbers",
"policy": "# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.\nversion: v1.13.5\nignore: {}\npatch: {}\n",
"isPrivate": true,
"licensesPolicy": {
"severities": {},
"orgLicenseRules": {}
},
"packageManager": "maven",
"ignoreSettings": null,
"summary": "4 vulnerable dependency paths",
"remediation": {
"unresolved": [
{
"CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:H/RL:O/RC:C",
"alternativeIds": [],
"creationTime": "2016-12-25T16:51:51Z",
"credit": [
"Alvaro Munoz"
],
"cvssScore": 7.3,
"description": "## Overview\n\n[commons-beanutils:commons-beanutils](https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils) provides an easy-to-use but flexible wrapper around reflection and introspection.\n\n\nAffected versions of this package are vulnerable to Arbitrary Code Execution.\nIt does not suppress the class property, which allows remote attackers to manipulate the `ClassLoader` and execute arbitrary code via the class parameter, as demonstrated by the passing of this parameter to the `getClass` method of the `ActionForm` object in Struts 1.\n\n## Details\nSerialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like _Remote Method Invocation (RMI)_, _Java Management Extension (JMX)_, _Java Messaging System (JMS)_, _Action Message Format (AMF)_, _Java Server Faces (JSF) ViewState_, etc.\r\n\r\n \r\n\r\n_Deserialization of untrusted data_ ([CWE-502](https://cwe.mitre.org/data/definitions/502.html)), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.\r\n\r\n \r\n\r\nJava deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a [popular library (Apache Commons Collection)](https://snyk.io/vuln/SNYK-JAVA-COMMONSCOLLECTIONS-30078). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.\r\n\r\n \r\n\r\nAn attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.\r\n\r\n \r\n\r\n> Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).\r\n\r\n- Apache Blog\r\n\r\n \r\n\r\nThe vulnerability, also know as _Mad Gadget_\r\n\r\n> Mad Gadget is one of the most pernicious vulnerabilities we’ve seen. By merely existing on the Java classpath, seven “gadget” classes in Apache Commons Collections (versions 3.0, 3.1, 3.2, 3.2.1, and 4.0) make object deserialization for the entire JVM process Turing complete with an exec function. Since many business applications use object deserialization to send messages across the network, it would be like hiring a bank teller who was trained to hand over all the money in the vault if asked to do so politely, and then entrusting that teller with the key. The only thing that would keep a bank safe in such a circumstance is that most people wouldn’t consider asking such a question.\r\n\r\n- Google\n\n## Remediation\n\nUpgrade `commons-beanutils:commons-beanutils` to version 1.9.2 or higher.\n\n\n## References\n\n- [Alvaro Munoz Blog](http://h30499.www3.hp.com/t5/HP-Security-Research-Blog/Protect-your-Struts1-applications/ba-p/6463188#.U2J7xeaSxro)\n\n- [Exploit - ExploitDB](https://exploit-db.com/exploits/41690)\n\n- [GitHub Commit](https://github.com/apache/commons-beanutils/pull/7/commits/2780a77600e6428b730e3a5197b7c5baf1c4cca0)\n\n- [Jira Issue](https://issues.apache.org/jira/browse/BEANUTILS-463)\n\n- [Redhat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=1091938)\n",
"disclosureTime": "2014-05-01T16:51:51Z",
"exploit": "High",
"fixedIn": [
"1.9.2"
],
"functions": [],
"functions_new": [],
"id": "SNYK-JAVA-COMMONSBEANUTILS-30077",
"identifiers": {
"CVE": [
"CVE-2014-0114"
],
"CWE": [
"CWE-20"
]
},
"language": "java",
"mavenModuleName": {
"artifactId": "commons-beanutils",
"groupId": "commons-beanutils"
},
"modificationTime": "2019-07-19T08:44:29.622229Z",
"moduleName": "commons-beanutils:commons-beanutils",
"packageManager": "maven",
"packageName": "commons-beanutils:commons-beanutils",
"patches": [],
"publicationTime": "2014-05-01T16:51:51Z",
"references": [
{
"title": "Alvaro Munoz Blog",
"url": "http://h30499.www3.hp.com/t5/HP-Security-Research-Blog/Protect-your-Struts1-applications/ba-p/6463188%23.U2J7xeaSxro"
},
{
"title": "Exploit - ExploitDB",
"url": "https://exploit-db.com/exploits/41690"
},
{
"title": "GitHub Commit",
"url": "https://github.com/apache/commons-beanutils/pull/7/commits/2780a77600e6428b730e3a5197b7c5baf1c4cca0"
},
{
"title": "Jira Issue",
"url": "https://issues.apache.org/jira/browse/BEANUTILS-463"
},
{
"title": "Redhat Bugzilla",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=1091938"
}
],
"semver": {
"vulnerable": [
"[1.8.0,1.9.2)"
]
},
"severity": "high",
"title": "Arbitrary Code Execution",
"isPinnable": false,
"from": [
"eu.clarin.cmdi:VirtualCollectionRegistry@1.3.0-SNAPSHOT",
"de.uni_leipzig.asv:clarin.webservices.pidservices2@2.1.0",
"net.sf.json-lib:json-lib@2.4",
"commons-beanutils:commons-beanutils@1.8.0"
],
"upgradePath": [],
"isUpgradable": false,
"isPatchable": false,
"name": "commons-beanutils:commons-beanutils",
"version": "1.8.0"
},
{
"CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O",
"alternativeIds": [],
"creationTime": "2016-12-25T16:51:56Z",
"credit": [
"Unknown"
],
"cvssScore": 9.8,
"description": "## Overview\n\n[commons-collections:commons-collections](https://mvnrepository.com/artifact/commons-collections/commons-collections) is a library which contains types that extend and augment the Java Collections Framework.\n\n\nAffected versions of this package are vulnerable to Deserialization of Untrusted Data.\nIt is possible to execute arbitrary Java code with the `InvokerTransformer` serializable collections . The `sun.reflect.annotation.AnnotationInvocationHandler#readObject` method invokes `#entrySet` and `#get` on a deserialized collection. If an attacker has to ability to send serialized data (JMX, RMI, EJB) to an application using the `common-collections` library, it is possible to combine the aforementioned methods to execute arbitrary code on the application.\n\n## Details\nSerialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like _Remote Method Invocation (RMI)_, _Java Management Extension (JMX)_, _Java Messaging System (JMS)_, _Action Message Format (AMF)_, _Java Server Faces (JSF) ViewState_, etc.\r\n\r\n \r\n\r\n_Deserialization of untrusted data_ ([CWE-502](https://cwe.mitre.org/data/definitions/502.html)), is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, letting the attacker to control the state or the flow of the execution.\r\n\r\n \r\n\r\nJava deserialization issues have been known for years. However, interest in the issue intensified greatly in 2015, when classes that could be abused to achieve remote code execution were found in a [popular library (Apache Commons Collection)](https://snyk.io/vuln/SNYK-JAVA-COMMONSCOLLECTIONS-30078). These classes were used in zero-days affecting IBM WebSphere, Oracle WebLogic and many other products.\r\n\r\n \r\n\r\nAn attacker just needs to identify a piece of software that has both a vulnerable class on its path, and performs deserialization on untrusted data. Then all they need to do is send the payload into the deserializer, getting the command executed.\r\n\r\n \r\n\r\n> Developers put too much trust in Java Object Serialization. Some even de-serialize objects pre-authentication. When deserializing an Object in Java you typically cast it to an expected type, and therefore Java's strict type system will ensure you only get valid object trees. Unfortunately, by the time the type checking happens, platform code has already created and executed significant logic. So, before the final type is checked a lot of code is executed from the readObject() methods of various objects, all of which is out of the developer's control. By combining the readObject() methods of various classes which are available on the classpath of the vulnerable application an attacker can execute functions (including calling Runtime.exec() to execute local OS commands).\r\n\r\n- Apache Blog\r\n\r\n \r\n\r\nThe vulnerability, also know as _Mad Gadget_\r\n\r\n> Mad Gadget is one of the most pernicious vulnerabilities we’ve seen. By merely existing on the Java classpath, seven “gadget” classes in Apache Commons Collections (versions 3.0, 3.1, 3.2, 3.2.1, and 4.0) make object deserialization for the entire JVM process Turing complete with an exec function. Since many business applications use object deserialization to send messages across the network, it would be like hiring a bank teller who was trained to hand over all the money in the vault if asked to do so politely, and then entrusting that teller with the key. The only thing that would keep a bank safe in such a circumstance is that most people wouldn’t consider asking such a question.\r\n\r\n- Google\n\n## Remediation\n\nUpgrade `commons-collections:commons-collections` to version 3.2.2 or higher.\n\n\n## References\n\n- [FoxGloveSecurity Blog](http://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/)\n\n- [GitHub Commit](https://github.com/apache/commons-collections/commit/e585cd0433ae4cfbc56e58572b9869bd0c86b611)\n\n- [Jira Issue](https://issues.apache.org/jira/browse/COLLECTIONS-580)\n",
"disclosureTime": "2015-11-06T16:51:56Z",
"exploit": "Functional",
"fixedIn": [
"3.2.2"
],
"functions": [
{
"functionId": {
"className": "InvokerTransformer",
"filePath": "org/apache/commons/collections/functors/InvokerTransformer.java",
"functionName": "transform"
},
"version": [
"[3,3.2.2)"
]
}
],
"functions_new": [
{
"functionId": {
"className": "org.apache.commons.collections.functors.InvokerTransformer",
"functionName": "transform"
},
"version": [
"[3,3.2.2)"
]
}
],
"id": "SNYK-JAVA-COMMONSCOLLECTIONS-30078",
"identifiers": {
"CVE": [
"CVE-2015-4852",
"CVE-2015-7501"
],
"CWE": [
"CWE-502"
]
},
"language": "java",
"mavenModuleName": {
"artifactId": "commons-collections",
"groupId": "commons-collections"
},
"modificationTime": "2019-09-06T13:34:59.829115Z",
"moduleName": "commons-collections:commons-collections",
"packageManager": "maven",
"packageName": "commons-collections:commons-collections",
"patches": [],
"publicationTime": "2015-11-06T16:51:56Z",
"references": [
{
"title": "FoxGloveSecurity Blog",
"url": "http://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/"
},
{
"title": "GitHub Commit",
"url": "https://github.com/apache/commons-collections/commit/e585cd0433ae4cfbc56e58572b9869bd0c86b611"
},
{
"title": "Jira Issue",
"url": "https://issues.apache.org/jira/browse/COLLECTIONS-580"
}
],
"semver": {
"vulnerable": [
"[3.0,3.2.2)"
]
},
"severity": "high",
"title": "Deserialization of Untrusted Data",
"isPinnable": false,
"from": [
"eu.clarin.cmdi:VirtualCollectionRegistry@1.3.0-SNAPSHOT",
"de.uni_leipzig.asv:clarin.webservices.pidservices2@2.1.0",
"net.sf.json-lib:json-lib@2.4",
"commons-collections:commons-collections@3.2.1"
],
"upgradePath": [],
"isUpgradable": false,
"isPatchable": false,
"name": "commons-collections:commons-collections",
"version": "3.2.1"
},
{
"CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N",
"alternativeIds": [],
"creationTime": "2016-12-25T16:51:47Z",
"credit": [
"Unknown"
],
"cvssScore": 5.4,
"description": "## Overview\n[`commons-httpclient:commons-httpclient`](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22commons-httpclient%22) is a component of the Apache HttpComponents project.\n\nAffected versions of this package are vulnerable to Man-in-the-Middle attacks due to not verifying that the requesting server hostname matches a domain name in the subject's `Common Name (CN)` or `subjectAltName` field of the X.509 certificate. This allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.\n\n## Remediation\nThere is no fix version for `commons-httpclient:commons-httpclient`.\n\n## References\n- [The University of Texas](http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf)\n- [X-Force Vulnerability Report](https://exchange.xforce.ibmcloud.com/vulnerabilities/79984)\n- [Jira Issue](https://issues.apache.org/jira/browse/HTTPCLIENT-1265)\n",
"disclosureTime": "2013-03-25T16:51:47Z",
"exploit": "Not Defined",
"fixedIn": [],
"functions": [
{
"functionId": {
"className": "SSLProtocolSocketFactory",
"filePath": "org/apache/commons/httpclient/protocol/SSLProtocolSocketFactory.java",
"functionName": "createSocket"
},
"version": [
"[2.0, 3.1)"
]
}
],
"functions_new": [
{
"functionId": {
"className": "org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory",
"functionName": "createSocket"
},
"version": [
"[2.0, 3.1)"
]
}
],
"id": "SNYK-JAVA-COMMONSHTTPCLIENT-30083",
"identifiers": {
"CVE": [
"CVE-2012-5783"
],
"CWE": [
"CWE-295"
]
},
"language": "java",
"mavenModuleName": {
"artifactId": "commons-httpclient",
"groupId": "commons-httpclient"
},
"modificationTime": "2019-05-01T14:29:08.359500Z",
"moduleName": "commons-httpclient:commons-httpclient",
"packageManager": "maven",
"packageName": "commons-httpclient:commons-httpclient",
"patches": [],
"publicationTime": "2013-03-25T16:51:47Z",
"references": [
{
"title": "Jira Issue",
"url": "https://issues.apache.org/jira/browse/HTTPCLIENT-1265"
},
{
"title": "The University of Texas",
"url": "http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf"
},
{
"title": "X-Force Vulnerability Report",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/79984"
}
],
"semver": {
"vulnerable": [
"[0,]"
]
},
"severity": "medium",
"title": "Improper Certificate Validation",
"isPinnable": false,
"from": [
"eu.clarin.cmdi:VirtualCollectionRegistry@1.3.0-SNAPSHOT",
"de.uni_leipzig.asv:clarin.webservices.pidservices2@2.1.0",
"com.sun.jersey.contribs:jersey-apache-client@1.18",
"commons-httpclient:commons-httpclient@3.1"
],
"upgradePath": [],
"isUpgradable": false,
"isPatchable": false,
"name": "commons-httpclient:commons-httpclient",
"version": "3.1"
},
{
"CVSSv3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N",
"alternativeIds": [],
"creationTime": "2017-02-22T07:28:21.771000Z",
"credit": [
"Unknown"
],
"cvssScore": 4.3,
"description": "## Overview\n\n[commons-httpclient:commons-httpclient](https://mvnrepository.com/artifact/commons-httpclient/commons-httpclient) is a HttpClient component of the Apache HttpComponents project.\n\n\nAffected versions of this package are vulnerable to Man-in-the-Middle (MitM).\ndue to not verifing the requesting server's hostname agains existing domain names in the SSL Certificate. The `AbstractVerifier` does not properly verify that the server hostname matches a domain name in the subject's `Common Name (CN)` or `subjectAltName` field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via a certificate with a subject that specifies a common name in a field that is not the CN field. \r\n\r\n**NOTE:** this issue exists because of an incomplete fix for [CVE-2012-5783](SNYK-JAVA-COMMONSHTTPCLIENT-30083).\n\n## Remediation\n\nThere is no fixed version for `commons-httpclient:commons-httpclient`.\n\n\n## References\n\n- [NVD](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6153)\n\n- [Possible GitHub Commit](https://github.com/apache/httpcomponents-client/commit/6e14fc146a66e0f3eb362f45f95d1a58ee18886a)\n",
"disclosureTime": "2014-09-07T12:18:36Z",
"exploit": "Not Defined",
"fixedIn": [],
"functions": [],
"functions_new": [],
"id": "SNYK-JAVA-COMMONSHTTPCLIENT-31660",
"identifiers": {
"CVE": [
"CVE-2012-6153"
],
"CWE": [
"CWE-20"
]
},
"language": "java",
"mavenModuleName": {
"artifactId": "commons-httpclient",
"groupId": "commons-httpclient"
},
"modificationTime": "2019-06-27T13:32:00.680439Z",
"moduleName": "commons-httpclient:commons-httpclient",
"packageManager": "maven",
"packageName": "commons-httpclient:commons-httpclient",
"patches": [],
"publicationTime": "2018-04-08T12:56:14Z",
"references": [
{
"title": "NVD",
"url": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-6153"
},
{
"title": "Possible GitHub Commit",
"url": "https://github.com/apache/httpcomponents-client/commit/6e14fc146a66e0f3eb362f45f95d1a58ee18886a"
}
],
"semver": {
"vulnerable": [
"[0,]"
]
},
"severity": "medium",
"title": "Man-in-the-Middle (MitM)",
"isPinnable": false,
"from": [
"eu.clarin.cmdi:VirtualCollectionRegistry@1.3.0-SNAPSHOT",
"de.uni_leipzig.asv:clarin.webservices.pidservices2@2.1.0",
"com.sun.jersey.contribs:jersey-apache-client@1.18",
"commons-httpclient:commons-httpclient@3.1"
],
"upgradePath": [],
"isUpgradable": false,
"isPatchable": false,
"name": "commons-httpclient:commons-httpclient",
"version": "3.1"
}
],
"upgrade": {},
"patch": {},
"ignore": {},
"pin": {}
},
"filesystemPolicy": false,
"filtered": {
"ignore": [],
"patch": []
},
"uniqueCount": 4,
"path": "/project"
}