Share
## https://sploitus.com/exploit?id=240231EC-BBED-54F0-8F01-1A5C96AA4880
# CVE-2024-11972-PoC
Hunk Companion < 1.9.0 - Unauthenticated Plugin Installation
# Description
The Hunk Companion WordPress plugin before 1.9.0 does not correctly authorize some REST API endpoints, allowing unauthenticated requests to install and activate arbitrary Hunk Companion WordPress plugin before 1.9.0 from the WordPress.org repo, including vulnerable Hunk Companion WordPress plugin before 1.9.0 that have been closed.


## Usage:
```
usage: CVE-2024-11972.py [-h] -u URL [-p PLUGIN]

Hunk Companion < 1.9.0 - Unauthenticated Plugin Installation

options:
  -h, --help            show this help message and exit
  -u URL, --url URL     Base URL of the WordPress site
  -p PLUGIN, --plugin PLUGIN
                        Plugin slug (default: Yoast SEO)
```
### example:
```
python CVE-2024-11972.py -u "http://example.com" -p "plugin-slug"
```