Tuleap <= 7.6-4 (register.php) PHP Object Injection Vulnerability

• Software Links:


• Affected Versions:

Version 7.6-4 and prior versions.

• Vulnerability Description:

The vulnerable code is located in the /src/www/project/register.php script:

$request = HTTPRequest::instance();

if (Config::get('sys_create_project_in_one_step')) {
    $router = new Project_OneStepCreation_OneStepCreationRouter(
        new Project_CustomDescription_CustomDescriptionFactory(new Project_CustomDescription_CustomDescriptionDao())

$current_step = $request->exist('current_step') ? $request->get('current_step') : 0;
$data         = $request->exist('data') ? unserialize($request->get('data')) : array();

User input passed through the “data” request parameter is not properly sanitized before being used in a call to the “unserialize()” function at line 39. This can be exploited to inject arbitrary PHP objects into the application scope, and could allow authenticated attackers to execute arbitrary PHP code via specially crafted serialized objects, leveraging the destructor method from the Jabbex class. Successful exploitation of this vulnerability requires the “sys_create_project_in_one_step” option to be disabled.

• Solution:

Update to version 7.7 or later.

• Disclosure Timeline:

[04/11/2014] – Vendor notified
[05/11/2014] – Vendor acknowledgement
[10/11/2014] – Vendor fixed the issue
[11/11/2014] – CVE number requested
[13/11/2014] – CVE number assigned
[13/11/2014] – Version 7.7 released
[27/11/2014] – Public disclosure

• CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CVE-2014-8791 to this vulnerability.

• Credits:

Vulnerability discovered by Egidio Romano.