Exploit Title: Oracle Primavera P6 Enterprise Project Portfolio Management HTTP Response Splitting
Exploit Author: Marios Nicolaides
Reviewers: Simon Loizides and Nicolas Markitanis
Vendor Homepage: Oracle
Affected: Oracle Primavera P6 Enterprise Project Portfolio Management 8.3, 8.4, 15.1, 15.2, 16.1
Tested on: Oracle Primavera P6 Enterprise Project Portfolio Management (Build: 220.127.116.11 (B0163) 14.03.2015.1305)
Category: Web Application
The Oracle Primavera Project Portfolio Management application is vulnerable to HTTP Response Splitting.
The application takes the user’s input from the languageCode parameter and includes it in the ORA-PWEB_LANGUAGE_1111 cookie value within the “Set-Cookie” HTTP Response header. The application allows an attacker to inject LF (line feed) characters and break out of the headers into the message body and write arbitrary content into the application’s response.
As a result, this could enable an attacker to perform Cross-Site Scripting attacks (XSS), redirect victims to malicious websites, and poison web and browser caches.
The exploit can be demonstrated as follows:
- A malicious attacker crafts the following URL:
- The attacker sends the above URL to an Oracle Primavera Project Portfolio Management application user.
Please note that the payload used above is for demonstration purposes only. A real attacker would try to steal the user’s cookies or perform other malicious actions.
An attacker might be able to steal the user’s session cookie/credentials and gain unauthorized access to the application. Further, an attacker might be able to poison web and/or browser caches in an attempt to perform a persistent attack.
Apply Critical Patch Update (CPU) of July 2017 - Oracle CPU July 2017
24 April 2017 - Oracle informed about the issue
July 2017 - Oracle released a patch
15 February 2018 - Exploit publicly disclosed