Description
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.
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_execmsf undefined(sugarcrm_rest_unserialize_exec) > show actions ...actions...msf undefined(sugarcrm_rest_unserialize_exec) > set ACTION < action-name >msf undefined(sugarcrm_rest_unserialize_exec) > show options ...show and set options...msf undefined(sugarcrm_rest_unserialize_exec) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub