Rapid7 Vulnerability & Exploit Database

Log1 CMS writeInfo() PHP Code Injection

Back to Search

Log1 CMS writeInfo() PHP Code Injection

Disclosed
04/11/2011
Created
05/30/2018

Description

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.

Author(s)

  • EgiX
  • Adel SBM
  • sinn3r <sinn3r@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/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

;