gsd-2023-29201
Vulnerability from gsd
Modified
2023-12-13 01:20
Details
XWiki Commons are technical libraries common to several other top level XWiki projects. The "restricted" mode of the HTML cleaner in XWiki, introduced in version 4.2-milestone-1, only escaped `<script>` and `<style>`-tags but neither attributes that can be used to inject scripts nor other dangerous HTML tags like `<iframe>`. As a consequence, any code relying on this "restricted" mode for security is vulnerable to JavaScript injection ("cross-site scripting"/XSS). When a privileged user with programming rights visits such a comment in XWiki, the malicious JavaScript code is executed in the context of the user session. This allows server-side code execution with programming rights, impacting the confidentiality, integrity and availability of the XWiki instance. This problem has been patched in XWiki 14.6 RC1 with the introduction of a filter with allowed HTML elements and attributes that is enabled in restricted mode. There are no known workarounds apart from upgrading to a version including the fix.
Aliases
Aliases
{ GSD: { alias: "CVE-2023-29201", id: "GSD-2023-29201", }, gsd: { metadata: { exploitCode: "unknown", remediation: "unknown", reportConfidence: "confirmed", type: "vulnerability", }, osvSchema: { aliases: [ "CVE-2023-29201", ], details: "XWiki Commons are technical libraries common to several other top level XWiki projects. The \"restricted\" mode of the HTML cleaner in XWiki, introduced in version 4.2-milestone-1, only escaped `<script>` and `<style>`-tags but neither attributes that can be used to inject scripts nor other dangerous HTML tags like `<iframe>`. As a consequence, any code relying on this \"restricted\" mode for security is vulnerable to JavaScript injection (\"cross-site scripting\"/XSS). When a privileged user with programming rights visits such a comment in XWiki, the malicious JavaScript code is executed in the context of the user session. This allows server-side code execution with programming rights, impacting the confidentiality, integrity and availability of the XWiki instance. This problem has been patched in XWiki 14.6 RC1 with the introduction of a filter with allowed HTML elements and attributes that is enabled in restricted mode. There are no known workarounds apart from upgrading to a version including the fix.", id: "GSD-2023-29201", modified: "2023-12-13T01:20:57.114116Z", schema_version: "1.4.0", }, }, namespaces: { "cve.org": { CVE_data_meta: { ASSIGNER: "security-advisories@github.com", ID: "CVE-2023-29201", STATE: "PUBLIC", }, affects: { vendor: { vendor_data: [ { product: { product_data: [ { product_name: "xwiki-commons", version: { version_data: [ { version_affected: "=", version_value: ">= 4.2-milestone-1, < 14.6-rc-1", }, ], }, }, ], }, vendor_name: "xwiki", }, ], }, }, data_format: "MITRE", data_type: "CVE", data_version: "4.0", description: { description_data: [ { lang: "eng", value: "XWiki Commons are technical libraries common to several other top level XWiki projects. The \"restricted\" mode of the HTML cleaner in XWiki, introduced in version 4.2-milestone-1, only escaped `<script>` and `<style>`-tags but neither attributes that can be used to inject scripts nor other dangerous HTML tags like `<iframe>`. As a consequence, any code relying on this \"restricted\" mode for security is vulnerable to JavaScript injection (\"cross-site scripting\"/XSS). When a privileged user with programming rights visits such a comment in XWiki, the malicious JavaScript code is executed in the context of the user session. This allows server-side code execution with programming rights, impacting the confidentiality, integrity and availability of the XWiki instance. This problem has been patched in XWiki 14.6 RC1 with the introduction of a filter with allowed HTML elements and attributes that is enabled in restricted mode. There are no known workarounds apart from upgrading to a version including the fix.", }, ], }, impact: { cvss: [ { attackComplexity: "LOW", attackVector: "NETWORK", availabilityImpact: "HIGH", baseScore: 9.1, baseSeverity: "CRITICAL", confidentialityImpact: "HIGH", integrityImpact: "HIGH", privilegesRequired: "LOW", scope: "CHANGED", userInteraction: "REQUIRED", vectorString: "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H", version: "3.1", }, ], }, problemtype: { problemtype_data: [ { description: [ { cweId: "CWE-79", lang: "eng", value: "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", }, ], }, ], }, references: { reference_data: [ { name: "https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-m3jr-cvhj-f35j", refsource: "MISC", url: "https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-m3jr-cvhj-f35j", }, { name: "https://github.com/xwiki/xwiki-commons/commit/4a185e0594d90cd4916d60aa60bb4333dc5623b2", refsource: "MISC", url: "https://github.com/xwiki/xwiki-commons/commit/4a185e0594d90cd4916d60aa60bb4333dc5623b2", }, { name: "https://github.com/xwiki/xwiki-commons/commit/b11eae9d82cb53f32962056b5faa73f3720c6182", refsource: "MISC", url: "https://github.com/xwiki/xwiki-commons/commit/b11eae9d82cb53f32962056b5faa73f3720c6182", }, { name: "https://jira.xwiki.org/browse/XCOMMONS-1680", refsource: "MISC", url: "https://jira.xwiki.org/browse/XCOMMONS-1680", }, { name: "https://jira.xwiki.org/browse/XCOMMONS-2426", refsource: "MISC", url: "https://jira.xwiki.org/browse/XCOMMONS-2426", }, { name: "https://jira.xwiki.org/browse/XWIKI-9118", refsource: "MISC", url: "https://jira.xwiki.org/browse/XWIKI-9118", }, ], }, source: { advisory: "GHSA-m3jr-cvhj-f35j", discovery: "UNKNOWN", }, }, "gitlab.com": { advisories: [ { affected_range: "[4.2-milestone-1,14.6-rc-1)", affected_versions: "All versions starting from 4.2-milestone-1 before 14.6-rc-1", cwe_ids: [ "CWE-1035", "CWE-79", "CWE-937", ], date: "2023-04-12", description: "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in org.xwiki.commons:xwiki-commons-xml.", fixed_versions: [ "14.6-rc-1", ], identifier: "CVE-2023-29201", identifiers: [ "GHSA-m3jr-cvhj-f35j", "CVE-2023-29201", ], not_impacted: "All versions before 4.2-milestone-1, all versions starting from 14.6-rc-1", package_slug: "maven/org.xwiki.commons/xwiki-commons-xml", pubdate: "2023-04-12", solution: "Upgrade to version 14.6-rc-1 or above. *Note*: 14.6-rc-1 may be an unstable version. Use caution.", title: "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", urls: [ "https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-m3jr-cvhj-f35j", "https://github.com/xwiki/xwiki-commons/commit/4a185e0594d90cd4916d60aa60bb4333dc5623b2", "https://github.com/xwiki/xwiki-commons/commit/b11eae9d82cb53f32962056b5faa73f3720c6182", "https://jira.xwiki.org/browse/XCOMMONS-1680", "https://jira.xwiki.org/browse/XCOMMONS-2426", "https://jira.xwiki.org/browse/XWIKI-9118", "https://github.com/advisories/GHSA-m3jr-cvhj-f35j", ], uuid: "5c90ffb3-521f-432d-a114-3a5de70e756e", }, ], }, "nvd.nist.gov": { configurations: { CVE_data_version: "4.0", nodes: [ { children: [], cpe_match: [ { cpe23Uri: "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*", cpe_name: [], versionEndIncluding: "14.5", versionStartIncluding: "5.0", vulnerable: true, }, ], operator: "OR", }, ], }, cve: { CVE_data_meta: { ASSIGNER: "security-advisories@github.com", ID: "CVE-2023-29201", }, data_format: "MITRE", data_type: "CVE", data_version: "4.0", description: { description_data: [ { lang: "en", value: "XWiki Commons are technical libraries common to several other top level XWiki projects. The \"restricted\" mode of the HTML cleaner in XWiki, introduced in version 4.2-milestone-1, only escaped `<script>` and `<style>`-tags but neither attributes that can be used to inject scripts nor other dangerous HTML tags like `<iframe>`. As a consequence, any code relying on this \"restricted\" mode for security is vulnerable to JavaScript injection (\"cross-site scripting\"/XSS). When a privileged user with programming rights visits such a comment in XWiki, the malicious JavaScript code is executed in the context of the user session. This allows server-side code execution with programming rights, impacting the confidentiality, integrity and availability of the XWiki instance. This problem has been patched in XWiki 14.6 RC1 with the introduction of a filter with allowed HTML elements and attributes that is enabled in restricted mode. There are no known workarounds apart from upgrading to a version including the fix.", }, ], }, problemtype: { problemtype_data: [ { description: [ { lang: "en", value: "CWE-79", }, ], }, ], }, references: { reference_data: [ { name: "https://github.com/xwiki/xwiki-commons/commit/4a185e0594d90cd4916d60aa60bb4333dc5623b2", refsource: "MISC", tags: [ "Patch", ], url: "https://github.com/xwiki/xwiki-commons/commit/4a185e0594d90cd4916d60aa60bb4333dc5623b2", }, { name: "https://jira.xwiki.org/browse/XCOMMONS-1680", refsource: "MISC", tags: [ "Exploit", "Issue Tracking", ], url: "https://jira.xwiki.org/browse/XCOMMONS-1680", }, { name: "https://jira.xwiki.org/browse/XWIKI-9118", refsource: "MISC", tags: [ "Exploit", "Issue Tracking", ], url: "https://jira.xwiki.org/browse/XWIKI-9118", }, { name: "https://jira.xwiki.org/browse/XCOMMONS-2426", refsource: "MISC", tags: [ "Exploit", "Issue Tracking", ], url: "https://jira.xwiki.org/browse/XCOMMONS-2426", }, { name: "https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-m3jr-cvhj-f35j", refsource: "MISC", tags: [ "Exploit", "Patch", "Vendor Advisory", ], url: "https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-m3jr-cvhj-f35j", }, { name: "https://github.com/xwiki/xwiki-commons/commit/b11eae9d82cb53f32962056b5faa73f3720c6182", refsource: "MISC", tags: [ "Patch", ], url: "https://github.com/xwiki/xwiki-commons/commit/b11eae9d82cb53f32962056b5faa73f3720c6182", }, ], }, }, impact: { baseMetricV3: { cvssV3: { attackComplexity: "LOW", attackVector: "NETWORK", availabilityImpact: "HIGH", baseScore: 9, baseSeverity: "CRITICAL", confidentialityImpact: "HIGH", integrityImpact: "HIGH", privilegesRequired: "LOW", scope: "CHANGED", userInteraction: "REQUIRED", vectorString: "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H", version: "3.1", }, exploitabilityScore: 2.3, impactScore: 6, }, }, lastModifiedDate: "2023-04-25T18:26Z", publishedDate: "2023-04-15T15:15Z", }, }, }
Log in or create an account to share your comment.
Security Advisory comment format.
This schema specifies the format of a comment related to a security advisory.
Title of the comment
Description of the comment
Loading…
Loading…
Loading…
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.