Descrizione
Caddy is an extensible server platform that uses TLS by default. From 2.4.0 until 2.11.3, the authorization layer and the /config traversal layer do not agree on what object the path refers to. In this case, a path authorized for one config object is accepted, but then resolves to a different config object during traversal. This happens because the authorization layer uses string prefix matching and the /config traversal layer parses array indices numerically using strconv.Atoi(). This vulnerability is fixed in 2.11.3.
Tipo di vulnerabilità
CWE-187
Partial String Comparison
The product performs a string comparison that only examines a portion of the string before determining whether there is a match.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Controllo degli accessi |
Alterare la logica di esecuzione, Aggirare i meccanismi di protezione |
Come si previene
Test
Thoroughly test the comparison scheme before deploying code into production. Perform positive testing as well as negative testing.
Tutte le 19 CVE di tipo CWE-187, con andamento e prevenzione