Exploit database

Vulnerability

CVE-2012-10044

MobileCartly 1.0 savepage.php Arbitrary File Creation

Vulnerability details

Score
10.0
Severity
critical

CVSS 4.0 · VulnCheck

Vector string

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Description

MobileCartly version 1.0 contains an arbitrary file creation vulnerability in the savepage.php script. The application fails to perform authentication or authorization checks before invoking file_put_contents() on attacker-controlled input. An unauthenticated attacker can exploit this flaw by sending crafted HTTP GET requests to savepage.php, specifying both the filename and content. This allows arbitrary file creation within the pages/ directory or any writable path on the server, allowing remote code execution.

CVE Program

Exploit source choices

3 sources
MobileCartly 1.0 Arbitrary File Creation Vulnerability
MSF-multi--http--mobilecartly_upload_execMetasploitLinux,PHP / remote

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.

2012-08-10mobilecartly_upload_exec.rb