1. Archivio CVE
  2. 2024
  3. CVE-2024-58362

CVE-2024-58362

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

Descrizione

SurrealDB before 1.5.5 (and 2.0.0-beta before 2.0.0-beta.3) accepts an arbitrary object in the signin and signup operations of the RPC API without recursively validating it for non-computed values. When a record access method defines a SIGNIN or SIGNUP query and the RPC API is exposed to untrusted users, an unauthenticated attacker can encode a binary object containing a subquery using the bincode serialization format and supply it in place of credentials. The subquery is then executed within the database owner's SIGNIN/SIGNUP query under a system user session with the editor role, allowing the attacker to select, create, update, and delete non-IAM resources (though not view the query results directly, and not affect IAM resources, which require the owner role).

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
surrealdb surrealdb < 1.5.5 –
surrealdb surrealdb 2.0.0 beta1 –
surrealdb surrealdb 2.0.0 beta2 –
Tutte le 97 vulnerabilità di Surrealdb

Tipo di vulnerabilità

CWE-75 Failure to Sanitize Special Elements into a Different Plane

The product does not adequately filter user-controlled input for special elements with control implications.

Impatto sui sistemi

AmbitoImpatto
Integrità, Riservatezza, Disponibilità Modificare i dati dell’applicazione, Eseguire codice o comandi non autorizzati

Come si previene

Requisiti Programming languages and supporting technologies might be chosen which are not subject to these issues.
Sviluppo Utilize an appropriate mix of allowlist and denylist parsing to filter special element syntax from all input.

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

Tutte le 24 CVE di tipo CWE-75, con andamento e prevenzione

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