sonatype-nexus-community / codetocloud-workshop

Other
1 stars 8 forks source link

com.thoughtworks.xstream : xstream : 1.4.5 -- multiple issues #60

Closed VashuC closed 1 year ago

VashuC commented 1 year ago

Summary

Xstream API versions up to 1.4.6 and version 1.4.10, if the security framework has not been initialized, may allow a remote attacker to run arbitrary shell commands by manipulating the processed input stream when unmarshaling XML or any supported format. e.g. JSON.

Details

XStream does not provide security checks when creating Java objects. When untrusted data is processed, an attacker can provide crafted data that allows arbitrary code execution resulting in access to the host system that is only limited by the privileges of the running application.

PoC

The application is vulnerable by using this component. Issue will result when built as is without upgrading the dependency

Impact

Root Cause__ xstream-1.4.5.jarcom/thoughtworks/xstream/XStream.class(, 1.4.7) xstream-1.4.5.jarcom/thoughtworks/xstream/converters/reflection/ReflectionConverter.class(, 1.4.7)

Will impact the server where code is ran.

justind1995 commented 1 year ago

Great catch, this is a duplicate of https://github.com/sonatype-nexus-community/codetocloud-workshop/issues/56