
Published: 2024-10-16 | Migration, Backup, Staging – WPvivid <= 0.9.35 - Authenticated (Subscriber+) Arbitrary File Upload
The WPvivid WordPress plugin, designed for site migration and backups, is vulnerable to an arbitrary file upload flaw. This vulnerability allows authenticated users with low-level privileges to upload and extract ZIP files, potentially leading to remote code execution (RCE) if a malicious script is deployed within the extracted files.
A Python exploit script has been crafted to take advantage of this vulnerability using the following methodology:
If the exploitation is successful, the script will output:
[+] Logged in successfully.
[+] Target is vulnerable. Proceeding with exploitation.
[+] Uploading file: Success
[+] Confirming upload: Success
[+] Starting import: Success
[+] Shell uploaded successfully at: http://target-site.com/wp-content/nxploit.php
Ensure that a malicious shell.zip file exists in the same directory as the exploit script.
The shell.zip file should contain a PHP web shell (e.g., nxploit.php).
A valid WordPress account with Subscriber or higher privileges is required.
python CVE-2020-36842.py -u http://target-site.com -un username khaled -p password 123
The script will check the target version and log in using the provided credentials.
If the target is vulnerable, the script will upload shell.zip and extract it.
If successful, the script will provide a URL to the uploaded shell.
Once the shell is successfully uploaded and extracted, you can interact with it by sending commands via a URL:
http://target-site.com/wp-content/nxploit.php?cmd=pwd
To mitigate this vulnerability, it is strongly recommended to:
wp-content/uploads directory using .htaccess or server configurations.This vulnerability presents a serious risk as it enables authenticated attackers to upload and execute malicious files on a WordPress server. Site administrators should take immediate action to secure their installations.
Disclaimer: This document is intended for ethical security research and educational purposes only. Exploiting vulnerabilities without permission is illegal and punishable under applicable laws. ( Nxploit | Khaled_alenazi )