Descrizione
Improper Verification of Cryptographic Signature in ueberauth guardian allows an unauthenticated attacker to revoke a victim's session with a forged token. Guardian.revoke/3 in lib/guardian.ex decodes the supplied token with peek/1, which performs no signature verification (it only base64-decodes the JWT header and payload). The resulting unverified claims are forwarded directly to the configured token module's revoke callback and the implementation's on_revoke callback, a state-mutating sink. The sibling operations refresh/2 and exchange/4 both call decode_and_verify first, so the signature is checked before anything acts on the claims; revoke/3 is the only state-mutating path that acts on claims without verifying the signature. An attacker who knows or guesses a victim's identifying claim values (jti, sub) can forge a JWT carrying those claims, sign it with an arbitrary key, and submit it to any endpoint that funnels a caller-supplied token into Guardian.revoke/3 (the standard logout / session-revocation pattern). When the token module mutates state keyed by the claims (whitelist deletion or blacklist insertion, for example a GuardianDb-style store), the victim's legitimate session is evicted. This is an unauthenticated session-revocation denial of service; the attacker never needs the signing secret. This issue affects guardian: from 1.0.0-beta.0 before 2.4.1.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5.
Versioni da aggiornare
- Ueberauth Guardian: vulnerabili le versioni dalla
1.0.0precedenti alla2.4.1→ aggiornare alla2.4.1o successiva.
Patch e advisory
- Patch: github.com/ueberauth/guardian/commit/2bd7a8c297…
- Advisory di terze parti: cna.erlef.org/cves/CVE-2026-55735.html
- Advisory di terze parti: osv.dev/vulnerability/EEF-CVE-2026-55735
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Ueberauth | Guardian | ≥ 1.0.0 < 2.4.1 | 2.4.1 |
Riferimenti
- Patchhttps://github.com/ueberauth/guardian/commit/2bd7a8c29770d423d855c0a4965caa6c3e486901
- Exploit pubblicohttps://github.com/ueberauth/guardian/security/advisories/GHSA-7975-hp3r-5qhv
- Exploit pubblicohttps://github.com/ueberauth/guardian/security/advisories/GHSA-7975-hp3r-5qhv
- Advisory di terze partihttps://cna.erlef.org/cves/CVE-2026-55735.html
- Advisory di terze partihttps://osv.dev/vulnerability/EEF-CVE-2026-55735
- Riferimentohttps://github.com/ueberauth/guardian/commit/d65227145f72b290106c06cecbe42728fbf05fe2