Descrizione

SuperTokens Core is an open source authentication server. From 11.3.0 until 11.3.8, 11.4.8, 12.0.11, 12.1.2, 12.2.1, and 12.3.1, a licensed deployment with a configured SAML client can authenticate an identity from an assertion that did not satisfy the audience check. When the identity provider uses assertion-level signing, an attacker who has a still-valid IdP-signed assertion naming the victim for any audience and the attacker's own valid assertion for the target audience can combine them because validateSamlResponseAudience accepts an audience from one assertion while extractAllClaims takes the final NameID and attributes from another; response-level signing does not expose this multi-assertion variant. Independently, an assertion from an identity provider configured for the target deployment but issued to another SuperTokens deployment using the shared default saml_sp_entity_id can satisfy the target's audience check. Successful exploitation authenticates the attacker as the victim IdP user. This issue is fixed in versions 11.3.8, 11.4.8, 12.0.11, 12.1.2, 12.2.1, and 12.3.1.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.1, EPSS 0.3% (percentile 23).

Versioni da aggiornare

  • supertokens supertokens-core: vulnerabile la versione >= 11.3.0, < 11.3.8 → installare l'ultima release supportata dal vendor.
  • supertokens supertokens-core: vulnerabile la versione >= 11.4.0, < 11.4.8 → installare l'ultima release supportata dal vendor.
  • supertokens supertokens-core: vulnerabile la versione >= 12.0.0, < 12.0.11 → installare l'ultima release supportata dal vendor.
  • supertokens supertokens-core: vulnerabile la versione >= 12.1.0, < 12.1.2 → installare l'ultima release supportata dal vendor.
  • supertokens supertokens-core: vulnerabile la versione >= 12.2.0, < 12.2.1 → installare l'ultima release supportata dal vendor.
  • supertokens supertokens-core: vulnerabile la versione >= 12.3.0, < 12.3.1 → installare l'ultima release supportata dal vendor.

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Non esporre l'interfaccia di gestione su Internet: consentire l'accesso solo da reti fidate e verificare la presenza di account, sessioni o chiavi non autorizzate.

Verifica

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
supertokens supertokens-core >= 11.3.0, < 11.3.8 —
supertokens supertokens-core >= 11.4.0, < 11.4.8 —
supertokens supertokens-core >= 12.0.0, < 12.0.11 —
supertokens supertokens-core >= 12.1.0, < 12.1.2 —
supertokens supertokens-core >= 12.2.0, < 12.2.1 —
supertokens supertokens-core >= 12.3.0, < 12.3.1 —

Riferimenti