Descrizione
kin-openapi through 0.153.0 contains an authentication bypass vulnerability that allows unauthenticated attackers to skip security requirements by sending percent-encoded request paths, due to an incomplete fix for CVE-2026-100351. Attackers can use encoded separators via Servers.MatchURL, requests through Validator.Middleware, or other encoded characters so validation matches a public operation while the router serves a protected handler without calling AuthenticationFunc.
Tipo di vulnerabilità
CWE-647
Use of Non-Canonical URL Paths for Authorization Decisions
The product defines policy namespaces and makes authorization decisions based on the assumption that a URL is canonical.
Impatto sui sistemi
| Ambito | Impatto |
| Controllo degli accessi |
Aggirare i meccanismi di protezione |
| Riservatezza |
Leggere file o cartelle |
Come si previene
Architettura e progettazione
Make 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.
Tutte le 19 CVE di tipo CWE-647, con andamento e prevenzione