WordPress Contus HD FLV Player Plugin SQL Injection and Arbitrary File Upload Vulnerabilities


Description   Multiple vulnerabilities have been discovered in the Contus HD FLV Player plugin for WordPress, which can be exploited by malicious people to conduct SQL injection attacks and compromise a vulnerable system.
1) Input passed via the "playid" and "listItem" parameters to wp-content/plugins/contus-hd-flv-player/process-sortable.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
2) The wp-content/plugins/contus-hd-flv-player/uploadVideo.php script improperly validates uploaded files, which can be exploited to execute arbitrary PHP code by uploading a PHP file with e.g. an appended ".gif" file extension.
Successful exploitation of this vulnerability requires that Apache is not configured to handle the mime-type for media files with e.g. a ".gif" extension (Configured to handle by default).
The vulnerabilities are confirmed in version 1.7. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
WordPress Contus HD FLV Player Plugin 1.x
     
Solution   Edit the source code to ensure that input is properly sanitised. Restrict access to the wp-content/plugins/contus-hd-flv-player/uploadVideo.php script (e.g. via .htaccess).
     
CVE  
     
References   Miroslav Stampar:
http://unconciousmind.blogspot.com/2011/08/wordpress-contus-hd-flv-player-plugin.html
OpenSysCom:
http://www.opensyscom.fr/Actualites/wordpress-plugins-wordpress-hd-flv-player-arbitrary-file-upload-vulnerability.html
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
SQL injection Prevention - GET : suspicious OR statement in URL
3.2.0
SQL injection Prevention - GET : suspicious combination of 'OR' or 'AND' statements in URL
3.2.0
SQL injection Prevention - GET : suspicious CREATE statement in URL
3.2.0
SQL injection Prevention - GET : suspicious CAST statement in URL
3.2.0
SQL injection Prevention - GET : suspicious OPENROWSET statement in URL
3.2.0
SQL injection Prevention - GET : suspicious DECLARE statement in URL
3.2.0
SQL injection Prevention - GET : suspicious OPENQUERY statement in URL
3.2.0
SQL injection Prevention - GET : suspicious shutdown statement in URL
3.2.0
SQL injection Prevention - GET : suspicious UNION SELECT statement in URL
3.2.0
SQL injection Prevention - GET : possible database version probing
3.2.0
SQL injection Prevention - GET : suspicious UPDATE SET statement in URL
3.2.0
SQL injection Prevention - GET : suspicious SELECT statement in URL
3.2.0
SQL injection Prevention - GET : suspicious INSERT statement in URL
3.2.0
SQL injection Prevention - GET : suspicious DROP statement in URL
3.2.0
SQL injection Prevention - GET : suspicious EXEC statement in URL
3.2.0
SQL injection Prevention - GET : block comment delimiters in URL
3.2.0
SQL injection Prevention - GET : suspicious SQL statement in header
4.0.0
Upload of a PHP file in a vulnerable web application
5.0.0
     


 
 
 
 
 Risk level 
Moderate 

 Vulnerability First Public Report Date 
2011-08-18 

 Target Type 
Server 

 Possible exploit 
Remote