WordPress PICA Photo Gallery Plugin Arbitrary File Disclosure and File Upload Vulnerabilities


Description   Two vulnerabilities have been discovered in the PICA Photo Gallery plugin for WordPress, which can be exploited by malicious people to disclose sensitive information and compromise a vulnerable system.
1) Input passed to the "imgname" parameter in wp-content/plugins/pica-photo-gallery/picadownload.php is not properly verified before being used to download files. This can be exploited to disclose the contents of arbitrary files via directory traversal attacks.
2) An error due to the wp-content/plugins/pica-photo-gallery/picaPhotosResize.php script allowing the upload of files with arbitrary extensions to a folder inside the webroot can be exploited to execute arbitrary PHP code by uploading a malicious PHP script.
The vulnerabilities are confirmed in version 1.0. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
WordPress PICA Photo Gallery Plugin 1.x
     
Solution   Edit the source code to ensure that input is properly verified. Restrict access to the wp-content/plugins/pica-photo-gallery/picaPhotosResize.php script (e.g. via .htaccess).
     
CVE  
     
References   OpenSysCom:
http://www.opensyscom.fr/Actualites/wordpress-plugins-pica-photo-gallery-remote-file-disclosure-vulnerability.html
Adrien Thierry:
http://www.exploit-db.com/exploits/19055/
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
Misc : Directory traversal - parameter starting with ../
3.2.0
Directory traversal using ..\..
3.2.0
Directory traversal
3.2.0
Directory traversal backward root folder
3.2.0
Upload of a PHP file in a vulnerable web application
5.0.0
     


 
 
 
 
 Risk level 
High 

 Vulnerability First Public Report Date 
2012-06-11 

 Target Type 
Server 

 Possible exploit 
Remote