1. Archivio CVE
  2. 2022
  3. CVE-2022-23643

CVE-2022-23643

6.5 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N 6.5 – Media

Descrizione

Sourcegraph is a code search and navigation engine. Sourcegraph versions 3.35 and 3.36 reintroduced a previously fixed side-channel vulnerabilitity in the Code Monitoring feature where strings in private source code could be guessed by an authenticated but unauthorized actor. This issue affects only the Code Monitoring feature, whereas CVE-2021-43823 also affected saved searches. A successful attack would require an authenticated bad actor to create many Code Monitors to receive confirmation that a specific string exists. This could allow an attacker to guess formatted tokens in source code, such as API keys. This issue was patched in versions 3.35.2 and 3.36.3 of Sourcegraph. Those who are unable to upgrade may disable the Code Monitor feature in their installation.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
sourcegraph sourcegraph >= 3.35.0 < 3.35.2 –
sourcegraph sourcegraph >= 3.36.0 < 3.36.3 –
Tutte le 10 vulnerabilità di Sourcegraph

Tipo di vulnerabilità

CWE-203 Differenza osservabile nel comportamento

Il prodotto si comporta o risponde in modo diverso a seconda delle circostanze, e la differenza è visibile a un soggetto non autorizzato, che può dedurne informazioni (per esempio se un utente esiste).

Impatto sui sistemi

AmbitoImpatto
Riservatezza, Controllo degli accessi Leggere i dati dell’applicazione, Aggirare i meccanismi di protezione
Riservatezza Leggere i dati dell’applicazione

Come si previene

Architettura e progettazione · Separazione dei privilegi Suddividi il sistema in compartimenti, con aree sicure i cui confini di fiducia siano tracciati senza ambiguità. Non lasciare uscire i dati sensibili da questi confini e presta sempre attenzione quando interagisci con un compartimento esterno all’area sicura. La suddivisione va prevista già in fase di progettazione e deve favorire la separazione dei privilegi; per decidere quando usare i privilegi e quando rinunciarvi, segui il principio del privilegio minimo.
Sviluppo Ensure that error messages only contain minimal details that are useful to the intended audience and no one else. The messages need to strike the balance between being too cryptic (which can confuse users) or being too detailed (which may reveal more than intended). The messages should not reveal the methods that were used to determine the error. Attackers can use detailed information to refine or optimize their original attack, thereby increasing their chances of success. If errors must be captured in some detail, record them in log messages, but consider what could occur if the log messages can be viewed by attackers. Highly sensitive information such as passwords should never be saved to log files. Avoid inconsistent messaging that might accidentally tip off an attacker about internal state, such as whether a user account exists or not.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 820 CVE di tipo CWE-203, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org