Missing ID token claim validation in ueberauth_apple allows account takeover
ueberauth_apple
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ueberauth ueberauth_apple |
| No fix yet |
| ueberauth ueberauth_apple |
| No fix yet |
Original description
Authentication Bypass by Spoofing vulnerability in ueberauth ueberauth_apple allows account takeover via unvalidated ID token claims.
The Ueberauth.Strategy.Apple.Token.payload/2 function verifies the JWT signature of the callback id_token against Apple's JWKS but does not validate any registered claims. The iss, aud, exp, and iat claims are read from the token and passed on to Ueberauth.Strategy.Apple.handle_callback!/1, which derives the logged-in user's uid and email directly from the unvalidated sub claim.