Descrizione
Chartbrew is an open-source web application that can connect directly to databases and APIs and use the data to create charts. Prior to 5.2.3, the shared project permission check trusted a caller-controlled team_id and let the teamOwner/teamAdmin branch continue without confirming that the target project belonged to that team. The vulnerable surface is project routes and related authorization checks that accepted user-controlled project identifiers. An authenticated user who is an owner or admin of their own team submits a victim project id together with the attacker's own team_id in the request body; default self-signup grants the required role on the user's own team. Authorization is evaluated against the attacker-selected team instead of the target project's team, and the update path mass-assigns the request body without a project field allow-list. The attacker needs a valid Chartbrew account, an owner or admin role on their own team, and a victim project identifier; requests without the body team_id trick are rejected. The attacker can re-parent the victim project into their own team, gain full read and write access, expose it publicly, remove password protection, and cause the victim to lose it; the shared delete route also permits cross-tenant deletion. This issue is fixed in version 5.2.3.
Tipo di vulnerabilità
CWE-639
Aggiramento dell’autorizzazione tramite una chiave controllata dall’utente (IDOR)
Il controllo delle autorizzazioni non impedisce a un utente di accedere ai dati o ai record di un altro semplicemente cambiando l’identificativo che li richiama.
Impatto sui sistemi
| Ambito | Impatto |
| Controllo degli accessi |
Aggirare i meccanismi di protezione È possibile aggirare i controlli di accesso su dati o funzioni specifici di un utente. |
| Controllo degli accessi |
Ottenere privilegi o assumere un’altra identità È possibile un’escalation orizzontale dei privilegi: un utente può vedere o modificare le informazioni di un altro. |
| Controllo degli accessi |
Ottenere privilegi o assumere un’altra identità È possibile un’escalation verticale dei privilegi se la chiave controllata dall’utente è in realtà un indicatore del ruolo di amministratore: l’attaccante ottiene così l’accesso amministrativo. |
Come si previene
Architettura e progettazione
Per ogni accesso ai dati, verifica che l’utente abbia i privilegi necessari per accedere al record richiesto.
Architettura e progettazione · Sviluppo
Assicurati che la chiave usata per cercare il record di un utente non possa essere controllata dall’esterno, o che ogni manomissione venga rilevata.
Architettura e progettazione
Usa la cifratura per rendere più difficile indovinare altri valori validi della chiave, oppure associa alla chiave una firma digitale, così che il server possa verificare che non sia stata manomessa.
Tutte le 3.543 CVE di tipo CWE-639, con andamento e prevenzione