Descrizione
Wiki.js 3.0.0 before 3.3.0 contains an authorization bypass vulnerability that allows authenticated users to move pages into denied branches by supplying non-canonical, case-varied destination paths. Attackers can send a PUT request to the page path endpoint with a destination like HR/Announcement, which bypasses case-sensitive page rules and is stored under the protected lowercase branch, while 409 responses disclose existing protected paths.
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 22 CVE di tipo CWE-647, con andamento e prevenzione