[MAVEN:GHSA-35J5-M29R-XFQ5] XWiki Rendering's footnote macro vulnerable to privilege escalation via the footnote macro

Severity High
Affected Packages 3
Fixed Packages 3
CVEs 1

Impact

The footnote macro executed its content in a potentially different context than the one in which it was defined. In particular in combination with the include macro, this allows privilege escalation from a simple user account in XWiki to programming rights and thus remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki installation.

To reproduce, perform the following steps:

  1. Edit your user profile with the object editor and add an object of type DocumentSheetBinding with value XWiki.ClassSheet
  2. Edit your user profile with the wiki editor and add the syntax {{footnote}}{{groovy}}println("Hello " + "from groovy!"){{/groovy}}{{/footnote}}

When the text "Hello from groovy!" is displayed at the bottom of the document, the installation is vulnerable. Instead, an error should be displayed.

Patches

This vulnerability has been patched in XWiki 14.10.6 and 15.1-rc-1.

Workarounds

There is no workaround apart from upgrading to a fixed version of the footnote macro.

References

ID
MAVEN:GHSA-35J5-M29R-XFQ5
Severity
high
URL
https://github.com/advisories/GHSA-35j5-m29r-xfq5
Published
2023-10-25T21:07:42
(10 months ago)
Modified
2023-11-10T05:04:11
(10 months ago)
Rights
Maven Security Team
Type Package URL Namespace Name / Product Version Distribution / Platform Arch Patch / Fix
Affected pkg:maven/org.xwiki.rendering/xwiki-rendering-macro-footnotes org.xwiki.rendering xwiki-rendering-macro-footnotes >= 15.0-rc-1 < 15.1-rc-1
Fixed pkg:maven/org.xwiki.rendering/xwiki-rendering-macro-footnotes org.xwiki.rendering xwiki-rendering-macro-footnotes = 15.1-rc-1
Affected pkg:maven/org.xwiki.rendering/xwiki-rendering-macro-footnotes org.xwiki.rendering xwiki-rendering-macro-footnotes < 14.10.6
Fixed pkg:maven/org.xwiki.rendering/xwiki-rendering-macro-footnotes org.xwiki.rendering xwiki-rendering-macro-footnotes = 14.10.6
Affected pkg:maven/org.xwiki.platform/xwiki-core-rendering-macro-footnotes org.xwiki.platform xwiki-core-rendering-macro-footnotes < 14.10.6
Fixed pkg:maven/org.xwiki.platform/xwiki-core-rendering-macro-footnotes org.xwiki.platform xwiki-core-rendering-macro-footnotes = 14.10.6
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories Exploits PoC Pubblication Date Modification Date
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories PoC Pubblication Date Modification Date
Loading...