# Oracle Java Deserialization Vulnerabilities

- URL: https://www.integrigy.com/security-resources/oracle-java-deserialization-vulnerabilities
- Published: 2016-12-02
- Type: Webinar
- Products: Oracle E-Business Suite, Oracle Database, Oracle Fusion Middleware
- Focus areas: Vulnerabilities
- Applies to: EBS 12.1, EBS 12.2
- CVE IDs: CVE-2015-4852, CVE-2015-7501, CVE-2013-2186
- PDF: https://www.integrigy.com/sites/default/files/Integrigy%20Oracle%20Java%20Deserialization%20Vulnerabilities.pdf
- Recording: https://www.youtube.com/watch?v=oZPZLiY2PeA

> Webinar on Java deserialization vulnerabilities, which allow remote code execution, in Oracle WebLogic, Fusion Middleware and E-Business Suite, including the out-of-cycle fix CVE-2015-4852.

Java deserialization is a class of security vulnerabilities that can result in server-side remote code execution (RCE). Because many Oracle products are based on Java, deserialization bugs are found in many Oracle environments, especially those using Oracle WebLogic, Oracle Fusion Middleware and Oracle E-Business Suite, and they are being actively exploited. In November 2015, for example, Oracle released an out-of-cycle security fix (CVE-2015-4852) for a deserialization bug in Oracle WebLogic.

We explain how Java deserialization vulnerabilities work, their potential impact on Oracle environments and how to protect an Oracle environment from this class of vulnerabilities. DBAs, developers and security teams can then assess their Oracle technology stacks and custom code for exposure.

## Key Points

- Java object serialization turns an object into a byte stream for transfer over a network, file or database, and `ObjectInputStream` does no validation: the byte stream names its classes, which can be any serializable class on the classpath, and the final class cast happens only after all deserialization work is done.
- An attack needs an entry point, such as RMI, JMX, JMS, Java Server Faces/Oracle ADF ViewState or WebLogic's T3 protocol, and a gadget on the classpath that does the work, such as Apache Commons-Collections (CVE-2015-7501) or Commons-FileUpload (CVE-2013-2186), and the ysoserial exploit tool comes preloaded with the most common gadgets to build attack payloads.
- CVE-2015-4852 lets an attacker send serialized objects over T3 to WebLogic's default management port 7001 in versions 10.3.6.0, 12.1.2.0, 12.1.3.0 and 12.2.1.0, which Oracle E-Business Suite 12.2, PeopleSoft, Hyperion, Agile and Enterprise Manager use, and Oracle released its November 10, 2015 advisory because exploit details had been published.
- The January 2016 CPU's WebLogic PSUs 12.2.1.0.1, 12.1.3.0.6, 12.1.2.0.8 and 10.3.6.0.13, long since superseded, fixed it only by blacklisting forbidden gadgets, leaving T3 serialized object support enabled, so MOS Note ID 2076338.1 recommends also filtering T3 traffic through a proxy or with WebLogic connection filters per IP address.
- The Commons-Collections gadget (CVE-2015-7501) alone brought 1 fix in the April 2016 CPU, 23 in July 2016 and 19 in October 2016, across products such as Oracle Application Testing Suite, Enterprise Manager Ops Center, Primavera, Retail, WebLogic and Agile PLM, which is why we compare fixing gadgets to "whack-a-mole".
- Limit access to the WebLogic management port 7001, at a minimum with firewalls or proxies that limit T3, assess every Oracle application technology stack for the impact of WebLogic vulnerabilities, review all custom development for deserialization bugs, since Oracle ADF applications are vulnerable, and protect Oracle E-Business Suite with our [AppDefend](https://www.integrigy.com/products/appdefend).
