Sploitus

Exploit for Path Traversal in Apache Ofbiz

githubexploit · 2025-07-11

Exploit Code

README27 lines
## https://sploitus.com/exploit?id=867B39C0-3DC3-5A13-BE67-562216EADFEF
# 📌 Apache OFBiz RCE Exploit (CVE-2024-38856)

Ce script Python permet d’exploiter une vulnérabilité de type Remote Code Execution (RCE) sur Apache OFBiz (versions < 18.12.15), via un accès non autorisé à l’endpoint `/webtools/control/forgotPassword/ProgramExport`.

## 🛠️ Description

- **CVE** : CVE-2024-38856
- **Type** : Incorrect Authorization → Remote Code Execution
- **Composant** : Apache OFBiz
- **Versions affectées** : avant 18.12.15
- **Exploit** : Injection de code Groovy converti en Unicode (`\uXXXX`) envoyé via `POST`.

## 🚀 Fonctionnalités

- Exécution de commande Linux à distance (`--cmd`)
- Reverse shell via `busybox`/`nc` (`--shell`)
- Proxy supporté
- Sortie colorée et parsing intelligent de la réponse

## ⚙️ Usage

### 1. Exécution de commande simple

```bash
python3 cve-2024-38856_Scanner.py -u https://TARGET:8443 -c "id"
```