XWiki fixes HQL injection flaw that enabled unauthenticated database extraction

  • XWiki Platform
  • HQL injection
  • REST API
  • password hashes

Flaw allowed unauthenticated database extraction of sensitive data

Updates disable HQL and WXQL queries in REST API by default

Administrators can block specific endpoints to mitigate risk

XWiki Platform fixed an HQL injection vulnerability in its query REST API that could let unauthenticated attackers extract data from its database, including password hashes.

The flaw allowed attackers to bypass the HQL validator’s SELECT column whitelist through FROM clause injection and recover information using blind queries. Exposed data could include information from pages inaccessible to the attacker and passwords stored in configuration properties. The advisory also warns that slow queries could affect system availability.

XWiki fixed the vulnerability in versions 16.10.18, 17.10.5 and 18.2.0 by disabling HQL and WXQL queries in the REST API by default. As a workaround, administrators can block requests to the query endpoint at the web server or reverse proxy.