CWE•Variant•Incomplete•14 recent CVEs
CWE-647Use of Non-Canonical URL Paths for Authorization Decisions
Description
The product defines policy namespaces and makes authorization decisions based on the assumption that a URL is canonical.
[object Object]
Common consequences
- Access Control→Bypass Protection MechanismThis can allow a non-canonical URL to bypass the authorization. An attacker may be able to bypass the authorization mechanism to gain access to the otherwise-protected URL.
- Confidentiality→Read Files or DirectoriesIf 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).
Potential mitigations
- Architecture and DesignMake access control policy based on path information in canonical form, with all alternate encodings rejected (which can be accomplished by a default deny rule). Consider very restrictive regular expressions to validate that the path is in the expected form. Reject all alternate path encodings that are not in the expected canonical form.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-933356.52026-11-13CVE-2026-765308.82026-10-21CVE-2026-942692026-10-01CVE-2026-711783.72026-09-23CVE-2026-735515.32026-09-21CVE-2026-805152026-09-03CVE-2026-159704.22026-08-07CVE-2026-626858.12026-07-15CVE-2026-83845.32026-07-14CVE-2026-597318.22026-07-08CVE-2026-52226.52026-05-25CVE-2025-99096.72026-02-27CVE-2025-662026.52025-12-09CVE-2025-645007.32025-11-12