Vulnerability & Exploit Database

Back to search

SugarCRM REST Unserialize PHP Code Execution

This module exploits a PHP Object Injection vulnerability in SugarCRM CE <= 6.5.23 which could be abused to allow unauthenticated users to execute arbitrary PHP code with the permissions of the webserver. The dangerous unserialize() call exists in the '/service/core/REST/SugarRestSerialize.php' script. The exploit abuses the __destruct() method from the SugarCacheFile class to write arbitrary PHP code into the /custom directory.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/unix/webapp/sugarcrm_rest_unserialize_exec

Authors

  • EgiX

References

Targets

  • SugarCRM CE <= 6.5.23

Platforms

  • php

Architectures

  • php

Reliability

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