更新: 2423 个文件 - 2026-03-18 14:23:01

这个提交包含在:
hao
2026-03-18 14:23:01 -07:00
父节点 9a5f48cdf7
当前提交 96b5353a91
修改 2423 个文件,包含 239337 行新增2806 行删除

查看文件

@@ -0,0 +1,152 @@
{
"canonical_id": "laravel--CVE-2021-43808",
"system_id": "laravel",
"display_name": "Laravel",
"category": "frameworks",
"advisory_mode": "core",
"title": "Laravel Framework XSS in Blade templating engine",
"summary": "A security researcher has disclosed a possible XSS vulnerability in the Blade templating engine.\n\nGiven the following two Blade templates:\n\nresources/views/parent.blade.php:\n\n```html\n@section('content')\n<input value=\"{{ $value }}\">\n@show\n```\n\nresources/views/child.blade.php:\n\n```html\n@extends('parent')\n\n@section('content')\n<input value=\"{{ $value }}\">\n@endsection\n```\n\nAnd a route like the following:\n\n```php\nRoute::get('/example', function() {\n $value = '//localhost/###parent-placeholder-040f06fd774092478d450774f5ba30c5da78acc8## onclick=location.assign(this.value);//';\n\n return view('child', ['value' => $value]);\n});\n```\n\nThe broken HTML element may be clicked and the user is 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.\n\nThis vulnerability has been patched by determining the parent placeholder at runtime and using a random hash that is unique to each request.",
"published_at": "2021-12-08T19:57:36Z",
"updated_at": "2026-03-13T22:01:16.767646Z",
"severity": "low",
"cvss_score": 3.1,
"exploit_status": "unknown",
"source_confidence": "official",
"official_source_url": "https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw",
"secondary_source_urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2021-43808",
"https://github.com/laravel/framework/pull/39906",
"https://github.com/laravel/framework/pull/39908",
"https://github.com/laravel/framework/pull/39909",
"https://github.com/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9b",
"https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/view/CVE-2021-43808.yaml",
"https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2021-43808.yaml",
"https://github.com/laravel/framework",
"https://github.com/laravel/framework/releases/tag/v6.20.42",
"https://github.com/laravel/framework/releases/tag/v7.30.6",
"https://github.com/laravel/framework/releases/tag/v8.75.0"
],
"aliases": [
"CVE-2021-43808",
"GHSA-66hf-2p6w-jqfw"
],
"cve_ids": [
"CVE-2021-43808"
],
"ghsa_ids": [
"GHSA-66hf-2p6w-jqfw"
],
"osv_ids": [
"GHSA-66hf-2p6w-jqfw"
],
"affected_versions": [
"5.0.30",
"5.2.41",
"v4.0.0",
"v4.0.0-BETA2",
"v4.0.0-BETA3",
"v4.0.0-BETA4",
"v4.0.1",
"v4.0.10",
"v4.0.11",
"v4.0.2",
"v4.0.3",
"v4.0.4",
"v4.0.5",
"v4.0.6",
"v4.0.7",
"v4.0.8",
"v4.0.9",
"v4.1.0",
"v4.1.1",
"v4.1.10",
"v7.0.0",
"v7.0.1",
"v7.0.2",
"v7.0.3",
"v7.0.4",
"v7.0.5",
"v7.0.6",
"v7.0.7",
"v7.0.8",
"v7.1.0",
"v7.1.1",
"v7.1.2",
"v7.1.3",
"v7.10.0",
"v7.10.1",
"v7.10.2",
"v7.10.3",
"v7.11.0",
"v7.12.0",
"v7.13.0",
"v8.0.0",
"v8.0.1",
"v8.0.2",
"v8.0.3",
"v8.0.4",
"v8.1.0",
"v8.10.0",
"v8.11.0",
"v8.11.1",
"v8.11.2",
"v8.12.0",
"v8.12.1",
"v8.12.2",
"v8.12.3",
"v8.13.0",
"v8.14.0",
"v8.15.0",
"v8.16.0",
"v8.16.1",
"v8.17.0",
"5.7.17",
"5.7.18",
"5.7.19",
"v1.0.0",
"v1.1.0",
"v1.1.1",
"introduced=0, fixed<6.20.42",
"introduced=7.0.0, fixed<7.30.6",
"introduced=8.0.0, fixed<8.75.0"
],
"fixed_versions": [
"6.20.42",
"7.30.6",
"8.75.0"
],
"package_name": "laravel/framework",
"render_markdown": true,
"case_path": "07-framework-security/frameworks/laravel/cases/laravel-cve-2021-43808.md",
"secure_code_topics": [
"xss-output-encoding",
"authz-server-side-recheck",
"file-upload-validation"
],
"status": "generated",
"triage_reasons": [],
"verification_status": "triage-manual",
"verification_mode": "synthetic",
"last_verified_at": null,
"last_run_id": null,
"evidence_bundle": null,
"historical_status": null,
"latest_status": null,
"browser_evidence": {
"required": false,
"present": false,
"refs": []
},
"repro_profile_id": "xss-generic",
"artifact_mode": "synthetic",
"blocked_reason": null,
"metadata": {
"source_names": [
"OSV Laravel"
],
"source_kinds": [
"osv-batch"
],
"candidate_count": 1
}
}