Skip to content
OpenAdvisories
High · 7.7 Public exploit CVE-2021-21380 EUVD-2021-0624GHSA-79rg-7mv3-jrr5

Rating Script Service expose XWiki to SQL injection

Published Mar 23, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

Description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions of XWiki Platform (and only those with the Ratings API installed), the Rating Script Service expose an API to perform SQL requests without escaping the from and where search arguments. This might lead to an SQL script injection quite easily for any user having Script rights on XWiki. The problem has been patched in XWiki 12.9RC1. The only workaround besides upgrading XWiki would be to uninstall the Ratings API in XWiki from the Extension Manager.

Affected products

VendorProductAffectedFixed
xwiki xwiki-platform < 12.9 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.xwiki.platform:xwiki-platform-ratings-api < 12.9 12.9 GHSA-79rg-7mv3-jrr5

References