Soumettre #914893: 0x4m4 hexstrike-ai v1.0 Arbitrary File Writeinformation

Titre0x4m4 hexstrike-ai v1.0 Arbitrary File Write
DescriptionThe HexStrike AI server exposes two file management endpoints — /api/files/create (POST) and /api/files/modify (POST) — that allow a client to create or modify files on the server's filesystem. The FileOperationsManager class uses Path("/tmp/hexstrike_files") / filename to construct the target path, but filename is entirely user-controlled and no path traversal protection is applied: no .resolve() check, no .. filtering, no chroot. An unauthenticated remote attacker can supply filename values containing ../ sequences to write to arbitrary locations on the filesystem, such as ~/.ssh/authorized_keys, ~/.bashrc, /etc/cron.d/, or any other file writable by the server process. This directly leads to persistent remote code execution.
La source⚠️ https://github.com/0x4m4/hexstrike-ai/issues/225
Utilisateur
 ez-lbz (UID 87033)
Soumission04/08/2026 14:35 (il y a 1 mois)
Modérer13/09/2026 07:08 (1 month later)
StatutAccepté
Entrée VulDB403224 [0x4m4 HexStrike AI API Files Endpoint hexstrike_server.py FileOperationsManager filename directory traversal]
Points20

Interested in the pricing of exploits?

See the underground prices here!