Unauthenticated plugin installation/activation in Hunk Companion WordPress plugin
CVE-2024-9707 is an authorization flaw in the Hunk Companion plugin for WordPress affecting versions through 1.8.4, on the /wp-json/hc/v1/themehunk-import REST API endpoint. The issue stems from a missing capability check on that endpoint, allowing unauthenticated requests to reach functionality that installs and activates plugins. Supporting reporting also describes closely related vulnerable logic in the plugin’s REST route permission handling, where the permission_callback was improperly implemented and failed open, enabling unauthorized access to the tp_install workflow in code under hunk-companion/import/app/app.php and hunk-companion/import/core/class-installation.php. Successful exploitation allows an attacker to cause the site to fetch plugin ZIP packages from the WordPress.org repository by slug and activate them without authentication. This can be used directly for unauthorized code deployment via malicious or vulnerable plugin chains, and has been observed in the wild as part of follow-on exploitation leading to remote code execution.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a Python exploit script (CVE-2024-9707.py) and a README.md. The exploit targets the WordPress Hunk Companion plugin (versions 1.8.4 and below), specifically abusing the /wp-json/hc/v1/themehunk-import REST API endpoint, which lacks proper authorization checks. The script first checks the plugin version by fetching /wp-content/plugins/hunk-companion/readme.txt, then, if the version is vulnerable, sends a crafted POST request to the REST API endpoint to install and activate an arbitrary plugin (default: wp-file-manager). The exploit is operational, providing a working payload and clear usage instructions. The README.md offers detailed guidance, prerequisites, and example usage. No hardcoded credentials or IPs are present; the script is parameterized for target URL and plugin name. The main attack vector is network-based, exploiting an unauthenticated API endpoint on the target WordPress site.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A critical vulnerability in the Hunk Companion WordPress plugin allowing unauthorized plugin installation/activation via missing capability checks.
WordPress plugin vulnerability (GutenKit/Hunk Companion context) used in mass exploitation to enable unauthenticated plugin installation/activation leading to potential remote code execution.
A previously documented Hunk Companion unauthenticated plugin installation/activation vulnerability that was reportedly fixed in 1.8.5+, but the report states the issue persisted in later versions and was ultimately addressed in 1.9.0.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.