SuperTokens supertokens-core
SuperTokens Core: Unknown tenant path bypasses API key and public-tenant enforcement
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 11.3.6
- >= 11.4.0, < 11.4.6
- >= 12.0.6, < 12.0.8
Fixed in 11.3.6, 11.4.6, 12.0.8
Mitigation
Upgrade supertokens-core to 11.3.6 or 11.4.6 or 12.0.8 or later.
References
- Vendor advisory github.com/supertokens/supertokens-core/securi…
- Patch github.com/supertokens/supertokens-core/commit…
- Patch github.com/supertokens/supertokens-core/commit…
4 more
- Patch github.com/supertokens/supertokens-core/commit…
- Release notes github.com/supertokens/supertokens-core/releas…
- Release notes github.com/supertokens/supertokens-core/releas…
- Release notes github.com/supertokens/supertokens-core/releas…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.