Ontola atomic-server
Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover
Atomic Server is an open source headless CMS and real-time database. From 0.30.0 until 0.40.3, an authenticated Agent with folder write access can use POST /upload to store HTML or SVG content that GET /download/{path} serves from the application origin through server/src/handlers/download.rs. The response sets Content-Disposition: inline and lacks forced attachment handling and X-Content-Type-Options: nosniff, allowing the browser to render the uploaded active content as the application. When a victim opens the link, the script can access the JavaScript-readable atomic_session cookie and the Agent private key in same-origin IndexedDB, enabling persistent account impersonation. This issue is fixed in version 0.40.3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.30.0, < 0.40.3
Fixed in 0.40.3
Mitigation
Upgrade atomic-server to 0.40.3 or later.
References
- Vendor advisory github.com/ontola/atomic-server/security/advis…
- Patch github.com/ontola/atomic-server/commit/457c1dc…
- Patch github.com/ontola/atomic-server/commit/8a8badf…
1 more
- Release notes github.com/ontola/atomic-server/releases/tag/v…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.