Vulnerabilities of mobile OAuth 2.0
summary
Shows concrete exploits and fixes: captures an HTTP authorization code from a mobile OAuth flow (demo against Airbnb) then replays it at the token endpoint to repeatedly log in, demonstrating reusable codes and MitM risk; demonstrates Authorization Code Interception via competing custom URI schemes that deliver codes to the wrong app based on install order; exposes a postMessage "" origin leak that sends codes to attacker pages and an account linking path that yields takeover; explains mitigations including PKCE (code_verifier/code_challenge)*, strict redirect_uri/regex checks, HTTPS/pinning, and storing tokens in iOS Keychain or Android internal storage.
AI-written summary · about
