This module exploits the "Ajax File and Image Manager" component that can be found in log1 CMS. In function.base.php of this component, the 'data' parameter in writeInfo() allows any malicious user to have direct control of writing data to file data.php, which results in arbitrary remote code execution.
PHP
php
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/http/log1cms_ajax_create_folder
msf exploit(log1cms_ajax_create_folder) > show targets
...targets...
msf exploit(log1cms_ajax_create_folder) > set TARGET < target-id >
msf exploit(log1cms_ajax_create_folder) > show options
...show and set options...
msf exploit(log1cms_ajax_create_folder) > 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