ghsa-6mjp-2rm6-9g85
Vulnerability from github
Impact
The CKEditor.HTMLConverter
document lacked a protection against Cross-Site Request Forgery (CSRF), allowing to execute macros with the rights of the current user. If a privileged user with programming rights was tricked into executing a GET request to this document with certain parameters (e.g., via an image with a corresponding URL embedded in a comment or via a redirect), this would allow arbitrary remote code execution and the attacker could gain rights, access private information or impact the availability of the wiki.
The attack can be demonstrated by accessing the URL <server>/xwiki/bin/view/Main?sheet=CKEditor.HTMLConverter&language=en&sourceSyntax=xwiki%2F2.1&stripHTMLEnvelope=true&fromHTML=false&toHTML=true&text=%7B%7Bgroovy%7D%7Dprintln%28%22Hello+from+Groovy%21%22%29%7B%7B%2Fgroovy%7D%7D
where <server>
is the URL of the XWiki installation as a user with programming rights. If this displays the text "Hello from Groovy!", the installation is vulnerable.
Patches
The issue has been patched in the CKEditor Integration version 1.64.3. This has also been patched in the version of the CKEditor integration that is bundled starting with XWiki 14.6 RC1.
Workarounds
There are no known workarounds for this other than upgrading the CKEditor integration to a fixed version.
References
- https://github.com/xwiki-contrib/application-ckeditor/commit/6b1053164386aefc526df7512bc664918aa6849b
- https://jira.xwiki.org/browse/CKEDITOR-475
For more information
If you have any questions or comments about this advisory: * Open an issue in Jira XWiki.org * Email us at Security Mailing List
{ affected: [ { package: { ecosystem: "Maven", name: "org.xwiki.contrib:application-ckeditor-ui", }, ranges: [ { events: [ { introduced: "0", }, { fixed: "1.64.3", }, ], type: "ECOSYSTEM", }, ], }, ], aliases: [ "CVE-2023-22457", ], database_specific: { cwe_ids: [ "CWE-352", ], github_reviewed: true, github_reviewed_at: "2023-01-06T17:15:47Z", nvd_published_at: "2023-01-04T15:15:00Z", severity: "CRITICAL", }, details: "### Impact\nThe `CKEditor.HTMLConverter` document lacked a protection against Cross-Site Request Forgery (CSRF), allowing to execute macros with the rights of the current user. If a privileged user with programming rights was tricked into executing a GET request to this document with certain parameters (e.g., via an image with a corresponding URL embedded in a comment or via a redirect), this would allow arbitrary remote code execution and the attacker could gain rights, access private information or impact the availability of the wiki.\n\nThe attack can be demonstrated by accessing the URL `<server>/xwiki/bin/view/Main?sheet=CKEditor.HTMLConverter&language=en&sourceSyntax=xwiki%2F2.1&stripHTMLEnvelope=true&fromHTML=false&toHTML=true&text=%7B%7Bgroovy%7D%7Dprintln%28%22Hello+from+Groovy%21%22%29%7B%7B%2Fgroovy%7D%7D` where `<server>` is the URL of the XWiki installation as a user with programming rights. If this displays the text \"Hello from Groovy!\", the installation is vulnerable.\n\n### Patches\nThe issue has been patched in the CKEditor Integration version 1.64.3. This has also been patched in the version of the CKEditor integration that is bundled starting with XWiki 14.6 RC1.\n\n### Workarounds\nThere are no known workarounds for this other than upgrading the CKEditor integration to a fixed version.\n\n### References\n* https://github.com/xwiki-contrib/application-ckeditor/commit/6b1053164386aefc526df7512bc664918aa6849b\n* https://jira.xwiki.org/browse/CKEDITOR-475\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)", id: "GHSA-6mjp-2rm6-9g85", modified: "2023-01-10T21:42:55Z", published: "2023-01-06T17:15:47Z", references: [ { type: "WEB", url: "https://github.com/xwiki-contrib/application-ckeditor/security/advisories/GHSA-6mjp-2rm6-9g85", }, { type: "ADVISORY", url: "https://nvd.nist.gov/vuln/detail/CVE-2023-22457", }, { type: "WEB", url: "https://github.com/xwiki-contrib/application-ckeditor/commit/6b1053164386aefc526df7512bc664918aa6849b", }, { type: "PACKAGE", url: "https://github.com/xwiki-contrib/application-ckeditor", }, { type: "WEB", url: "https://jira.xwiki.org/browse/CKEDITOR-475", }, ], schema_version: "1.4.0", severity: [ { score: "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H", type: "CVSS_V3", }, ], summary: "XWiki CKEditor.HTMLConverter vulnerable to Remote Code Execution via Cross-Site Request Forgery", }
Log in or create an account to share your comment.
This schema specifies the format of a comment related to a security advisory.
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.