What happened
ARTEX 0.4.0 before 0.5.0 lets an unauthenticated remote attacker claim the admin account by calling the first-run /api/auth/init endpoint without a setup token, then set the admin password. ARTEX is an autonomous AI-powered penetration-testing agent in active criminal use, and its container natively holds operator secrets. CVSS 8.1.
Why it matters
ARTEX is now itself an attack surface: its own targets can counter-exploit it. Taking the admin role over an ARTEX instance yields the operator's LLM API keys, model credentials and database passwords, and the agent's own prompts can be repointed to redirect the campaign.
Attack vector
The first-run /api/auth/init endpoint does not require a setup token, so an unauthenticated remote attacker can call it on an uninitialized instance exposed on port 8787 and set the admin password, taking over tasks, files, stored LLM API keys and credentials.
Affected systems
ARTEX 0.4.0 before 0.5.0 (go-mitmproxy based agentic offensive AI tool)
Mitigation
Upgrade ARTEX to 0.5.0+ (GitHub commit 2aab3e82107c050a0589af8eecc3d0d899ff714a) and ensure instances are not exposed to untrusted networks before initialization completes.