目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1000

100.0%

CWE-647 使用未经净化的URL路径进行授权决策 类漏洞列表 6

CWE-647 使用未经净化的URL路径进行授权决策 类弱点 6 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-647 属于授权决策漏洞。当应用基于 URL 进行权限控制却未规范化路径时,攻击者可利用非标准 URL 格式(如大小写混淆、双斜杠或编码变体)绕过检查,访问受限资源。开发者应避免直接信任原始 URL,需在授权前强制转换为规范格式,确保所有路径变体均经过统一校验,从而消除因解析差异导致的安全盲区。

MITRE CWE 官方描述
CWE:CWE-647 使用非规范(Non-Canonical)URL 路径进行授权决策 英文:产品定义了策略命名空间(policy namespaces),并基于 URL 是规范(canonical)的假设来做出授权决策。这可能导致非规范(non-canonical)URL 绕过授权检查。 如果应用程序定义了策略命名空间(policy namespaces)并基于 URL 做出授权决策,但在做出授权决策之前未要求或转换为规范(canonical)URL,则会使应用程序面临攻击风险。例如,如果应用程序仅允许访问 http://www.example.com/mypage,则攻击者可能能够使用等效的 URL 绕过此限制,例如:http://WWW.EXAMPLE.COM/mypage、http://www.example.com/%6Dypage(替代编码)、http://192.168.1.1/mypage(IP 地址)、http://www.example.com/mypage/(尾部斜杠)、http://www.example.com:80/mypage。因此,指定基于某种规范(canonical)形式路径信息的访问控制策略至关重要,并应拒绝所有替代编码(这可以通过默认拒绝规则实现)。
常见影响 (2)
Access ControlBypass Protection Mechanism
An attacker may be able to bypass the authorization mechanism to gain access to the otherwise-protected URL.
ConfidentialityRead Files or Directories
If a non-canonical URL is used, the server may choose to return the contents of the file, instead of pre-processing the file (e.g. as a program).
缓解措施 (2)
Architecture and DesignMake access control policy based on path information in canonical form. Use very restrictive regular expressions to validate that the path is in the expected form.
Architecture and DesignReject all alternate path encodings that are not in the expected canonical form.
代码示例 (1)
Example from CAPEC (CAPEC ID: 4, "Using Alternative IP Address Encodings"). An attacker identifies an application server that applies a security policy based on the domain and application name, so the access control policy covers authentication and authorization for anyone accessing http://example.domain:8080/application. However, by putting in the IP address of the host the application authentica…
CVE ID标题CVSS风险等级Published
CVE-2025-9909 Red Hat Ansible Automation Platform 安全漏洞 — Red Hat Ansible Automation Platform 2.5 for RHEL 8 6.7 Medium2026-02-27
CVE-2025-66202 Astro 安全漏洞 — astro 6.5 Medium2025-12-08
CVE-2025-64500 Symfony 安全漏洞 — symfony 7.3 High2025-11-12
CVE-2025-47241 Browser Use 安全漏洞 — browser-use 4.0 Medium2025-05-03
CVE-2025-43916 Sonos api.sonos.com 安全漏洞 — api.sonos.com 3.4 Low2025-04-21
CVE-2022-43939 Hitachi Vantara Pentaho Business Analytics Server 安全漏洞 — Pentaho Business Analytics Server 8.6 High2023-04-03

CWE-647(使用未经净化的URL路径进行授权决策) 是常见的弱点类别,本平台收录该类弱点关联的 6 条 CVE 漏洞。