Descrizione
SuperTokens Core is an open source authentication server. From 11.0.0 until 11.0.9, 11.1.4, 11.2.4, 11.3.8, 11.4.8, 12.0.11, and 12.1.2, Dashboard.isValidUserSession treats any stored session row as valid without comparing DashboardSessionInfo.expiry to the current time. DashboardQueries.getSessionInfoWithSessionId also selects by app and session identifier without an expiry predicate, leaving the periodic DeleteExpiredDashboardSessions cleanup as the only expiration enforcement. An attacker who obtains a dashboard administrator session after its 30-day lifetime can continue using POST /recipe/dashboard/session/verify until the row is removed, and frequent Core restarts can prevent the 12-hour cleanup sweep from running. The stale session retains full dashboard read and write access, but the flaw does not provide a way to guess or acquire the random session identifier. This issue is fixed in versions 11.0.9, 11.1.4, 11.2.4, 11.3.8, 11.4.8, 12.0.11, and 12.1.2.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.4, EPSS 0.8% (percentile 56).
Versioni da aggiornare
- supertokens supertokens-core: vulnerabile la versione
>= 11.0.0, < 11.0.9→ installare l'ultima release supportata dal vendor. - supertokens supertokens-core: vulnerabile la versione
>= 11.1.0, < 11.1.4→ installare l'ultima release supportata dal vendor. - supertokens supertokens-core: vulnerabile la versione
>= 11.2.0, < 11.2.4→ installare l'ultima release supportata dal vendor. - 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.
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 |
|---|---|---|---|
| supertokens | supertokens-core | >= 11.0.0, < 11.0.9 | — |
| supertokens | supertokens-core | >= 11.1.0, < 11.1.4 | — |
| supertokens | supertokens-core | >= 11.2.0, < 11.2.4 | — |
| 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 | — |
Riferimenti
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/0f4817152278b39fbf21b97c3795b4fc68c12c38
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/4b315b2382c8eec2cde28fbda113597bffad8da5
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/699d806b5fc77ee6343f8e48e0769dce8049b078
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/8906b840669b28b3af7367cf18870db0044d0d18
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/bd8eb93001cf814a8065e8f3cea755af267bc308
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/ced1c913d53641e5eb8108caef110e55348b5401
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/da0ec91d20ecbb68730741f8b0dec8c986b68877
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/e72793ec5bd925fd3b9ff19328043dc2a03201bd
- Riferimentohttps://github.com/supertokens/supertokens-core/pull/1409
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v11.0.9
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v11.1.4
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v11.2.4
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v11.3.8
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v11.4.8
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v12.0.11
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v12.1.2
- Riferimentohttps://github.com/supertokens/supertokens-core/security/advisories/GHSA-w9fp-wv6g-pqv8