CVE-2018-12023 - Deserialization of Untrusted Data

Severity

51%

Complexity

49%

Confidentiality

106%

An issue was discovered in FasterXML jackson-databind prior to 2.7.9.4, 2.8.11.2, and 2.9.6. When Default Typing is enabled (either globally or for a specific property), the service has the Oracle JDBC jar in the classpath, and an attacker can provide an LDAP service to access, it is possible to make the service execute a malicious payload.

An issue was discovered in FasterXML jackson-databind prior to 2.7.9.4, 2.8.11.2, and 2.9.6. When Default Typing is enabled (either globally or for a specific property), the service has the Oracle JDBC jar in the classpath, and an attacker can provide an LDAP service to access, it is possible to make the service execute a malicious payload.

CVSS 3.0 Base Score 7.5. CVSS Attack Vector: network. CVSS Attack Complexity: high. CVSS Vector: (CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H).

CVSS 2.0 Base Score 5.1. CVSS Attack Vector: network. CVSS Attack Complexity: high. CVSS Vector: (AV:N/AC:H/Au:N/C:P/I:P/A:P).

Demo Examples

Deserialization of Untrusted Data

CWE-502

This code snippet deserializes an object from a file and uses it as a UI button:


               
}
in.close();

This code does not attempt to verify the source or contents of the file before deserializing it. An attacker may be able to replace the intended file with a file that contains arbitrary malicious code which will be executed when the button is pressed.

To mitigate this, explicitly define final readObject() to prevent deserialization. An example of this is:


               
throw new java.io.IOException("Cannot be deserialized"); }

Deserialization of Untrusted Data

CWE-502

In Python, the Pickle library handles the serialization and deserialization processes. In this example derived from [R.502.7], the code receives and parses data, and afterwards tries to authenticate a user based on validating a token.


               
}
raise AuthFail

Unfortunately, the code does not verify that the incoming data is legitimate. An attacker can construct a illegitimate, serialized object "AuthToken" that instantiates one of Python's subprocesses to execute arbitrary commands. For instance,the attacker could construct a pickle that leverages Python's subprocess module, which spawns new processes and includes a number of arguments for various uses. Since Pickle allows objects to define the process for how they should be unpickled, the attacker can direct the unpickle process to call Popen in the subprocess module and execute /bin/sh.

Overview

First reported 5 years ago

2019-03-21 16:00:00

Last updated 5 years ago

2019-09-17 17:15:00

Affected Software

Debian Linux 9.0

9.0

Fedora 29

29

Oracle JD Edwards EnterpriseOne Tools 9.2

9.2

Oracle Retail Merchandising System 15.0

15.0

Red Hat Automation Manager 7.3.1

7.3.1

Red Hat Decision Manager 7.3.1

7.3.1

Red Hat JBoss BRMS 6.4.10

6.4.10

Red Hat JBoss Enterprise Application Platform 7.2.0

7.2.0

Red Hat OpenShift Container Platform 3.11

3.11

References

http://www.securityfocus.com/bid/105659

Third Party Advisory, VDB Entry

RHBA-2019:0959

Third Party Advisory

RHSA-2019:0782

Third Party Advisory

RHSA-2019:0877

Third Party Advisory

RHSA-2019:1106

Third Party Advisory

RHSA-2019:1107

Third Party Advisory

RHSA-2019:1108

Third Party Advisory

RHSA-2019:1140

Third Party Advisory

RHSA-2019:1782

Third Party Advisory

RHSA-2019:1797

Third Party Advisory

RHSA-2019:1822

Third Party Advisory

RHSA-2019:1823

Third Party Advisory

RHSA-2019:2804

RHSA-2019:2858

RHSA-2019:3002

RHSA-2019:3140

RHSA-2019:3149

RHSA-2019:3892

RHSA-2019:4037

https://github.com/FasterXML/jackson-databind/commit/28badf7ef60ac3e7ef151cd8e8ec010b8479226a

Patch, Third Party Advisory

https://github.com/FasterXML/jackson-databind/issues/2058

Patch, Third Party Advisory

[drill-dev] 20191021 [jira] [Created] (DRILL-7416) Updates required to dependencies to resolve potential security vulnerabilities

[lucene-issues] 20191004 [GitHub] [lucene-solr] marungo opened a new pull request #925: SOLR-13818: Upgrade jackson to 2.10.0

[drill-dev] 20191017 Dependencies used by Drill contain known vulnerabilities

[drill-issues] 20191021 [jira] [Created] (DRILL-7416) Updates required to dependencies to resolve potential security vulnerabilities

https://lists.fedoraproject.org/archives/list/[email protected]/message/ZEDLDUYBSTDY4GWDBUXGJNS2RFYTFVRC/

Third Party Advisory

20190527 [SECURITY] [DSA 4452-1] jackson-databind security update

Mailing List, Third Party Advisory

https://security.netapp.com/advisory/ntap-20190530-0003/

Third Party Advisory

https://www.blackhat.com/docs/us-16/materials/us-16-Munoz-A-Journey-From-JNDI-LDAP-Manipulation-To-RCE.pdf

Technical Description, Third Party Advisory

DSA-4452

Third Party Advisory

N/A

https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html

Patch, Third Party Advisory

https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html

Patch, Third Party Advisory

https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html

Patch, Third Party Advisory

https://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html

Patch, Third Party Advisory

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.