Descrizione
Akaunting 3.3.0 contains a stored cross-site scripting vulnerability in custom invoice payment terms. An authenticated Manager can save a crafted custom payment-term value. When an authorized user opens Invoice Settings for the same company, Akaunting inserts the stored value into a client-side event-handler expression, causing attacker-controlled JavaScript to execute in the victim's authenticated origin.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.2, EPSS 0.3% (percentile 23).
Versioni da aggiornare
- Akaunting Akaunting: vulnerabile la versione
3.3.0→ installare l'ultima release supportata dal vendor.
Indicazioni del vendor
Soluzione (testo originale del vendor):
Use a JavaScript-safe serializer such as Laravel Js::from() or a framework data binding for the custom payment-term value; validate it as a bounded integer when it represents a number of days; apply the vendor-fixed release once one is published.
Workaround (testo originale del vendor):
Use only predefined payment-term options, replace existing custom values, and restrict invoice-settings update access to trusted users until a vendor fix is available. Treat this as temporary mitigation rather than a fix.
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 |
|---|---|---|---|
| Akaunting | Akaunting | 3.3.0 | — |
Riferimenti
- Riferimentohttps://fluidattacks.com/advisories/rhiannon
- Riferimentohttps://github.com/akaunting/akaunting
- Riferimentohttps://github.com/akaunting/akaunting/blob/3.3.0/app/Abstracts/Http/SettingController.php
- Riferimentohttps://github.com/akaunting/akaunting/blob/3.3.0/app/View/Components/Form/Group/PaymentTerm.php
- Riferimentohttps://github.com/akaunting/akaunting/blob/3.3.0/resources/views/components/form/group/payment_term.blade.php