exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

WordPress Robo Gallery 2.0.14 Code Execution

WordPress Robo Gallery 2.0.14 Code Execution
Posted Apr 12, 2016
Authored by Vulnerability Laboratory, ICG SEC | Site vulnerability-lab.com

WordPress Robo Gallery plugin version 2.0.14 suffers from a code execution vulnerability.

tags | exploit, code execution
SHA-256 | 774d75ce63929680b6281e707bdf8bf21ed7453a304fe3f4249bb389a592ba9f

WordPress Robo Gallery 2.0.14 Code Execution

Change Mirror Download
Document Title:
===============
Wordpress Robo Gallery v2.0.14 - Code Execution Vulnerability


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1822


Release Date:
=============
2016-04-12


Vulnerability Laboratory ID (VL-ID):
====================================
1822


Common Vulnerability Scoring System:
====================================
8.9


Product & Service Introduction:
===============================
Most Easy and Powerful plugin to create a gallery on WordPress. If you
looking for fast, easy gallery with simple and very beautiful,
highly customizable design here is it... Gallery where even newbie in
WordPress will be able to create your first gallery in few minutes
and at the same time WordPress professionals get advanced tools and
freedom of creativity. Just download this Gallery and you'll not
look for any other gallery any more!

(Copy of the Homepage: https://wordpress.org/plugins/robo-gallery/ )


Abstract Advisory Information:
==============================
An independent vulnerability laboratory researcher discovered a remote
code execution vulnerability in the official Robo Gallery v2.0.14
Wordpress Plugin.


Vulnerability Disclosure Timeline:
==================================
2016-04-12: Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================
Robosoft
Product: Robo Gallery - Wordpress Plugin (Web-Application) 2.0.14


Exploitation Technique:
=======================
Remote


Severity Level:
===============
Critical


Technical Details & Description:
================================
A remote php code execution vulnerability has been discovered in the
official Robo Gallery v2.0.14 Wordpress Plugin web-application.
The vulnerability allows remote attackers to execute own malicious php
commands to compromise the web-application or connected dbms.

The vulnerability is located in teh `function` value of the
`rbs_gallery_ajax.php` file GET method request. Remote attackers are able
to execute own codes by usage of the vulnerable function value in the
`rbs_gallery_ajax.php` file. The request method to execute is
GET and the attack vector of the issue is located to the server-side.
The function is not secure parsed or encoded next to the module
context execute. Thus finally results in a php code execution because of
the wrong used parse context in the rbs_gallery_ajax.php file.

The security risk of the code execution vulnerability is estimated as
high with a cvss (common vulnerability scoring system) count of 8.9.
Exploitation of the php code execution vulnerability requires no
privileged web-application user account and low or medium user interaction.
Successful exploitation of the vulnerability results in computer system,
web-server or database management system -compromise.

Request Method(s):
[+] GET

Vulnerable Module(s):
[+] ./wp-content/plugins/robo-gallery/includes/

Vulnerable File(s):
[+] rbs_gallery_ajax.php

Vulnerable Parameter(s):
[+] function


Proof of Concept (PoC):
=======================
The remote code execution vulnerability can be exploited by remote
attackers without privileged web-application user account or user
interaction.
For security demonstration or to reproduce the vulnerability follow the
provided information and steps below to continue.

PoC: Exploitation
http://localhost:8080/wp-content/plugins/robo-gallery/includes/rbs_gallery_ajax.php?function=phpinfo();[CODE
EXECUTION VULNERABILITY!]


PoC: Vulnerable Source
<?php
if ( ! defined( 'WPINC' ) ) die;

if(!function_exists('rbs_gallery_ajax_callback')){
add_action( 'wp_ajax_rbs_gallery', 'rbs_gallery_ajax_callback' );
function rbs_gallery_ajax_callback(){
if(isset($_POST['function']) && $_POST['function']){
$functionName = 'rbs_ajax_'.$_POST['function'];
if( function_exists( $functionName ) ) $functionName();
}
wp_die();
}
}


Source: Wordpress Plugin
wordpress.org/plugins/robo-gallery/


Reference(s):
http://localhost:8080/
http://localhost:8080/wp-content/
http://localhost:8080/wp-content/plugins/
http://localhost:8080/wp-content/plugins/robo-gallery/
http://localhost:8080/wp-content/plugins/robo-gallery/includes/


Solution - Fix & Patch:
=======================
The vulnerability can be patched by a secure restriction of the
vulnerable functions value in the rbs_gallery_ajax.php file GET method
request.
Disallow to include code that executes in the followup GET/POST method
request. Deny script code tags and filter them by disallow the usage of
special chars.


Security Risk:
==============
The security risk of the remote code execution vulnerability in the
wordpress plugin is estimated as critical. (CVSS 8.9)


Credits & Authors:
==================
Iran Cyber Security Group - 0x3a (ICG SEC) [Iran-Cyber.Net]
[http://www.vulnerability-lab.com/show.php?user=Iran%20Cyber%20Security]
My Team: MOHAMAD-NOFOZI , root3r , sir.h4m1d , m0hamad.black , whitewolf
, mr.s4jj4d , mr.turk , 0day , pi.hack , l3gi0n, nazanin_wild and 0xdevil


Disclaimer & Information:
=========================
The information provided in this advisory is provided as it is without
any warranty. Vulnerability Lab disclaims all warranties, either
expressed or implied,
including the warranties of merchantability and capability for a
particular purpose. Vulnerability-Lab or its suppliers are not liable in
any case of damage,
including direct, indirect, incidental, consequential loss of business
profits or special damages, even if Vulnerability-Lab or its suppliers
have been advised
of the possibility of such damages. Some states do not allow the
exclusion or limitation of liability for consequential or incidental
damages so the foregoing
limitation may not apply. We do not approve or encourage anybody to
break any licenses, policies, deface websites, hack into databases or
trade with stolen data.

Domains: www.vulnerability-lab.com - www.vuln-lab.com
- www.evolution-sec.com
Contact: admin@vulnerability-lab.com -
research@vulnerability-lab.com - admin@evolution-sec.com
Section: magazine.vulnerability-lab.com -
vulnerability-lab.com/contact.php -
evolution-sec.com/contact
Social: twitter.com/vuln_lab -
facebook.com/VulnerabilityLab -
youtube.com/user/vulnerability0lab
Feeds: vulnerability-lab.com/rss/rss.php -
vulnerability-lab.com/rss/rss_upcoming.php -
vulnerability-lab.com/rss/rss_news.php
Programs: vulnerability-lab.com/submit.php -
vulnerability-lab.com/list-of-bug-bounty-programs.php -
vulnerability-lab.com/register.php

Any modified copy or reproduction, including partially usages, of this
file requires authorization from Vulnerability Laboratory. Permission to
electronically
redistribute this alert in its unmodified form is granted. All other
rights, including the use of other media, are reserved by
Vulnerability-Lab Research Team or
its suppliers. All pictures, texts, advisories, source code, videos and
other information on this website is trademark of vulnerability-lab team
& the specific
authors or managers. To record, list, modify, use or edit our material
contact (admin@ or research@vulnerability-lab.com) to get a ask permission.

Copyright © 2016 | Vulnerability Laboratory -
[Evolution Security GmbH]™

--
VULNERABILITY LABORATORY - RESEARCH TEAM
SERVICE: www.vulnerability-lab.com
CONTACT: research@vulnerability-lab.com

Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    0 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close