Descrizione
Instatic is an open source visual content management system for building static websites. Prior to 0.0.14, isSafeUrl() and safeUrl() in src/core/html-sanitize/index.ts remove tabs, newlines, carriage returns, and characters handled by String.prototype.trim(), but leave other leading C0 control characters that browsers discard before parsing a URL scheme. A low-privileged editor can place a dangerous URL behind one of those controls in a URL property or custom HTML attribute, allowing src/core/publisher/escapeProps.ts and the shared URL sanitizer to emit it into rendered content. When an Owner or Admin activates the element in the same-origin admin editor canvas, script executes with the victim's application authority and can drive admin APIs to read protected data, create an owner account, or install a plugin. This issue is fixed in version 0.0.14.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.7, EPSS 0.5% (percentile 43).
Versioni da aggiornare
- CoreBunch Instatic: vulnerabile la versione
< 0.0.14→ 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 |
|---|---|---|---|
| CoreBunch | Instatic | < 0.0.14 | — |
Riferimenti
- Riferimentohttps://github.com/CoreBunch/Instatic/commit/d97cac231e759d5ca445617193e53243d970b629
- Riferimentohttps://github.com/CoreBunch/Instatic/pull/275
- Riferimentohttps://github.com/CoreBunch/Instatic/releases/tag/v0.0.14
- Riferimentohttps://github.com/CoreBunch/Instatic/security/advisories/GHSA-pqcp-872g-gmp8
- Riferimentohttps://github.com/CoreBunch/Instatic/security/advisories/GHSA-pqcp-872g-gmp8