Sign in with Apple generates long-life JWTs, seemingly irrevocable, that grant immediate access to accounts
Sign in with Apple issued an OIDC JWT with an excessive lifetime when creating a new account for the Cloudflare Dashboard. An attacker who intercepted the token could impersonate the user across multiple devices for the whole validity period without re-authenticating.
- Fixed in 12 hours
- Paid in 12 hours
- Disclosed after 20 days
Summary by the program
The OIDC JWT token issued on a new Sign in with Apple ID to the Cloudflare Dashboard had an excessive lifetime. When intercepted by a malicious actor, it enabled impersonation of the affected user on multiple devices during the entire token validity period without the need to re-authenticate. The issue was fixed by the engineering team and the lifetime of the generated JWT was significantly decreased.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker who intercepted the token could impersonate the affected user on multiple devices for the entire token validity period without re-authenticating.
What the attacker needed
Attacker intercepts the JWT; victim signs in with Apple
The fix
The engineering team fixed the issue by significantly decreasing the lifetime of the generated JWT.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you sign in with Apple, the service gives your browser a digital pass called a token. This report found that the pass stayed valid for far too long, so anyone who stole it could pretend to be you for that whole time. The company later made the pass expire much sooner.
What is OAuth / SSO?
Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.