Cloudflare Image Resizing plugin for WordPress (versions <= 1.5.6) suffers from a Missing Authentication vulnerability which allows Unauthenticated Remote Code Execution (RCE) via the rest_pre_dispatch hook.
Description:
The plugin's REST API endpoint fails to authenticate users and improperly sanitizes input in the hook_rest_pre_dispatch() method. This flaw enables attackers to inject and execute arbitrary PHP code by crafting malicious requests — with no login required.
🛠 Features of This Exploit
Professional, modular, and extensible Python script
Automatic detection of plugin vulnerability by parsing the readme.txt file
Multiple bypass techniques for WAF and restrictive environments:
try_exploit: Attempts exploitation with a given header set
exploit_all: Orchestrates all exploit attempts, switching header strategies automatically
scan: Checks for plugin presence and vulnerability
Nxploited (main): Argument parsing, reporting, and exploit workflow
⚠️ Disclaimer
This tool is for authorized security testing and educational purposes only.
The developer is not responsible for any misuse or damage caused by this code.