security: HIGH-1 authenticated->host-root RCE hardening (+ P5 mutation authz) #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
HIGH-1: authenticated tailnet node -> host-root RCE (from the 2026-07-10 audit)
Full report:
~/audits/kua-deploy-security-audit-20260710.md(SOL-corrected). Not public-exploitable (needs tailnet + accepted identity), but the engine runs as ROOT with docker.sock + root SSH keys + vault token, so any authed-node RCE = full host.Confirmed sinks:
run()=/bin/sh -c (~521); checkout/fetch/build (~783); clone/probe (~566); release (~638); status GET (~1321); rollback/vault (~1200); rawpost_deploy(~1072); PUT stores payload (~1491);GET /api/v1/apps→appStatus→shell (~1550).Fix shape:
run()API → executable + argv/cwd (no shell)/root/apps); allowlist remotes / repo hosts / vault ids / service namespost_deploywith NAMED STRUCTURED actions (a safe-char regex around a raw shell hook is NOT enough)__proto__etc.)Policy decision needed: is anything using
post_deploy? Only coder-core had it; 0 live registry entries do now → recommend REMOVE outright rather than harden.Also P5 (same audit): restrict registry MUTATION to an explicit admin capability — today any accepted tailnet node passes the global hook (~69, ~326, ~1489). Interacts with load-time validation.
Worker drafts + tests; HUMAN-in-loop merge; control-plane rollout (P-ROLLOUT). Do NOT auto-deploy.