{ "schema_version": "1.4.0", "id": "GHSA-8cw6-4r32-6r3h", "modified": "2023-03-03T22:49:27Z", "published": "2023-03-03T22:49:27Z", "aliases": [ "CVE-2023-26055" ], "summary": "XWiki Platform may allow privilege escalation to programming rights via user's first name", "details": "### Impact\nAny user can edit his own profile and inject code which is going to be executed with programming right.\n\nSteps to reproduce:\n\n* Set your first name to\n\n```\n {{cache id=\"userProfile\"}}{{groovy}}println(\"Hello from groovy!\"){{/groovy}}{{/cache}}\n```\n\nThe first name appears as interpreted \"`Hello from groovy`\" instead of the expected fully escaped \"`{{cache id=\"userProfile\"}}{{groovy}}println(\"Hello from groovy!\"){{/groovy}}{{/cache}}`\".\n\nThe same vulnerability can also be exploited in all other places where short text properties are displayed, e.g., in apps created using [Apps Within Minutes](https://extensions.xwiki.org/xwiki/bin/view/Extension/App%20Within%20Minutes%20Application) that use a short text field.\n\n### Patches\nThe problem has been patched on versions 13.10.9, 14.4.4, 14.7RC1.\n\n### Workarounds\nThere are no other workarounds than upgrading XWiki or patching the xwiki-commons-xml JAR file.\n\n### References\n* https://jira.xwiki.org/browse/XWIKI-19793\n* https://jira.xwiki.org/browse/XWIKI-19794\n* https://jira.xwiki.org/browse/XCOMMONS-2498\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)\n* Email us at [Security Mailing List](mailto:security@xwiki.org)\n", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H" } ], "affected": [ { "package": { "ecosystem": "Maven", "name": "org.xwiki.commons:xwiki-commons-xml" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "3.1-milestone-1" }, { "fixed": "13.10.9" } ] } ] }, { "package": { "ecosystem": "Maven", "name": "org.xwiki.commons:xwiki-commons-xml" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "14.0-rc-1" }, { "fixed": "14.4.4" } ] } ] }, { "package": { "ecosystem": "Maven", "name": "org.xwiki.commons:xwiki-commons-xml" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "14.5" }, { "fixed": "14.7-rc-1" } ] } ] } ], "references": [ { "type": "WEB", "url": "https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-8cw6-4r32-6r3h" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-26055" }, { "type": "PACKAGE", "url": "https://github.com/xwiki/xwiki-commons" }, { "type": "WEB", "url": "https://jira.xwiki.org/browse/XCOMMONS-2498" }, { "type": "WEB", "url": "https://jira.xwiki.org/browse/XWIKI-19793" }, { "type": "WEB", "url": "https://jira.xwiki.org/browse/XWIKI-19794" } ], "database_specific": { "cwe_ids": [ "CWE-150" ], "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2023-03-03T22:49:27Z", "nvd_published_at": "2023-03-02T19:15:00Z" } }