cve-2021-43808
Vulnerability from cvelistv5
Published
2021-12-07 22:20
Modified
2024-08-04 04:03
Severity ?
EPSS score ?
Summary
Laravel is a web application framework. Laravel prior to versions 8.75.0, 7.30.6, and 6.20.42 contain a possible cross-site scripting (XSS) vulnerability in the Blade templating engine. A broken HTML element may be clicked and the user taken to another location in their browser due to XSS. This is due to the user being able to guess the parent placeholder SHA-1 hash by trying common names of sections. If the parent template contains an exploitable HTML structure an XSS vulnerability can be exposed. This vulnerability has been patched in versions 8.75.0, 7.30.6, and 6.20.42 by determining the parent placeholder at runtime and using a random hash that is unique to each request.
References
Impacted products
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-04T04:03:08.661Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/laravel/framework/pull/39906" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/laravel/framework/pull/39908" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/laravel/framework/pull/39909" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9b" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/laravel/framework/releases/tag/v6.20.42" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/laravel/framework/releases/tag/v7.30.6" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/laravel/framework/releases/tag/v8.75.0" } ], "title": "CVE Program Container" } ], "cna": { "affected": [ { "product": "framework", "vendor": "laravel", "versions": [ { "status": "affected", "version": "\u003e= 8.0.0, \u003c 8.75.0" }, { "status": "affected", "version": "\u003e= 7.0.0, \u003c 7.30.6" }, { "status": "affected", "version": "\u003c 6.20.42" } ] } ], "descriptions": [ { "lang": "en", "value": "Laravel is a web application framework. Laravel prior to versions 8.75.0, 7.30.6, and 6.20.42 contain a possible cross-site scripting (XSS) vulnerability in the Blade templating engine. A broken HTML element may be clicked and the user taken to another location in their browser due to XSS. This is due to the user being able to guess the parent placeholder SHA-1 hash by trying common names of sections. If the parent template contains an exploitable HTML structure an XSS vulnerability can be exposed. This vulnerability has been patched in versions 8.75.0, 7.30.6, and 6.20.42 by determining the parent placeholder at runtime and using a random hash that is unique to each request." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "HIGH", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 5.3, "baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/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": "2021-12-07T22:20:12", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw" }, { "tags": [ "x_refsource_MISC" ], "url": "https://github.com/laravel/framework/pull/39906" }, { "tags": [ "x_refsource_MISC" ], "url": "https://github.com/laravel/framework/pull/39908" }, { "tags": [ "x_refsource_MISC" ], "url": "https://github.com/laravel/framework/pull/39909" }, { "tags": [ "x_refsource_MISC" ], "url": "https://github.com/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9b" }, { "tags": [ "x_refsource_MISC" ], "url": "https://github.com/laravel/framework/releases/tag/v6.20.42" }, { "tags": [ "x_refsource_MISC" ], "url": "https://github.com/laravel/framework/releases/tag/v7.30.6" }, { "tags": [ "x_refsource_MISC" ], "url": "https://github.com/laravel/framework/releases/tag/v8.75.0" } ], "source": { "advisory": "GHSA-66hf-2p6w-jqfw", "discovery": "UNKNOWN" }, "title": "Blade `@parent` Exploitation Leading To Possible XSS in Laravel", "x_legacyV4Record": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2021-43808", "STATE": "PUBLIC", "TITLE": "Blade `@parent` Exploitation Leading To Possible XSS in Laravel" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "framework", "version": { "version_data": [ { "version_value": "\u003e= 8.0.0, \u003c 8.75.0" }, { "version_value": "\u003e= 7.0.0, \u003c 7.30.6" }, { "version_value": "\u003c 6.20.42" } ] } } ] }, "vendor_name": "laravel" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "Laravel is a web application framework. Laravel prior to versions 8.75.0, 7.30.6, and 6.20.42 contain a possible cross-site scripting (XSS) vulnerability in the Blade templating engine. A broken HTML element may be clicked and the user taken to another location in their browser due to XSS. This is due to the user being able to guess the parent placeholder SHA-1 hash by trying common names of sections. If the parent template contains an exploitable HTML structure an XSS vulnerability can be exposed. This vulnerability has been patched in versions 8.75.0, 7.30.6, and 6.20.42 by determining the parent placeholder at runtime and using a random hash that is unique to each request." } ] }, "impact": { "cvss": { "attackComplexity": "HIGH", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 5.3, "baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N", "version": "3.1" } }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw", "refsource": "CONFIRM", "url": "https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw" }, { "name": "https://github.com/laravel/framework/pull/39906", "refsource": "MISC", "url": "https://github.com/laravel/framework/pull/39906" }, { "name": "https://github.com/laravel/framework/pull/39908", "refsource": "MISC", "url": "https://github.com/laravel/framework/pull/39908" }, { "name": "https://github.com/laravel/framework/pull/39909", "refsource": "MISC", "url": "https://github.com/laravel/framework/pull/39909" }, { "name": "https://github.com/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9b", "refsource": "MISC", "url": "https://github.com/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9b" }, { "name": "https://github.com/laravel/framework/releases/tag/v6.20.42", "refsource": "MISC", "url": "https://github.com/laravel/framework/releases/tag/v6.20.42" }, { "name": "https://github.com/laravel/framework/releases/tag/v7.30.6", "refsource": "MISC", "url": "https://github.com/laravel/framework/releases/tag/v7.30.6" }, { "name": "https://github.com/laravel/framework/releases/tag/v8.75.0", "refsource": "MISC", "url": "https://github.com/laravel/framework/releases/tag/v8.75.0" } ] }, "source": { "advisory": "GHSA-66hf-2p6w-jqfw", "discovery": "UNKNOWN" } } } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2021-43808", "datePublished": "2021-12-07T22:20:12", "dateReserved": "2021-11-16T00:00:00", "dateUpdated": "2024-08-04T04:03:08.661Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "vulnerability-lookup:meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2021-43808\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2021-12-08T00:15:07.683\",\"lastModified\":\"2024-11-21T06:29:50.123\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"Laravel is a web application framework. Laravel prior to versions 8.75.0, 7.30.6, and 6.20.42 contain a possible cross-site scripting (XSS) vulnerability in the Blade templating engine. A broken HTML element may be clicked and the user taken to another location in their browser due to XSS. This is due to the user being able to guess the parent placeholder SHA-1 hash by trying common names of sections. If the parent template contains an exploitable HTML structure an XSS vulnerability can be exposed. This vulnerability has been patched in versions 8.75.0, 7.30.6, and 6.20.42 by determining the parent placeholder at runtime and using a random hash that is unique to each request.\"},{\"lang\":\"es\",\"value\":\"Laravel es un framework de aplicaciones web. Laravel versiones anteriores a 8.75.0, 7.30.6 y 6.20.42, contiene una posible vulnerabilidad de tipo cross-site scripting (XSS) en el motor de plantillas Blade. Puede hacerse clic en un elemento HTML roto y llevar al usuario a otra ubicaci\u00f3n en su navegador debido a un ataque de tipo XSS. Esto es debido a que el usuario puede adivinar el hash SHA-1 del marcador de posici\u00f3n padre al probar los nombres comunes de las secciones. Si la plantilla padre contiene una estructura HTML explotable puede exponerse una vulnerabilidad de tipo XSS. Esta vulnerabilidad ha sido parcheada en las versiones 8.75.0, 7.30.6 y 6.20.42 determinando el marcador de posici\u00f3n padre en tiempo de ejecuci\u00f3n y usando un hash aleatorio que es \u00fanico para cada petici\u00f3n\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N\",\"baseScore\":5.3,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"HIGH\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":1.6,\"impactScore\":3.6},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N\",\"baseScore\":6.1,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"LOW\",\"integrityImpact\":\"LOW\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.8,\"impactScore\":2.7}],\"cvssMetricV2\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"2.0\",\"vectorString\":\"AV:N/AC:M/Au:N/C:N/I:P/A:N\",\"baseScore\":4.3,\"accessVector\":\"NETWORK\",\"accessComplexity\":\"MEDIUM\",\"authentication\":\"NONE\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"PARTIAL\",\"availabilityImpact\":\"NONE\"},\"baseSeverity\":\"MEDIUM\",\"exploitabilityScore\":8.6,\"impactScore\":2.9,\"acInsufInfo\":false,\"obtainAllPrivilege\":false,\"obtainUserPrivilege\":false,\"obtainOtherPrivilege\":false,\"userInteractionRequired\":true}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-79\"}]},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-327\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*\",\"versionEndExcluding\":\"6.20.42\",\"matchCriteriaId\":\"008F1411-5AC5-4BB3-9BB4-C873D9D4CB2C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"7.0.0\",\"versionEndExcluding\":\"7.30.6\",\"matchCriteriaId\":\"6B26BF29-BEB7-44FF-A39F-A103C30B0726\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"8.0.0\",\"versionEndExcluding\":\"8.75.0\",\"matchCriteriaId\":\"15E8F817-7A3D-40D4-9DCB-FBC8FD7CE3F7\"}]}]}],\"references\":[{\"url\":\"https://github.com/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9b\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/pull/39906\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/pull/39908\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/pull/39909\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/releases/tag/v6.20.42\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/releases/tag/v7.30.6\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/releases/tag/v8.75.0\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Exploit\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9b\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/pull/39906\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/pull/39908\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/pull/39909\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/releases/tag/v6.20.42\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/releases/tag/v7.30.6\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/releases/tag/v8.75.0\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Release Notes\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Exploit\",\"Third Party Advisory\"]}]}}" } }
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.