ghsa-v662-xpcc-9xf6
Vulnerability from github
Impact
The {{wikimacrocontent}}
executes the content with the rights of the wiki macro author instead of the caller of that wiki macro. This makes possible to inject scripts through it and they will be executed with the rights of the wiki macro (very often a user which has Programming rights).
Fortunately, no such macro exists by default in XWiki Standard but one could have been created or installed with an extension.
Patches
It has been patched in versions XWiki 12.6.3, 11.10.11 and 12.8-rc-1.
Workarounds
There is no easy workaround other than disabling the affected macros. Inserting content in a safe way or knowing what is the user who called the wiki macro is not easy.
References
https://jira.xwiki.org/browse/XWIKI-17759
For more information
If you have any questions or comments about this advisory: * Open an issue in Jira XWiki * Email us at our security mailing list
{ "affected": [ { "package": { "ecosystem": "Maven", "name": "org.xwiki.platform:xwiki-platform-rendering-wikimacro-store" }, "ranges": [ { "events": [ { "introduced": "11.4" }, { "fixed": "11.10.11" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "Maven", "name": "org.xwiki.platform:xwiki-platform-rendering-wikimacro-store" }, "ranges": [ { "events": [ { "introduced": "12.0" }, { "fixed": "12.6.3" } ], "type": "ECOSYSTEM" } ] }, { "database_specific": { "last_known_affected_version_range": "\u003c= 12.7.1" }, "package": { "ecosystem": "Maven", "name": "org.xwiki.platform:xwiki-platform-rendering-wikimacro-store" }, "ranges": [ { "events": [ { "introduced": "12.7" }, { "fixed": "12.8" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2021-21379" ], "database_specific": { "cwe_ids": [ "CWE-281" ], "github_reviewed": true, "github_reviewed_at": "2021-03-23T22:24:20Z", "nvd_published_at": "2021-03-12T18:15:00Z", "severity": "LOW" }, "details": "### Impact\n\nThe `{{wikimacrocontent}}` executes the content with the rights of the wiki macro author instead of the caller of that wiki macro. This makes possible to inject scripts through it and they will be executed with the rights of the wiki macro (very often a user which has Programming rights).\n\nFortunately, no such macro exists by default in XWiki Standard but one could have been created or installed with an extension.\n\n### Patches\n\nIt has been patched in versions XWiki 12.6.3, 11.10.11 and 12.8-rc-1.\n\n### Workarounds\n\nThere is no easy workaround other than disabling the affected macros.\nInserting content in a safe way or knowing what is the user who called the wiki macro is not easy.\n\n### References\n\nhttps://jira.xwiki.org/browse/XWIKI-17759\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki](https://jira.xwiki.org)\n* Email us at [our security mailing list](mailto:security@xwiki.org)", "id": "GHSA-v662-xpcc-9xf6", "modified": "2021-03-23T22:24:20Z", "published": "2021-03-23T22:47:26Z", "references": [ { "type": "WEB", "url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-v662-xpcc-9xf6" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-21379" }, { "type": "WEB", "url": "https://jira.xwiki.org/browse/XWIKI-17759" } ], "schema_version": "1.4.0", "severity": [], "summary": "It\u0027s possible to execute anything with the rights of the author of a macro which uses the {{wikimacrocontent}} macro" }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.