XWiki allows RCE from script right in configurable sections
Impact
Any user with script rights can perform arbitrary remote code execution by adding instances of XWiki.ConfigurableClass to any page. This compromises the confidentiality, integrity and availability of the whole XWiki installation.
To reproduce on a instance, as a user with script rights, edit your user profile and add an object of type XWiki.ConfigurableClass ("Custom configurable sections").
Set "Display in section" and "Display in category" to other, "Scope" to Wiki and all spaces and "Heading" to:
#set($codeToExecute = 'Test') #set($codeToExecuteResult = '{{async}}{{groovy}}services.logging.getLogger("attacker").error("Attack from Heading succeeded!"){{/groovy}}{{/async}}')
Save the page and view it, then add ?sheet=XWiki.AdminSheet&viewer=content§ion=other to the URL.
If the logs contain "attacker - Attack from Heading succeeded!", then the instance is vulnerable.
Patches
This has been patched in XWiki 15.10.9 and 16.3.0.
Workarounds
We're not aware of any workaround except upgrading.
References
- https://jira.xwiki.org/browse/XWIKI-21207
- https://github.com/xwiki/xwiki-platform/commit/8493435ff9606905a2d913607d6c79862d0c168d
For more information
If you have any questions or comments about this advisory:
- Open an issue in Jira XWiki.org
- Email us at Security Mailing List
Czego dotyczy
Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.
| Platforma | Paczka | Podatne wersje | Poprawka w wersji |
|---|---|---|---|
| Java / Kotlin (Maven) | org.xwiki.platform:xwiki-platform-administration-ui | >= 2.3, < 15.10.9, >= 16.0.0-rc-1, < 16.3.0 | 15.10.9, 16.3.0 |
Odnośniki
- Wektor CVSS
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H- Słabość (CWE)
CWE-862- Platforma
- Java / Kotlin (Maven)
- Paczka
org.xwiki.platform:xwiki-platform-administration-ui- Ujawniono
- 12.12.2024
- Aktualizacja
- 11.10.2026 12:22
Źródła i licencje
OSV / GitHub Advisory Database - GHSA-r279-47wg-chpr - CC BY 4.0
Historia podatności: org.xwiki.platform:xwiki-platform-administration-ui
Wszystkie opisane podatności tej paczki (Java / Kotlin (Maven)), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.
- Wszystkich wpisów
- 11
- Pierwsza → ostatnia
- 07.2021 12.2024
- Bez poprawki
- 0
- Wykorzystywana w atakach
- 0
Rozkład istotności
- Krytyczna 8
- Wysoka 2
- Średnia 1
Ujawnienia w latach
- 2021: 1
- 2022: 2
- 2023: 6
- 2024: 2
- 2025: 0
- 2026: 0
-
XWiki allows RCE from script right in configurable sections ten wpis
Dowiedz się, które podatności dotyczą Twojej aplikacji
Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.