CVE-2022-29251: Cross-site Scripting in the Flamingo theme manager

Summary

25/05/2022
Yes i
High
7.4

CVE-2022-29251: Cross-site Scripting in the Flamingo theme manager. Affects org.xwiki.platform:xwiki-platform-flamingo-theme-ui across 3 version ranges.

< 12.10.11 >= 13.0.0, < 13.4.7 >= 13.5.0, < 13.10.3

Fixed in 12.10.11, 13.4.7 or 13.10.3, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Flamingo theme manager is a component of the XWiki platform that allows users to manage and customize the themes used in their XWiki instances. It provides a user-friendly interface for selecting and applying themes. The FlamingoThemesCode.WebHomeSheet wiki page is responsible for handling theme-related operations. However, a vulnerability has been discovered in this page that allows for cross-site scripting (XSS) attacks.

Vulnerability Detail

The vulnerability exists in the FlamingoThemesCode.WebHomeSheet wiki page, specifically in the "newThemeName" form field. Attackers can exploit this vulnerability by injecting malicious scripts into the form field, which will then be executed when the page is rendered for other users. This can lead to various consequences, including the theft of sensitive information, session hijacking, or the manipulation of page content. The issue has been assigned a CVSS score of 7.4, indicating a high severity level.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 12.10.11 12.10.11
  • >= 13.0.0, < 13.4.7 13.4.7
  • >= 13.5.0, < 13.10.3 13.10.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If updating to the patched versions is not immediately feasible, a temporary workaround can be implemented by manually editing the FlamingoThemesCode.WebHomeSheet wiki page. Locate the line <input type="hidden" name="newThemeName" id="newThemeName" value="$request.newThemeName" /> and replace it with <input type="hidden" name="newThemeName" id="newThemeName" value="$escapetool.xml($request.newThemeName)" />. This modification will ensure that the user input is properly escaped, preventing the XSS vulnerability.

Conclusion

In conclusion, the Flamingo theme manager in the XWiki platform is vulnerable to cross-site scripting (XSS) attacks. It is crucial to update to the patched versions or apply the provided workaround to mitigate the risk. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for org.xwiki.platform:xwiki-platform-flamingo-theme-ui →

Share this vulnerability

FAQ

The vulnerability allows for cross-site scripting (XSS) attacks, which can lead to the theft of sensitive information, session hijacking, or the manipulation of page content.

To fix this vulnerability, update to the patched versions of the Flamingo theme manager (12.10.11, 14.0-rc-1, 13.4.7, or 13.10.3). Alternatively, apply the provided workaround by manually editing the FlamingoThemesCode.WebHomeSheet wiki page.

There are no known public exploits of this vulnerability at the time of this advisory. However, it is important to promptly apply the necessary patches or workarounds to mitigate the risk.

Yes, this vulnerability can be exploited remotely. Attackers can inject malicious scripts into the newThemeName form field, which will then be executed when the page is rendered for other users.

For more information, you can refer to the XWiki Jira issue https://jira.xwiki.org/browse/XWIKI-19294 and the corresponding commit in the XWiki GitHub repository.

Related vulnerabilities

Recent vulnerabilities recorded for org.xwiki.platform:xwiki-platform-flamingo-theme-ui.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 12.10.11 12.10.11
  • >= 13.0.0, < 13.4.7 13.4.7
  • >= 13.5.0, < 13.10.3 13.10.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback