CVE-2022-36099
XWiki Platform Wiki UI Main Wiki Eval Injection vulnerability
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
XWiki Platform Wiki UI Main Wiki is software for managing subwikis on XWiki Platform, a generic wiki platform. Starting with version 5.3-milestone-2 and prior to versions 13.10.6 and 14.4, it's possible to inject arbitrary wiki syntax including Groovy, Python and Velocity script macros via the request (URL parameter) using the `XWikiServerClassSheet` if the user has view access to this sheet and another page that has been saved with programming rights, a standard condition on a public read-only XWiki installation or a private XWiki installation where the user has an account. This allows arbitrary Groovy/Python/Velocity code execution which allows bypassing all rights checks and thus both modification and disclosure of all content stored in the XWiki installation. Also, this could be used to impact the availability of the wiki. This has been patched in versions 13.10.6 and 14.4. As a workaround, edit the affected document `XWiki.XWikiServerClassSheet` or `WikiManager.XWikiServerClassSheet` and manually perform the changes from the patch fixing the issue. On XWiki versions 12.0 and later, it is also possible to import the document `XWiki.XWikiServerClassSheet` from the xwiki-platform-wiki-ui-mainwiki package version 14.4 using the import feature of the administration application as there have been no other changes to this document since XWiki 12.0.
XWiki Platform Wiki UI Main Wiki es un software para administrar subwikis en XWiki Platform, una plataforma wiki genérica. A partir de la versión 5.3-milestone-2 y anteriores a 13.10.6 y 14.4, es posible inyectar sintaxis wiki arbitraria, incluidas macros de secuencias de comandos de Groovy, Python y Velocity por medio de la petición (parámetro de URL) utilizando "XWikiServerClassSheet" si el usuario presenta acceso de visualización a esta hoja y otra página que ha sido guardada con derechos de programación, una condición estándar en una instalación de XWiki pública de solo lectura o una instalación de XWiki privada donde el usuario presenta una cuenta. Esto permite una ejecución arbitraria de código Groovy/Python/Velocity, lo que permite omitir todas las verificaciones de derechos y, por lo tanto, modificar y divulgar todo el contenido almacenado en la instalación de XWiki. Además, esto podría usarse para afectar la disponibilidad de la wiki. Esto ha sido parcheado en las versiones 13.10.6 y 14.4. Como mitigación, edite el documento afectado "XWiki.XWikiServerClassSheet" o "WikiManager.XWikiServerClassSheet" y realice manualmente los cambios del parche que corrigen el problema. En XWiki versiones 12.0 y posteriores, también es posible importar el documento "XWiki.XWikiServerClassSheet" desde el paquete xwiki-platform-wiki-ui-mainwiki versión 14.4 usando la función de importación de la aplicación de administración ya que no ha habido otros cambios en este documento desde XWiki versión 12.0
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-07-15 CVE Reserved
- 2022-09-08 CVE Published
- 2024-05-28 EPSS Updated
- 2024-08-03 CVE Updated
- 2024-08-03 First Exploit
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-94: Improper Control of Generation of Code ('Code Injection')
- CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
- CWE-116: Improper Encoding or Escaping of Output
CAPEC
References (3)
URL | Tag | Source |
---|
URL | Date | SRC |
---|---|---|
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-xr6m-2p4m-jvqf | 2024-08-03 |
URL | Date | SRC |
---|---|---|
https://github.com/xwiki/xwiki-platform/commit/fc77f9f53bc65a4a9bfae3d5686615309c0c76cc | 2023-06-27 |
URL | Date | SRC |
---|---|---|
https://jira.xwiki.org/browse/XWIKI-19746 | 2023-06-27 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Xwiki Search vendor "Xwiki" | Xwiki Search vendor "Xwiki" for product "Xwiki" | >= 5.4 < 13.10.6 Search vendor "Xwiki" for product "Xwiki" and version " >= 5.4 < 13.10.6" | - |
Affected
| ||||||
Xwiki Search vendor "Xwiki" | Xwiki Search vendor "Xwiki" for product "Xwiki" | >= 14.0 < 14.4 Search vendor "Xwiki" for product "Xwiki" and version " >= 14.0 < 14.4" | - |
Affected
| ||||||
Xwiki Search vendor "Xwiki" | Xwiki Search vendor "Xwiki" for product "Xwiki" | 5.3 Search vendor "Xwiki" for product "Xwiki" and version "5.3" | milestone2 |
Affected
|