PT-2013-49: Null Byte Injection in Oracle Containers for J2EE

(PT-2013-49) Positive Technologies Security Advisory
Null Byte Injection in Oracle Containers for J2EE

Vulnerable software

Oracle Containers for J2EE
Version: and earlier


Severity level

Severity level: Medium
Impact: Information Disclosure
Access Vector: Remote

CVSS v2:
Base Score: 5.0
Vector: (AV:N/AC:L/AU:N/C:P/I:N/A:N)

CVE: CVE-2014-0414

Software description

Oracle Containers for J2EE (OC4J) is the core J2EE runtime component of Oracle Application Server.

Vulnerability description

The specialists of the Positive Research center have detected a Null Byte Injection vulnerability in Oracle Containers for J2EE.

Oracle Containers for J2EE does not properly handle a null byte in the path when transferring a request to another static page or a JSP script via pageContext.forward or jsp:forward functions. This vulnerability allows an attacker to break the script processing logic in global servlets (e.g., an attacker can generate a request for processing a JSP script as SHTML and thus gain access to the script’s source code).

Script processing logic failure combined with Directory Traversal when running on Windows may result in arbitrary command execution while calling a file containing an SHTML code (e.g., image or malicious log file uploaded by an attacker) as SHTML script.

How to fix

Update your sofware up to the latest version

Advisory status

16.08.2013 - Vendor gets vulnerability details
15.04.2014 - Vendor releases fixed version and details
25.04.2014 - Public disclosure


The vulnerability was detected by Sergey Bobrov and Andrey Medov, Positive Research Center (Positive Technologies Company)


Reports on the vulnerabilities previously discovered by Positive Research:

About Positive Technologies

Positive Technologies is a leading provider of vulnerability assessment, compliance management and threat analysis solutions to more than 1,000 global enterprise clients. Our solutions work seamlessly across your entire business: securing applications in development; assessing your network and application vulnerabilities; assuring compliance with regulatory requirements; and blocking real-time attacks. Our commitment to clients and research has earned Positive Technologies a reputation as one of the foremost authorities on SCADA, Banking, Telecom, Web Application and ERP security, and distinction as the #1 fastest growing Security and Vulnerability Management firm in 2012, as shown in an IDC report*. To learn more about Positive Technologies please visit

*Source: IDC Worldwide Security and Vulnerability Management 2013-2017 Forecast and 2012 Vendor Shares, doc #242465, August 2013. Based on year-over-year revenue growth in 2012 for vendors with revenues of $20M+