Security
Headlines
HeadlinesLatestCVEs

Headline

GHSA-p5f8-qf24-24cj: Velocity execution without script right through tree macro

Impact

It’s possible to execute a Velocity script without script right through the document tree.

To reproduce:

  • As a user without script right, create a document, e.g., named Nasty Title
  • Set the document’s title to $request.requestURI
  • Click “Save & View”
  • Reload the page in the browser

The navigation panel displays a document named with the current URL, showing that the Velocity code has been executed even though the user doesn’t have script right.

Patches

This has been patched in XWiki 14.10.7 and 15.2RC1.

Workarounds

A possible workaround is to:

  • modify the page XWiki.DocumentTreeMacros
  • search for the code #set ($discard = $translatedDocument.setTitle($translatedDocument.title))
  • modify it into #set ($discard = $translatedDocument.setcomment(''))

References

  • https://jira.xwiki.org/browse/XWIKI-20625
  • https://github.com/xwiki/xwiki-platform/commit/41d7dca2d30084966ca6a7ee537f39ee8354a7e3

For more information

If you have any questions or comments about this advisory:

ghsa
#mac#git#java#jira#maven
  1. GitHub Advisory Database
  2. GitHub Reviewed
  3. CVE-2023-50732

Velocity execution without script right through tree macro

High severity GitHub Reviewed Published Dec 19, 2023 in xwiki/xwiki-platform • Updated Dec 19, 2023

Package

maven org.xwiki.platform:xwiki-platform-index-tree-macro (Maven)

Affected versions

>= 8.3-rc-1, < 14.10.7

>= 15.0-rc-1, < 15.2-rc-1

Patched versions

14.10.7

15.2-rc-1

Impact

It’s possible to execute a Velocity script without script right through the document tree.

To reproduce:

  • As a user without script right, create a document, e.g., named Nasty Title
  • Set the document’s title to $request.requestURI
  • Click “Save & View”
  • Reload the page in the browser

The navigation panel displays a document named with the current URL, showing that the Velocity code has been executed even though the user doesn’t have script right.

Patches

This has been patched in XWiki 14.10.7 and 15.2RC1.

Workarounds

A possible workaround is to:

  • modify the page XWiki.DocumentTreeMacros
  • search for the code #set ($discard = $translatedDocument.setTitle($translatedDocument.title))
  • modify it into #set ($discard = $translatedDocument.setcomment(‘’))

References

  • https://jira.xwiki.org/browse/XWIKI-20625
  • xwiki/xwiki-platform@41d7dca

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

References

  • GHSA-p5f8-qf24-24cj
  • xwiki/xwiki-platform@41d7dca
  • https://jira.xwiki.org/browse/XWIKI-20625

Published to the GitHub Advisory Database

Dec 19, 2023

Last updated

Dec 19, 2023

ghsa: Latest News

GHSA-hxf5-99xg-86hw: cap-std doesn't fully sandbox all the Windows device filenames