GHSA-9cqm-5wf7-wcj7

Suggest an improvement
Source
https://github.com/advisories/GHSA-9cqm-5wf7-wcj7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-9cqm-5wf7-wcj7/GHSA-9cqm-5wf7-wcj7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9cqm-5wf7-wcj7
Aliases
Published
2023-03-03T22:49:37Z
Modified
2023-11-08T04:12:01.351906Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
XWiki Platform users may execute anything with superadmin right through comments and async macro
Details

Impact

Comments are supposed to be executed with the right of superadmin but in restricted mode (anything dangerous is disabled) but the async macro is not taking into account the restricted mode.

This means that any user with comment right can use the async macro to make it execute any wiki content with the right of superadmin as in:

{{async}} {{groovy}}println "it works !"{{/groovy}} {{/async}}

Patches

This has been patched in XWiki 14.9, 14.4.6, and 13.10.10.

Workarounds

The only known workaround consists in applying the following patch and rebuilding and redeploying org.xwiki.platform:xwiki-platform-rendering-async-macro.

References

  • https://jira.xwiki.org/browse/XWIKI-20234

For more information

If you have any questions or comments about this advisory: * Open an issue in Jira * Email us at Security ML

Database specific
{
    "nvd_published_at": "2023-03-02T19:15:00Z",
    "github_reviewed_at": "2023-03-03T22:49:37Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-284"
    ]
}
References

Affected packages

Maven / org.xwiki.platform:xwiki-platform-rendering-async-macro

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
11.6-rc-1
Fixed
13.10.10

Maven / org.xwiki.platform:xwiki-platform-rendering-async-macro

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
14.0
Fixed
14.4.6

Maven / org.xwiki.platform:xwiki-platform-rendering-async-macro

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
14.5
Fixed
14.9