Rapid7 Vulnerability & Exploit Database

Tuleap PHP Unserialize Code Execution

Back to Search

Tuleap PHP Unserialize Code Execution

Disclosed
11/27/2014
Created
05/30/2018

Description

This module exploits a PHP object injection vulnerability in Tuleap <= 7.6-4 which could be abused to allow authenticated users to execute arbitrary code with the permissions of the web server. The dangerous unserialize() call exists in the 'src/www/project/register.php' file. The exploit abuses the destructor method from the Jabbex class in order to reach a call_user_func_array() call in the Jabber class and call the fetchPostActions() method from the Transition_PostAction_FieldFactory class to execute PHP code through an eval() call. In order to work, the target must have the 'sys_create_project_in_one_step' option disabled.

Author(s)

  • EgiX

Platform

PHP

Architectures

php

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/unix/webapp/tuleap_unserialize_exec
msf exploit(tuleap_unserialize_exec) > show targets
    ...targets...
msf exploit(tuleap_unserialize_exec) > set TARGET < target-id >
msf exploit(tuleap_unserialize_exec) > show options
    ...show and set options...
msf exploit(tuleap_unserialize_exec) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;