Rapid7 Vulnerability & Exploit Database

MobileCartly 1.0 Arbitrary File Creation Vulnerability

Back to Search

MobileCartly 1.0 Arbitrary File Creation Vulnerability

Disclosed
08/10/2012
Created
05/30/2018

Description

This module exploits a vulnerability in MobileCartly. The savepage.php file does not do any permission checks before using file_put_contents(), which allows any user to have direct control of that function to create files under the 'pages' directory by default, or anywhere else as long as the user has WRITE permission.

Author(s)

  • Yakir Wizman <yakir.wizman@gmail.com>
  • sinn3r <sinn3r@metasploit.com>

Platform

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

;