| Titre | 0x4m4 hexstrike-ai v1.0 RCE |
|---|
| Description | The HexStrike AI server exposes 90+ tool execution endpoints under /api/tools/* (e.g., /api/tools/nmap, /api/tools/hydra, /api/tools/sqlmap, /api/tools/msfvenom, /api/tools/metasploit). Every endpoint follows the same pattern: user-supplied parameters (especially additional_args, but also target, username, password, scan_type, payload, etc.) are concatenated directly into a shell command string using Python f-strings, then executed via subprocess.Popen(..., shell=True). No input sanitization, escaping, or allowlisting is performed. The server requires no authentication and binds to 0.0.0.0.
An attacker can inject arbitrary shell commands by appending shell metacharacters (;, |, &&, $(), backticks) in any of the user-controllable fields. Each of the 90+ endpoints is independently vulnerable. |
|---|
| La source | ⚠️ https://github.com/0x4m4/hexstrike-ai/issues/224 |
|---|
| Utilisateur | ez-lbz (UID 87033) |
|---|
| Soumission | 04/08/2026 14:34 (il y a 1 mois) |
|---|
| Modérer | 13/09/2026 07:08 (1 month later) |
|---|
| Statut | Accepté |
|---|
| Entrée VulDB | 403223 [0x4m4 HexStrike AI API Tools Endpoint hexstrike_server.py subprocess.Popen élévation de privilèges] |
|---|
| Points | 20 |
|---|