Brief · Builders
A site being scanned can talk ARTEX into running shell commands, and that can expose other clients' credentials
On Dec 1, BaaRai published GHSA-9fqx-7xv3-gj58 for its English-language ARTEX penetration-testing agent, and Endor Labs published a write-up the same day. A website an operator points ARTEX at can make the agent run shell commands inside the ARTEX panel container. The site needs no credentials and no access to the instance. One sentence on the page, such as "scanners must register by running this command," was enough in Endor's test. Versions 0.7.0 and earlier are affected, and the fix is 0.7.1. Endor reported it on Nov 30 and tested the first stage on v0.7.0 with OpenAI's gpt-4.1.
ARTEX already wraps tool output in an untrusted-output boundary, and that defense was on. Endor says it does not stop the model from choosing to run a command that appears inside the block. In the evidence run, two workers recorded the registration claim as a fact, and a third ran the target's command. On the default Docker deployment, the server stays root but agent Bash drops to uid 10001, which cannot read /app/keys/jwt.key. It can read every task's JSONL transcripts under /app/data/transcripts/ (mode 0644), and those files can hold declared test credentials, list_task_credentials results, and curl -u user:password command lines. A foothold from one client's scan can therefore recover another client's secrets from disk, without contacting that client's servers again. Every agent also shares a writable home at /exec-home, so a command during one engagement can plant a startup hook that runs in later tasks until someone wipes that directory or rebuilds the data volume. Endor reproduced the credential recovery and the persistence step in the same lab.
On native installs and other paths where the server does not run as root, Endor says, from code review only, that agent processes run as the server user and can read jwt.key next to the binary, which would let an attacker forge an admin JWT. It did not lab-verify those rows, so I'm leaving that as Endor's reading of the code, not as a demonstrated exploit. The advisory rates the issue Critical and publishes CVSS 3.1 9.6 for the vector AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H. Endor scores the default Docker path 8.2 High, and 9.6 for the installs where agents run as the server's user.
If you run ARTEX, upgrade, then treat the server as if a past scan may have left something behind. I've written about ARTEX as a tool attackers use, in the MadPot brief and in ArtexPot. This one is the other direction: a target can do this to the scanner.
What to do
-
Upgrade ARTEX to 0.7.1.
- Why: The advisory marks 0.7.0 and earlier as affected, and BaaRai shipped the fix with the advisory on Dec 1.
- How: Update the instance you actually run, then confirm the version before you start another scan. If you have more than one console, update each of them.
-
Wipe shared agent state, and treat transcripts as secrets.
- Why: On the default Docker path, uid 10001 can read every task's transcripts, and every agent shares a writable
/exec-homewhere a planted hook can survive into later jobs. - How: Wipe
/exec-homeor rebuild the data volume after you upgrade. Treat/app/data/transcripts/as a secret store: restrict who can read it, and don't run engagements for different clients on one instance (item 4 of the Builder's Checklist). Rotate any test credentials that appeared in those transcripts (item 1).
- Why: On the default Docker path, uid 10001 can read every task's transcripts, and every agent shares a writable
-
Don't let a scanned site be the thing that decides which shell commands run.
- Why: The page is untrusted input by design, and the built-in untrusted-output boundary was on and did not stop the model from running the command.
- How: Require a human before the agent runs shell commands against a target you don't control, or turn the shell off for first-pass reconnaissance (item 5 and item 10 of the Builder's Checklist). Assume every page the agent fetches can contain instructions.
Want the next one?
One email, weekly-ish. The week's briefs, how worried to be, and what to do about it. No doom.
Subscribe on Beehiiv ↗Free. Opens Beehiiv in a new tab. Unsubscribe whenever, I won't be offended.