SuperTokens Sign in with Apple Account Takeover | Whitenbaker Labs

Advisory · Account takeover · CVE submitted, awaiting review

Sign in with Apple hands the login to any address the caller picks

SuperTokens’ backend SDKs read the post-login destination from the unsigned state parameter and redirect the user’s browser there — carrying Apple’s login code and id_token. An attacker who sets the state receives the victim’s login credentials. The app’s own configured domain is available to the SDK and never checked.

Severity High · CVSS 8.1 (vendor) Class Account takeover · CWE-601 / CWE-522 Affected Go 0.26.0 · Node 24.0.3 · Python 0.31.3 Status Disclosed · no fix released
01

At a glance

CVERequested · submitted, awaiting assignment
AdvisoriesGHSA-4wv9-8h92-4cg8 · GHSA-j9qp-rxcc-p53p · GHSA-3vrp-2rj4-wvw6 (opened by vendor, unpublished) · CERT/CC VRF#26-09-WZJRP
ClassCWE-601 (Open Redirect) · CWE-522 — leads to account takeover
SeverityHigh · CVSS 8.1 (vendor) (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N)
AffectedGo v0.26.0 · Node v24.0.3 · Python v0.31.3 — each the latest release at the time
FixedNone released
VendorSuperTokens Inc.
VectorNetwork · no account needed · requires the victim to complete a normal sign-in
StatusDisclosed · vendor deadline of 18 Oct 2026 passed · no fix released
ResearcherDrew Morana (@dmorana) · Whitenbaker Labs

The promise under test

Sign in with Apple is supposed to prove who the user is to this app. Here the SDK lets the caller choose where the proof is delivered — and the app’s own domain, which would have caught it, is never consulted.

02

What goes wrong

On the Apple sign-in callback, the SDK decodes state as plain base64 JSON — no signature, no server-side copy to verify against — and uses the frontendRedirectURI field as the redirect target without validation. A loop then copies every field Apple posted, including code and id_token, onto that URL.

  • The attacker builds a genuine Apple sign-in link for the target app — the client ID is public — with their own state embedded.
  • The victim sees the normal Apple prompt and signs in as usual.
  • The SDK redirects to the attacker’s address, carrying the login code and id_token.
  • A test on Node 24.0.3 (21 Oct 2026) produced a 303 redirect with the code and id_token sent to an external host.

A sharper edge in Go

In the Go SDK, a state with no address causes a crash from an unchecked type conversion at implementation.go:133.

03

Impact

The victim signs in to the real app. The attacker receives the same credentials the app uses to finish the job.

Any app running one of these SDKs with Sign in with Apple is exposed, and the attacker needs no account on the target app. The vendor first rated this an open redirect, then on 30 Sep 2026 re-rated it to account takeover at CVSS 8.1.

04

Disclosure timeline

  • 27 Aug 2026Go SDK finding reported to SuperTokens security with a suggested fix.
  • 05 Sep 2026Vendor confirmed the missing check but rated it an open redirect; Node and Python reported the same day.
  • 29 Sep 2026Filed with CERT/CC.
  • 30 Sep 2026Re-rated to account takeover across all three SDKs; advisories opened; researcher credited.
  • 12 Oct 2026Vendor offered $650 total for the accepted reports — declined; publication set for 18 Oct 2026.
  • 13 Oct 2026Deadline communicated in writing; no reply.
  • 21 Oct 2026Published. No fixed release existed in any of the three SDKs.
05

Remediation, until a fix ships

Override the Apple callback handler — appleRedirectHandlerPOST in Go and Node, apple_redirect_handler_post in Python — to reject any state whose redirect target is not the operator’s own website domain. Alternatively, disable Sign in with Apple. Operators needing guidance can contact Whitenbaker Labs.

Whitenbaker Labs

Independent adversarial security research — silent-patch detection, CVE disclosure through MITRE, and the evidence behind both.

Research by Drew Morana (@dmorana) · Toronto

We don’t file reports. We prove findings.

Published for coordinated disclosure and defensive purposes. Findings were confirmed against the vendor’s published packages on a private test setup. No SuperTokens service or customer system was touched.

© 2026 Whitenbaker Labs
research@whitenbaker.com · PGP on request