Descrizione
Group-Office is an enterprise customer relationship management and groupware tool. Prior to versions 6.8.167, 25.0.102, and 26.0.27, the Contact/labels JMAP endpoint in GroupOffice accepts a fully attacker-controlled template string (tpl parameter) that is passed without restriction to TemplateParser::parse(). When the template contains an [assign] block whose expression includes a {{...}} variable reference, the engine calls eval() on the expanded expression after running it through a validateExpression() guard. The guard double-quotes unrecognized tokens, but PHP 7+ allows a string enclosed in parentheses to be invoked as a function ("system")("id") is valid PHP and calls system("id"). A single authenticated HTTP request is sufficient to execute arbitrary OS commands as the web server user (www-data). This issue has been patched in versions 6.8.167, 25.0.102, and 26.0.27.
Come correggere
Priorità: Alta — pianificare la correzione entro pochi giorni. Motivazione: CVSS 9.4, EPSS 0.3% (percentile 29).
Versioni da aggiornare
- Intermesh groupoffice: vulnerabile la versione
< 6.8.167→ installare l'ultima release supportata dal vendor. - Intermesh groupoffice: vulnerabile la versione
< 25.0.102→ installare l'ultima release supportata dal vendor. - Intermesh groupoffice: vulnerabile la versione
< 26.0.27→ installare l'ultima release supportata dal vendor.
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 |
|---|---|---|---|
| Intermesh | groupoffice | < 6.8.167 | — |
| Intermesh | groupoffice | < 25.0.102 | — |
| Intermesh | groupoffice | < 26.0.27 | — |
Riferimenti
- Riferimentohttps://github.com/Intermesh/groupoffice/releases/tag/v25.0.102
- Riferimentohttps://github.com/Intermesh/groupoffice/releases/tag/v26.0.27
- Riferimentohttps://github.com/Intermesh/groupoffice/releases/tag/v6.8.167
- Riferimentohttps://github.com/Intermesh/groupoffice/security/advisories/GHSA-4m9w-3p93-6cwx