GHSA-r279-47wg-chpr

Suggest an improvement
Source
https://github.com/advisories/GHSA-r279-47wg-chpr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-r279-47wg-chpr/GHSA-r279-47wg-chpr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r279-47wg-chpr
Aliases
Related
Published
2024-12-12T19:20:56Z
Modified
2024-12-12T22:33:16Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
XWiki allows RCE from script right in configurable sections
Details

Impact

Any user with script rights can perform arbitrary remote code execution by adding instances of XWiki.ConfigurableClass to any page. This compromises the confidentiality, integrity and availability of the whole XWiki installation.

To reproduce on a instance, as a user with script rights, edit your user profile and add an object of type XWiki.ConfigurableClass ("Custom configurable sections"). Set "Display in section" and "Display in category" to other, "Scope" to Wiki and all spaces and "Heading" to:

#set($codeToExecute = 'Test') #set($codeToExecuteResult = '{{async}}{{groovy}}services.logging.getLogger("attacker").error("Attack from Heading succeeded!"){{/groovy}}{{/async}}')

Save the page and view it, then add ?sheet=XWiki.AdminSheet&viewer=content&section=other to the URL. If the logs contain "attacker - Attack from Heading succeeded!", then the instance is vulnerable.

Patches

This has been patched in XWiki 15.10.9 and 16.3.0.

Workarounds

We're not aware of any workaround except upgrading.

References

  • https://jira.xwiki.org/browse/XWIKI-21207
  • https://github.com/xwiki/xwiki-platform/commit/8493435ff9606905a2d913607d6c79862d0c168d

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": "2024-12-12T20:15:21Z",
    "cwe_ids": [
        "CWE-862"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2024-12-12T19:20:56Z"
}
References

Affected packages

Maven / org.xwiki.platform:xwiki-platform-administration-ui

Package

Name
org.xwiki.platform:xwiki-platform-administration-ui
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-administration-ui

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.3
Fixed
15.10.9

Maven / org.xwiki.platform:xwiki-platform-administration-ui

Package

Name
org.xwiki.platform:xwiki-platform-administration-ui
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-administration-ui

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.0.0-rc-1
Fixed
16.3.0