Document Title: =============== Wordpress Robo Gallery v2.0.14 - Code Execution Vulnerability References (Source): ==================== 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: ) 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