Katalog CVE

CVE-2026-81853

NiskieCVSS 2.3
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

Podatność w ash_admin pozwala na obejście autoryzacji poprzez kontrolowany klucz użytkownika, zamieniając URL wyszukiwania rekordu w wyrocznię równości dla wrażliwych atrybutów. Dekodowanie klucza głównego nie sprawdza, czy zwrócone pola są prawdziwymi polami klucza głównego, co umożliwia brute-force wrażliwych wartości.

Ocena ryzyka

Atakujący może odgadnąć wrażliwe wartości, takie jak tokeny API lub tokeny resetujące, co może prowadzić do nieautoryzowanego dostępu do kont i danych.

Rekomendacja

Zaktualizuj ash_admin do wersji 1.3.1 lub nowszej, która odrzuca zdekodowane klucze niebędące prawdziwymi polami klucza głównego.

Inne podatności w ash_admin

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

Authorization Bypass Through User-Controlled Key vulnerability in ash-project ash_admin turns a record-lookup URL into an equality oracle over sensitive attributes. AshAdmin.Helpers.decode_primary_key/2 decodes the composite-primary-key form (Base64 plus ETF) and returns the decoded map verbatim as the lookup filter, without checking that its keys are the resource's primary-key fields. The deserialization guards bound size, block new atoms and funs, and reject nested expressions, but none restricts which fields come back, and :safe still allows any already-interned attribute name. An attacker can therefore encode %{api_token: "guess"} and have it spliced into the lookup filter, brute-forcing a sensitive attribute value (API token, reset token) one equality guess at a time; Map.to_list/1 also accepts structs, yielding a bogus __struct__ key. The fix rejects any decoded key that is not a real primary-key field. This issue affects ash_admin: from 0.1.0 before 1.3.1.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS