llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Maven · org.xwiki.platform:xwiki-platform-web-templates

GHSA-GHF6-2F42-MJH9

XWiki users can be tricked to execute scripts as the create page action doesn't display the page's title

Parche disponible
Descargar PNG JSON
CVSS
—
critical
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones14.10.12 · 15.5-rc-1
Exposición1.121 dDesde la divulgación, 25 oct 2023, 4:13 p. m.
Detección1.118 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada
25 oct 23
8 nov 23
17 nov 26
20 nov 26
25 oct 23
1 ago 24
8 may 25
12 feb 26
20 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-GHF6-2F42-MJH9 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### Impact
In XWiki, it is possible to pass a title to the page creation action that isn't displayed at first but then executed in the second step. This can be used by an attacker to trick a victim to execute code, allowing script execution if the victim has script right or remote code execution including full access to the XWiki instance if the victim has programming right.

For the attack to work, the attacker needs to convince the victim to visit a link like `<xwiki-host>/xwiki/bin/create/NonExistingSpace/WebHome?title=$services.logging.getLogger(%22foo%22).error(%22Script%20executed!%22)` where `<xwiki-host>` is the URL of the Wiki installation and to then click on the "Create" button on that page. The page looks like a regular XWiki page that the victim would also see when clicking the button to create a page that doesn't exist yet, the malicious code is not displayed anywhere on that page. After clicking the "Create" button, the malicious title would be displayed but at this point, the code has already been executed and the attacker could use this code also to hide the attack, e.g., by redirecting the victim again to the same page with an innocent title. It thus seems plausible that this attack could work if the attacker can place a fake "create page" button on a page which is possible with edit right.

### Patches
This has been patched in XWiki 14.10.2 and 15.5RC1 by displaying the title already in the first step such that the victim can notice the attack before continuing.

### Workarounds
It is possible to manually patch the modified files from the patch https://github.com/xwiki/xwiki-platform/commit/199e27ce7016757e66fa7cea99e718044a1b639b in an existing installation. For the JavaScript change, the minified JavaScript file would need to be obtained from a build of XWiki and replaced accordingly.

Versiones

Rangos afectados

Afectada Corregida
org.xwiki.platform:xwiki-platform-web-templates< 14.10.12
org.xwiki.platform:xwiki-platform-web≥ 7.2-milestone-2 < 14.10.12
org.xwiki.platform:xwiki-platform-web-templates≥ 15.0-rc-1 < 15.5-rc-1
7.2-milestone-2
14.10.12
15.0-rc-1
15.5-rc-1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Mavenorg.xwiki.platform:xwiki-platform-web-templates
Corregida 14.10.12, 15.5-rc-1 — —
Mavenorg.xwiki.platform:xwiki-platform-web
Corregida 14.10.12 — —
Versiones corregidas14.10.1215.5-rc-1
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-45135
Otrahttps://github.com/xwiki/xwiki-platform/security/advisories/GHSA-ghf6-2f42-mjh9
Otrahttps://github.com/xwiki/xwiki-platform/commit/199e27ce7016757e66fa7cea99e718044a1b639b
Otrahttps://github.com/xwiki/xwiki-platform
Otrahttps://jira.xwiki.org/browse/XWIKI-20869

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.