GHSA-fwwj-wg89-7h4c

Suggest an improvement
Source
https://github.com/advisories/GHSA-fwwj-wg89-7h4c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-fwwj-wg89-7h4c/GHSA-fwwj-wg89-7h4c.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-fwwj-wg89-7h4c
Aliases
Published
2023-06-20T16:48:36Z
Modified
2023-11-01T05:02:20.160534Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L CVSS Calculator
Summary
XWiki Platform vulnerable to cross-site scripting in target parameter via share page by email
Details

Impact

Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS). For instance, the following URL execute an alter on the browser: <xwiki-host>/xwiki/bin/view/Main/?viewer=share&send=1&target=&target=%3Cimg+src+onerror%3Dalert%28document.domain%29%3E+%3Cimg+src+onerror%3Dalert%28document.domain%29%3E+%3Crenniepak%40intigriti.me%3E&includeDocument=inline&message=I+wanted+to+share+this+page+with+you., where <xwiki-host> is the URL of your XWiki installation. See https://jira.xwiki.org/browse/XWIKI-20370 for me details.

Patches

The vulnerability has been patched in XWiki 15.0-rc-1, 14.10.4, and 14.4.8.

Workarounds

The fix is only impacting Velocity templates and page contents, so applying this patch is enough to fix the issue.

References

https://jira.xwiki.org/browse/XWIKI-20370

For more information

If you have any questions or comments about this advisory:

Attribution

This vulnerability has been reported on Intigriti by René de Sain @renniepak.

Database specific
{
    "nvd_published_at": "2023-06-23T19:15:09Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-06-20T16:48:36Z"
}
References

Affected packages

Maven / org.xwiki.platform:xwiki-platform-sharepage-api

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6-rc-2
Fixed
14.4.8

Maven / org.xwiki.platform:xwiki-platform-sharepage-api

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
14.5
Fixed
14.10.4