Descrizione
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.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.7, EPSS 0.3% (percentile 18).
Versioni da aggiornare
- ontola atomic-server: vulnerabile la versione
>= 0.30.0, < 0.40.3→ installare l'ultima release supportata dal vendor.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare una Content-Security-Policy restrittiva e regole WAF contro XSS; invitare gli utenti a non aprire link sospetti verso l'applicazione.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| ontola | atomic-server | >= 0.30.0, < 0.40.3 | — |
Riferimenti
- Riferimentohttps://github.com/ontola/atomic-server/commit/457c1dc9af4cd00d2aec89720718e504a49f392d
- Riferimentohttps://github.com/ontola/atomic-server/commit/8a8badfd3099765e62ccf6f92dc78a408a11106f
- Riferimentohttps://github.com/ontola/atomic-server/releases/tag/v0.40.3
- Riferimentohttps://github.com/ontola/atomic-server/security/advisories/GHSA-x277-3wcg-g9r2
- Riferimentohttps://github.com/ontola/atomic-server/security/advisories/GHSA-x277-3wcg-g9r2