GHSA-7QFP-GGGJ-2FV4
Script injection through the URL fragment value of o:hashParam
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 3.14.23 | org.omnifaces:omnifaces · -25 d desde divulgación | |
| Remediación | Parche 4.7.12 | org.omnifaces:omnifaces · -25 d desde divulgación | |
| Remediación | Parche 5.4.2 | org.omnifaces:omnifaces · -25 d desde divulgación | |
| Divulgación | Publicada | GHSA-7QFP-GGGJ-2FV4 divulgada · CVSS 6.1 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The `<o:hashParam>` value, sourced from the URL fragment, was written unescaped into the ajax callback script which the component emits. A value containing a single quote terminates the JavaScript string literal and the remainder executes in the victim's browser.
Details
`HashParam` writes the current value back to the client as `OmniFaces.HashParam.update('name', 'value')` inside the ajax response. Neither the name nor the value was escaped for a JavaScript string, so a fragment value such as `x');alert(1);//` closed the literal and injected statements into the emitted script. The payload executes on the follow-up ajax render.
The URL fragment is never sent to the server by the browser, so the value reaches the page through the component's own fragment to server round trip rather than through the request line. Exploitation requires a page which uses `<o:hashParam>` and a victim who opens a link the attacker controls.
Patches
Both the name and the value are now escaped for a JavaScript string before being written into the callback.
Upgrade to 3.14.23, 4.7.12 or 5.4.2.
Workarounds
None short of removing `<o:hashParam>` from affected pages.
Related advisories
Four further weaknesses affecting the same releases are tracked separately, each with its own affected range and fix:
- GHSA-fp43-vj7g-pg92 — forged combined resource IDs accepted without authenticity check
- GHSA-4w3g-h8rh-9hwj — session and view scoped WebSocket push channels not bound to their owning HTTP session
- GHSA-w3w6-9m25-g88p — the same weakness on the SSE transport, fixed in 5.4.3
- GHSA-3r7q-f6gv-vv3q — unbounded source map cache
Credits
Reported by Daniel Birtwhistle.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
mavenorg.omnifaces:omnifaces |
Corregida | 3.14.23, 4.7.12, 5.4.2 | -25 d · -25 d · -25 d | 5.5.7 no afectada |
3.14.234.7.125.4.2Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/omnifaces/omnifaces/security/advisories/GHSA-7qfp-gggj-2fv4Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
