PT-2013-49: Null Byte Injection in Oracle Containers for J2EE
Vulnerable software
Oracle Containers for J2EE
Version: 10.1.3.5 and earlier
Link:
http://www.oracle.com/technetwork/middleware/ias/downloads/utilsoft-090603.html
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
Credits
The vulnerability was detected by Sergey Bobrov and Andrey Medov, Positive Research Center (Positive Technologies Company)
References
http://en.securitylab.ru/lab/PT-2013-49
Reports on the vulnerabilities previously discovered by Positive Research:
http://www.ptsecurity.com/research/advisory/
http://en.securitylab.ru/lab/