Descrizione
Improper Neutralization of Special Elements Used in an Expression Language Statement ('Expression Language Injection') in EmailServices in Apache OFBiz 24.09 before 24.09.08 on all platforms allows a remote authenticated attacker holding only OFBTOOLS_VIEW and ACCOUNTING_VIEW, the two view-level permissions that open the Accounting application, to execute arbitrary operating system commands as the account running OFBiz, by submitting a ${groovy:...} expression as the bodyText or subject value to the shipped Send Per Email invoice form, because sendMailFromScreen passes those caller-supplied values through FlexibleStringExpander.expandString, which compiles and evaluates embedded Groovy on a class loader that carries none of the SecureASTCustomizer restrictions GroovyUtil.eval applies elsewhere, behind a service and request-map that declare no permission check beyond base authentication. Users are recommended to upgrade to version 24.09.08, which fixes this issue.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.8, EPSS 0.7% (percentile 55).
Versioni da aggiornare
- Apache Ofbiz: vulnerabili le versioni precedenti alla
24.09.08→ aggiornare alla24.09.08o successiva. - Apache Software Foundation Apache OFBiz: vulnerabili le versioni precedenti alla
24.09.08→ aggiornare alla24.09.08o successiva.
Patch e advisory
- Advisory del vendor: lists.apache.org/thread.html/7b2syzksp7klt9fvhdg0olld…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Bloccare l'accesso esterno al componente, applicare regole WAF per payload di code/template injection e monitorare l'esecuzione di processi figli.
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 |
|---|---|---|---|
| Apache | Ofbiz | < 24.09.08 | 24.09.08 |
| Apache Software Foundation | Apache OFBiz | < 24.09.08 | 24.09.08 |
Riferimenti
- Advisory del vendorhttps://lists.apache.org/thread.html/7b2syzksp7klt9fvhdg0olldvs2g83lz