GHSA-p5f8-qf24-24cj

Suggest an improvement
Source
https://github.com/advisories/GHSA-p5f8-qf24-24cj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-p5f8-qf24-24cj/GHSA-p5f8-qf24-24cj.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-p5f8-qf24-24cj
Aliases
Published
2023-12-19T21:39:31Z
Modified
2024-01-02T05:57:47.751126Z
Severity
  • 8.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L CVSS Calculator
Summary
Velocity execution without script right through tree macro
Details

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: * Open an issue in Jira XWiki.org * Email us at Security Mailing List

Database specific
{
    "nvd_published_at": "2023-12-21T20:15:07Z",
    "cwe_ids": [
        "CWE-863"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-12-19T21:39:31Z"
}
References

Affected packages

Maven / org.xwiki.platform:xwiki-platform-index-tree-macro

Package

Name
org.xwiki.platform:xwiki-platform-index-tree-macro
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-index-tree-macro

Affected ranges

Type
ECOSYSTEM
Events
Introduced
8.3-rc-1
Fixed
14.10.7

Maven / org.xwiki.platform:xwiki-platform-index-tree-macro

Package

Name
org.xwiki.platform:xwiki-platform-index-tree-macro
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-index-tree-macro

Affected ranges

Type
ECOSYSTEM
Events
Introduced
15.0-rc-1
Fixed
15.2-rc-1