CVE-2024-43368 (GCVE-0-2024-43368)
Vulnerability from cvelistv5
Published
2024-08-14 21:12
Modified
2024-08-15 15:00
Severity ?
VLAI Severity ?
EPSS score ?
CWE
- CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Summary
The Trix editor, versions prior to 2.1.4, is vulnerable to XSS when pasting malicious code. This vulnerability is a bypass of the fix put in place for GHSA-qjqp-xr96-cj99. In pull request 1149, sanitation was added for Trix attachments with a `text/html` content type. However, Trix only checks the content type on the paste event's `dataTransfer` object. As long as the `dataTransfer` has a content type of `text/html`, Trix parses its contents and creates an `Attachment` with them, even if the attachment itself doesn't have a `text/html` content type. Trix then uses the attachment content to set the attachment element's `innerHTML`. An attacker could trick a user to copy and paste malicious code that would execute arbitrary JavaScript code within the context of the user's session, potentially leading to unauthorized actions being performed or sensitive information being disclosed. This vulnerability was fixed in version 2.1.4.
References
{ "containers": { "adp": [ { "affected": [ { "cpes": [ "cpe:2.3:a:basecamp:trix:*:*:*:*:*:*:*:*" ], "defaultStatus": "unknown", "product": "trix", "vendor": "basecamp", "versions": [ { "lessThan": "2.1.4", "status": "affected", "version": "0", "versionType": "custom" } ] } ], "metrics": [ { "other": { "content": { "id": "CVE-2024-43368", "options": [ { "Exploitation": "poc" }, { "Automatable": "no" }, { "Technical Impact": "total" } ], "role": "CISA Coordinator", "timestamp": "2024-08-15T14:58:19.809772Z", "version": "2.0.3" }, "type": "ssvc" } } ], "providerMetadata": { "dateUpdated": "2024-08-15T15:00:00.907Z", "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP" }, "title": "CISA ADP Vulnrichment" } ], "cna": { "affected": [ { "product": "trix", "vendor": "basecamp", "versions": [ { "status": "affected", "version": "\u003c 2.1.4" } ] } ], "descriptions": [ { "lang": "en", "value": "The Trix editor, versions prior to 2.1.4, is vulnerable to XSS when pasting malicious code. This vulnerability is a bypass of the fix put in place for GHSA-qjqp-xr96-cj99. In pull request 1149, sanitation was added for Trix attachments with a `text/html` content type. However, Trix only checks the content type on the paste event\u0027s `dataTransfer` object. As long as the `dataTransfer` has a content type of `text/html`, Trix parses its contents and creates an `Attachment` with them, even if the attachment itself doesn\u0027t have a `text/html` content type. Trix then uses the attachment content to set the attachment element\u0027s `innerHTML`. An attacker could trick a user to copy and paste malicious code that would execute arbitrary JavaScript code within the context of the user\u0027s session, potentially leading to unauthorized actions being performed or sensitive information being disclosed. This vulnerability was fixed in version 2.1.4." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 6.5, "baseSeverity": "MEDIUM", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-79", "description": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2024-08-14T21:12:24.240Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/basecamp/trix/security/advisories/GHSA-qm2q-9f3q-2vcv", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/basecamp/trix/security/advisories/GHSA-qm2q-9f3q-2vcv" }, { "name": "https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99" }, { "name": "https://github.com/basecamp/trix/pull/1149", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/basecamp/trix/pull/1149" }, { "name": "https://github.com/basecamp/trix/pull/1156", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/basecamp/trix/pull/1156" }, { "name": "https://github.com/basecamp/trix/commit/7656f578af0d03141a72a9d27cb3692e6947dae6", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/basecamp/trix/commit/7656f578af0d03141a72a9d27cb3692e6947dae6" }, { "name": "https://github.com/basecamp/trix/releases/tag/v2.1.4", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/basecamp/trix/releases/tag/v2.1.4" } ], "source": { "advisory": "GHSA-qm2q-9f3q-2vcv", "discovery": "UNKNOWN" }, "title": "Trix has a Cross-Site Scripting (XSS) vulnerability on copy \u0026 paste" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2024-43368", "datePublished": "2024-08-14T21:12:24.240Z", "dateReserved": "2024-08-09T14:23:55.513Z", "dateUpdated": "2024-08-15T15:00:00.907Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "vulnerability-lookup:meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2024-43368\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2024-08-14T22:15:04.497\",\"lastModified\":\"2024-08-15T13:01:10.150\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"The Trix editor, versions prior to 2.1.4, is vulnerable to XSS when pasting malicious code. This vulnerability is a bypass of the fix put in place for GHSA-qjqp-xr96-cj99. In pull request 1149, sanitation was added for Trix attachments with a `text/html` content type. However, Trix only checks the content type on the paste event\u0027s `dataTransfer` object. As long as the `dataTransfer` has a content type of `text/html`, Trix parses its contents and creates an `Attachment` with them, even if the attachment itself doesn\u0027t have a `text/html` content type. Trix then uses the attachment content to set the attachment element\u0027s `innerHTML`. An attacker could trick a user to copy and paste malicious code that would execute arbitrary JavaScript code within the context of the user\u0027s session, potentially leading to unauthorized actions being performed or sensitive information being disclosed. This vulnerability was fixed in version 2.1.4.\"},{\"lang\":\"es\",\"value\":\"El editor Trix, versiones anteriores a la 2.1.4, es vulnerable a XSS al pegar c\u00f3digo malicioso. Esta vulnerabilidad es una omisi\u00f3n de la soluci\u00f3n implementada para GHSA-qjqp-xr96-cj99. En la solicitud de extracci\u00f3n 1149, se agreg\u00f3 saneamiento para los archivos adjuntos de Trix con un tipo de contenido \\\"text/html\\\". Sin embargo, Trix solo verifica el tipo de contenido en el objeto `dataTransfer` del evento de pegado. Siempre que `dataTransfer` tenga un tipo de contenido `text/html`, Trix analiza su contenido y crea un `Attachment` con ellos, incluso si el archivo adjunto en s\u00ed no tiene un tipo de contenido `text/html`. Luego, Trix usa el contenido del archivo adjunto para configurar el `innerHTML` del elemento adjunto. Un atacante podr\u00eda enga\u00f1ar a un usuario para que copie y pegue c\u00f3digo malicioso que ejecutar\u00eda c\u00f3digo JavaScript arbitrario dentro del contexto de la sesi\u00f3n del usuario, lo que podr\u00eda provocar la realizaci\u00f3n de acciones no autorizadas o la divulgaci\u00f3n de informaci\u00f3n confidencial. Esta vulnerabilidad se solucion\u00f3 en la versi\u00f3n 2.1.4.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N\",\"baseScore\":6.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-79\"}]}],\"references\":[{\"url\":\"https://github.com/basecamp/trix/commit/7656f578af0d03141a72a9d27cb3692e6947dae6\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/basecamp/trix/pull/1149\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/basecamp/trix/pull/1156\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/basecamp/trix/releases/tag/v2.1.4\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/basecamp/trix/security/advisories/GHSA-qm2q-9f3q-2vcv\",\"source\":\"security-advisories@github.com\"}]}}", "vulnrichment": { "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-43368\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"poc\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-08-15T14:58:19.809772Z\"}}}], \"affected\": [{\"cpes\": [\"cpe:2.3:a:basecamp:trix:*:*:*:*:*:*:*:*\"], \"vendor\": \"basecamp\", \"product\": \"trix\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"lessThan\": \"2.1.4\", \"versionType\": \"custom\"}], \"defaultStatus\": \"unknown\"}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-08-15T14:59:45.666Z\"}}], \"cna\": {\"title\": \"Trix has a Cross-Site Scripting (XSS) vulnerability on copy \u0026 paste\", \"source\": {\"advisory\": \"GHSA-qm2q-9f3q-2vcv\", \"discovery\": \"UNKNOWN\"}, \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 6.5, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"REQUIRED\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"NONE\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"HIGH\"}}], \"affected\": [{\"vendor\": \"basecamp\", \"product\": \"trix\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 2.1.4\"}]}], \"references\": [{\"url\": \"https://github.com/basecamp/trix/security/advisories/GHSA-qm2q-9f3q-2vcv\", \"name\": \"https://github.com/basecamp/trix/security/advisories/GHSA-qm2q-9f3q-2vcv\", \"tags\": [\"x_refsource_CONFIRM\"]}, {\"url\": \"https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99\", \"name\": \"https://github.com/basecamp/trix/security/advisories/GHSA-qjqp-xr96-cj99\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/basecamp/trix/pull/1149\", \"name\": \"https://github.com/basecamp/trix/pull/1149\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/basecamp/trix/pull/1156\", \"name\": \"https://github.com/basecamp/trix/pull/1156\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/basecamp/trix/commit/7656f578af0d03141a72a9d27cb3692e6947dae6\", \"name\": \"https://github.com/basecamp/trix/commit/7656f578af0d03141a72a9d27cb3692e6947dae6\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/basecamp/trix/releases/tag/v2.1.4\", \"name\": \"https://github.com/basecamp/trix/releases/tag/v2.1.4\", \"tags\": [\"x_refsource_MISC\"]}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"The Trix editor, versions prior to 2.1.4, is vulnerable to XSS when pasting malicious code. This vulnerability is a bypass of the fix put in place for GHSA-qjqp-xr96-cj99. In pull request 1149, sanitation was added for Trix attachments with a `text/html` content type. However, Trix only checks the content type on the paste event\u0027s `dataTransfer` object. As long as the `dataTransfer` has a content type of `text/html`, Trix parses its contents and creates an `Attachment` with them, even if the attachment itself doesn\u0027t have a `text/html` content type. Trix then uses the attachment content to set the attachment element\u0027s `innerHTML`. An attacker could trick a user to copy and paste malicious code that would execute arbitrary JavaScript code within the context of the user\u0027s session, potentially leading to unauthorized actions being performed or sensitive information being disclosed. This vulnerability was fixed in version 2.1.4.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-79\", \"description\": \"CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2024-08-14T21:12:24.240Z\"}}}", "cveMetadata": "{\"cveId\": \"CVE-2024-43368\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-08-15T15:00:00.907Z\", \"dateReserved\": \"2024-08-09T14:23:55.513Z\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"datePublished\": \"2024-08-14T21:12:24.240Z\", \"assignerShortName\": \"GitHub_M\"}", "dataType": "CVE_RECORD", "dataVersion": "5.1" } } }
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.
Loading…
Loading…