Descrizione
SuperTokens Core is an open source authentication server. Prior to 11.3.6, 11.4.6, and 12.0.8, app-specific management requests using an unknown tenant path and an older supported cdi-version can bypass API-key and public-tenant enforcement. In src/main/java/io/supertokens/webserver/WebserverAPI.java, checkIPAccess and assertThatAPIKeyCheckPasses suppress TenantOrAppNotFoundException, while the later app-specific handler resolves app/public storage and the public-tenant guard applies only to CDI versions 5.0 and later. An unauthenticated caller able to reach the Core endpoint can therefore use PUT /ghosttenant/recipe/role and GET /ghosttenant/recipe/roles to create and enumerate application roles without a valid API key. This issue is fixed in versions 11.3.6, 11.4.6, and 12.0.8.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5, EPSS 0.5% (percentile 40).
Versioni da aggiornare
- supertokens supertokens-core: vulnerabile la versione
< 11.3.6→ installare l'ultima release supportata dal vendor. - supertokens supertokens-core: vulnerabile la versione
>= 11.4.0, < 11.4.6→ installare l'ultima release supportata dal vendor. - supertokens supertokens-core: vulnerabile la versione
>= 12.0.6, < 12.0.8→ 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 | < 11.3.6 | — |
| supertokens | supertokens-core | >= 11.4.0, < 11.4.6 | — |
| supertokens | supertokens-core | >= 12.0.6, < 12.0.8 | — |
Riferimenti
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/1bad648d7b77aca058cb6bf75373455bacc4e537
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/5811a10190b1d4d8d7a9fe2e17cb49437e6ffa49
- Riferimentohttps://github.com/supertokens/supertokens-core/commit/7ce22db2b6ba95d7666adc51bb9ee60ac7d3d198
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v11.3.6
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v11.4.6
- Riferimentohttps://github.com/supertokens/supertokens-core/releases/tag/v12.0.8
- Riferimentohttps://github.com/supertokens/supertokens-core/security/advisories/GHSA-q7mc-f2jm-r4gr