Atomic Server wave (4 GHSAs): unclaimed setup invite hands the whole Drive to the first caller¶
Source: GitHub Security Advisories published 2026-11-18T20:41-20:42Z for joepmeneer/atomic-server (unreviewed, GHSA version fields empty; fixes are on develop, no release cut at scan time). All four advisories ship source traces and working PoCs against a stock Docker deployment (joepmeneer/atomic-server:develop, port 9883).
Wave in one line: a self-hosted Linked-Data drive provisions a well-known /setup invite whose redemption binds nothing to the redeemer, its generic resource dispatcher returns before the authorization check whenever the path names an endpoint, the download handler trusts a user-settable stored property as a filesystem path, and uploaded files are rendered same-origin with no CSP, so the whole chain from anonymous to permanent account takeover is documented in the advisories themselves.
Authorized lab validation only
Validate against your own disposable joepmeneer/atomic-server container. The /setup leg is first-claim-wins: redeeming it on any instance you do not own destroys the owner's claim state. Never probe third-party instances, never redeem invites, never write commits outside your own lab Drive.
Advisory table¶
| GHSA | CVE | Sev. | Boundary |
|---|---|---|---|
| GHSA-pfwx-xjp4-qxcj | CVE-2026-69157 | critical 9.8 | The server auto-creates a well-known invite at {server}/setup with write = true, target = Drive root, usagesLeft = 1. Redemption discards the redeemer's identity (for_agent: _ in server/src/plugins/invite.rs:22), so possession of the URL is the only credential: an anonymous GET /setup?public-key=<attacker ed25519 key> has the server create a new Agent and grant it write access to the entire Drive. On a not-yet-claimed instance this is full takeover with zero credentials. |
| GHSA-ff87-73jp-f3v4 | CVE-2026-69158 | high | Unauthenticated full-response SSRF on GET /bookmark?url=...: the endpoint is registered unconditionally (appstate.rs:69), and in get_resource_extended (lib/src/db.rs:1010-1017) a subject that matches an endpoint path returns via call_endpoint before check_read is ever reached; the handler fetches the URL and reflects the parsed response body. The fetch helper validates only url.starts_with("http") (helpers.rs:78-91); a repo-wide grep finds no loopback/private/link-list deny-list anywhere. Loopback services, internal admin panels, and link-local cloud metadata are readable verbatim. |
| GHSA-8vc4-8hjq-988p | CVE-2026-69156 | high | Commit apply enforces no allowlist of writable properties, so any agent with write on a parent can set internalId (plain string, no character validation) on a resource it owns; the /download handler then does file_path.push(internalId); NamedFile::open(...) verbatim (handlers/download.rs:56-65) with no containment check, and because PathBuf::push with an absolute path replaces the buffer, /etc/shadow-style absolute values work directly. Highest-value target: the server config file holding the root agent private key = full server compromise. Only the upload path sanitizes; the download path trusts the stored value. The handler never checks the resource is even a File. |
| GHSA-x277-3wcg-g9r2 | CVE-2026-69155 | high | Files uploaded via POST /upload are served back by GET /download/{path} with Content-Disposition: inline for text/html and image/svg+xml (actix-files 0.6.6 behavior), same origin as the app UI, with no CSP and no X-Content-Type-Options: nosniff on that route (CSP exists only on the SPA handler). The atomic_session cookie is set via document.cookie (not HttpOnly) and the agent's Ed25519 private key sits in same-origin IndexedDB, so one stored-XSS view exfiltrates the private key = permanent account takeover, not just session theft. |
Why this is worth an operator page¶
- Provisioning artifacts are first-class recon targets, and first-claim-wins means timing is the attack. The
/setupinvite is created automatically, sits at a guessable path, and authenticates by possession of the URL alone: the redeeming identity is literally discarded (for_agent: _). This is the same transient-state family as the Oct 14 Collabora "not-running window" and the Nov 13 NocoDB empty-admin bootstrap: a product has an unowned interval between install and claim, and whoever hits the claim endpoint during it owns the instance. Audit rule for any app with an install/claim flow: enumerateGET /setup,/install,/welcome,/claim,/init, check whether redemption binds the redeemer (session, CSRF, capability, existing account) or just the URL, and check whether the artifact exists before any admin action. For bug hunters, fresh-deploy SaaS trials and community instances are the harvest; theusagesLeft = 1counter means this is a race you can win passively by polling. - Authorization order in a generic dispatcher is the whole security model. The SSRF is not a missing auth annotation on the bookmark handler; it is
if is_endpoint { return self.call_endpoint(...) }sitting abovehierarchy::check_read(db.rs:1010-1017). Any path that names a registered endpoint escapes the permission hierarchy entirely, andcall_endpointitself performs no check. This is the path-class carve-out rule (siblings: Sept 19 WP nopriv AJAX, Oct 7 Backstage/servicesroute, Nov 12 Payara admin-header waiver) in its purest readable form. Decision-table proof shape for any dispatcher-style app: request the same resource path as a resource read (expect 403 for anonymous) vs. as an endpoint invocation (observed 200) and publish the mismatch. Grep pattern:returnstatements in the authorization function that precede the permission check. - Sanitize-on-write does not cover read; audit every reader of every stored field. The
internalIdleg is the validate-target-vs-read-target mismatch: upload sanitizes filenames, download trusts the stored string as a path, and the property write that plants it needs no special privilege because Commit apply has no server-managed-property denylist. Two greps find this class anywhere: (1) consumers of stored string fields that hitPathBuf::push/path.join/ file open without a containment check, remembering that absolute-path push replaces the base (the join-escape variant of the July 28 extraction lessons), and (2) any "apply arbitrary property changes" API (JSON merge, PATCH, commit/import) asked: which properties are server-managed and rejected from external writes? Missing denylist = every confinement-by-trusted-writer assumption downstream is void. - The credential model changes what XSS costs. Standard framing prices stored XSS as session theft; here the same-origin inline render plus JS-readable session cookie plus Ed25519 private key in IndexedDB means one
<script>on a/downloadURL permanently takes over the identity, because the private key is the identity and it never rotates. Whenever a web app holds client-held cryptographic keys (agent keys, wallet keys, E2E vault keys), ask what an XSS sink can read beyond cookies, and price XSS accordingly in reports. The file-serving defaults battery is reusable on any product with a download route:Content-Dispositionper MIME,nosniff, CSP coverage per route family (not just the SPA), and same-origin-vs-dedicated-domain for user content. - Full-response SSRF without a deny-list is an internal-network map. The advisors' own repo-wide grep for
is_loopback|is_private|169.254|127.0.0.1finding nothing is the model for documenting SSRF severity: prove loopback read, prove link-local metadata, and quote the absence of filtering code. The bookmark handler ignoring itsfor_agentparameter is the same-discarded-identity twin of the invite leg, worth noting as a code smell to grep: handlers that destructure the caller but use it nowhere.
Validation workflow (authorized scope only)¶
- Spin up your own lab instance.
docker run -p 9883:9883 joepmeneer/atomic-server, fresh store. All PoCs in the advisories run against this; keep everything in your own container. - Claim-state probe (positive control only).
GET /setupwithAccept: application/ad+jsonon your own fresh instance: recordinvite/write,invite/target,usagesLeft. Redeem once with a key you generated, confirm 200 +redirectAgent, confirm the instance is now claimed. Evidence = the invite resource before/after. - Endpoint-dispatch authz differential. Build a table: same path, three principals (anonymous, synthetic low agent, admin), two request shapes (resource read vs. endpoint invocation). For
/bookmark, pointurlat an owned canary and at your own container's loopback service, capture reflected-body mismatch tables. Cloud-metadata proof only against your own metadata-emulating canary, never 169.254.169.254 of a host you don't own. - Stored-field read sink. Create a resource in your own Drive, set
internalIdto a relative traversal into a disposable canary file you placed outside the data dir, thenGET /download. Absolute-path push proof against a synthetic world-readable marker file, not/etc/shadow-equivalent secrets. Record the property-write decision table: what a low agent may set vs. what should be server-managed. - Inline-render check. Upload an inert marker
text/html(no attack payload), fetch the/downloadresponse, and capture the header set:Content-Disposition,Content-Security-Policy,X-Content-Type-Options, cookieHttpOnly/Secureflags. The header diff is the finding; no script execution needed to prove the sink. - Report as one wave. Four GHSAs share two root causes (identity-discarding handlers, stored-value-trusting readers); grouping shows the codebase-level pattern and raises triage priority.
Related pages¶
- Oct 7 Backstage wave for route-family carve-outs around auth layers
- Sept 21 auth-precedence page for onboarding-race and flat-authz siblings
- Nov 13 NocoDB wave for the empty-bootstrap/first-claim family
- Sept 18 extraction-before-verification page and May 6 archive extraction batch for stored-value and path-push containment lessons