Descrizione
SuperTokens Core is an open source authentication server. From 11.3.0 until 11.3.7, 11.4.7, and 12.0.10, SAML.verifySamlResponseSignature calls OpenSAML SignatureValidator.validate without first applying SAMLSignatureProfileValidator. The Core can therefore accept a cryptographically valid signature that references a different XML element from the Response or Assertion whose NameID and attributes are used for authentication. An ordinary user of the configured identity provider can move a genuinely signed element elsewhere in the document while supplying an attacker-authored identity-bearing element, causing XML Signature Wrapping authentication as another IdP user. Both response-level and assertion-level signing paths are affected, and SP-initiated login remains reachable without enabling allowIDPInitiatedLogin. This issue is fixed in versions 11.3.7, 11.4.7, and 12.0.10.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.1, EPSS 0.2% (percentile 11).
Versioni da aggiornare
- supertokens supertokens-core: vulnerabile la versione
>= 12.0.6, < 12.0.10→ installare l'ultima release supportata dal vendor. - supertokens supertokens-core: vulnerabile la versione
>= 11.4.0, < 11.4.7→ installare l'ultima release supportata dal vendor. - supertokens supertokens-core: vulnerabile la versione
>= 11.3.0, < 11.3.7→ 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
- 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 |
|---|---|---|---|
| supertokens | supertokens-core | >= 12.0.6, < 12.0.10 | — |
| supertokens | supertokens-core | >= 11.4.0, < 11.4.7 | — |
| supertokens | supertokens-core | >= 11.3.0, < 11.3.7 | — |
Riferimenti
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/8d06b0cfb5409c5bf505051ddfcb94d66367caae
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/9cba541ae2ed87b878d11b257bc9b8b78341f50a
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/d0773f2a6497411aeda5d4f03d3d135a2a3ae79c
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v11.3.7
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v11.4.7
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v12.0.10
- Riferimentohttps://github.com/supertokens/supertokens-core/security/advisories/GHSA-gvx2-mwmj-wwvj