Securing OAuth 2.0 For Native Apps
summary
Shows concrete attacks and fixes: three demo apps (well-behaved, insecure, malicious) that successfully intercept OAuth flows on mobile by claiming redirect URIs or using embedded webviews, and a CSRF-style attack that binds an attacker account to a victim app. Recommends PKCE required for public/native clients, system browser not webview, register and verify full HTTPS redirect URIs (Android App Links / iOS Associated Domains), validate the state parameter, and revoke/monitor tokens; demos prove the attacks work.
AI-written summary · about
chapters (16)
- 0:00Introduction to OAuth 2.0
- 1:13Authentication vs authorization
- 2:17OAuth 2.0 roles and flow
- 6:13Authorization code grant demo
- 9:20Demo apps overview
- 11:30OAuth 2.0 grant types
- 16:10Redirect URI vulnerabilities
- 22:17Redirect URI attacks
- 24:51PKCE for native apps
- 28:36Embedded browser risks
- 32:42Cross-application request forgery
- 37:08Mitigating CSRF attacks
- 40:07OAuth threat models
- 40:50Other OAuth considerations
- 45:34Summary and references
- 45:55Q&A session
