Skip to content
OAuth / SSO Disclosed report Intermediate

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.

mattipv4 Follow

Originally disclosed on HackerOne

Bounty$250 Low View original
  • 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.

The original report as published on HackerOne, by mattipv4. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by mattipv4

View all

3 more disclosed reports, best first.

More from Cloudflare Public Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

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.