Zurück zur Liste

SurrealDB: Indexed ORDER BY leaks the value ordering of a SELECT-restricted field — GHSA-H4H3-3RFJ-X6FQ

GitHub · GitHub · GHSA-H4H3-3RFJ-X6FQ

ID
GHSA-H4H3-3RFJ-X6FQ
Datum
Activity
Quelle
GitHub
Vendor
GitHub
Risiko
medium
CVSS
4.3

Zusammenfassung

A field can be hidden from a user with a field-level SELECT permission (`DEFINE FIELD code ON secret PERMISSIONS FOR select WHERE owner = $auth.id`). When that field is indexed, a record user who cannot read it could still recover the relative ordering of its values across every record by issuing `ORDER BY <field>`: the field came back `null` as intended, but the rows were returned in the hidden values' true sorted…

Produkt

rust: surrealdb

Was tun?

Allgemeine, vorsichtige Schritte (bitte prüfe die offizielle Quelle für Details):

  • Prüfe Exponierung und plane Maßnahmen nach Risiko und Umfeld.
  • Identifiziere betroffene Produktversionen und prüfe, ob du betroffen bist.
  • Spiele Hersteller-Updates/Patches ein oder setze empfohlene Mitigations um.
  • Lies das offizielle Advisory für betroffene Versionen und konkrete Schritte.

Offizielles Advisory

Mehr dazu