Rapid7 Vulnerability & Exploit Database

Horde Framework Unserialize PHP Code Execution

Back to Search

Horde Framework Unserialize PHP Code Execution

Disclosed
06/27/2013
Created
05/30/2018

Description

This module exploits a php unserialize() vulnerability in Horde <= 5.1.1 which could be abused to allow unauthenticated users to execute arbitrary code with the permissions of the web server. The dangerous unserialize() exists in the 'lib/Horde/Variables.php' file. The exploit abuses the __destruct() method from the Horde_Kolab_Server_Decorator_Clean class to reach a dangerous call_user_func() call in the Horde_Prefs class.

Author(s)

  • EgiX
  • juan vazquez <juan.vazquez@metasploit.com>

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/horde_unserialize_exec
msf exploit(horde_unserialize_exec) > show targets
    ...targets...
msf exploit(horde_unserialize_exec) > set TARGET < target-id >
msf exploit(horde_unserialize_exec) > show options
    ...show and set options...
msf exploit(horde_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

;