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

CVE-2022-30618

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

Descrizione

An authenticated user with access to the Strapi admin panel can view private and sensitive data, such as email and password reset tokens, for API users if content types accessible to the authenticated user contain relationships to API users (from:users-permissions). There are many scenarios in which such details from API users can leak in the JSON response within the admin panel, either through a direct or indirect relationship. Access to this information enables a user to compromise these users’ accounts if the password reset API endpoints have been enabled. In a worst-case scenario, a low-privileged user could get access to a high-privileged API account, and could read and modify any data as well as block access to both the admin panel and API by revoking privileges for all other users.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
strapi strapi >= 4.0.0 < 4.1.10 –
strapi strapi >= 3.0.0 < 3.6.10 –
Tutte le 42 vulnerabilità di Strapi

Tipo di vulnerabilità

CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer

The product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere file o cartelle, Leggere i dati dell’applicazione

Come si previene

Requisiti Clearly specify which information should be regarded as private or sensitive, and require that the product offers functionality that allows the user to cleanse the sensitive information from the resource before it is published or exported to other parties.
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 · Esercizio · Riduzione della superficie di attacco Some tools can automatically analyze documents to redact, strip, or sanitize private information, although some human review might be necessary. Tools may vary in terms of which document formats can be processed. When calling an external program to automatically generate or convert documents, invoke the program with any available options that avoid generating sensitive metadata. Some formats have well-defined fields that could contain private data, such as Exchangeable image file format (Exif), which can contain potentially sensitive metadata such as geolocation, date, and time.
Sviluppo · Riduzione della superficie di attacco Use naming conventions and strong types to make it easier to spot when sensitive data is being used. When creating structures, objects, or other complex entities, separate the sensitive and non-sensitive data as much as possible.
Sviluppo Avoid errors related to improper resource shutdown or release (CWE-404), which may leave the sensitive data within the resource if it is in an incomplete state.

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

Tutte le 137 CVE di tipo CWE-212, con andamento e prevenzione

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