~/talk

OAuth2/OIDC security weaknesses and pitfalls

Talkat NDC Security 2024 · 2024-01-09..01-10· [security]
links:none on file
links:none on file
slides:none on file

Shows live demos using Burp Suite, IdentityServer and Keycloak: a cross‑site scripting exploit loads attacker JavaScript that creates a silent renew iframe to steal an authorization code and exchange it for an access token, proving tokens in browser are unsafe; refactoring to a BFF with a confidential client and secure HTTP‑only cookie stops token theft but still permits session‑writing; a reverse-proxy catch-all lets a BFF forward requests to an internal /orders/all endpoint until a strict allowlist fixes routing; reports a Keycloak wildcard redirect URI bug (patched in 23.0.4).

AI-written summary · about

  1. 0:00OAuth2/OIDC security challenges
  2. 1:11Backend-for-frontend security
  3. 3:172019 OAuth2 risks
  4. 6:07XSS token theft demo
  5. 10:33Frontend token dangers
  6. 12:00Refactoring to secure BFF
  7. 14:07Secure BFF defense demo
  8. 17:43Routing misconfigurations
  9. 23:04Conditions for exploits
  10. 25:11OAuth2 security principles
  11. 25:53API routing fixes
  12. 27:20BFF scope challenges
  13. 27:42Modifiable auth requests
  14. 31:24Redirect URI flaws
  15. 35:17Keycloak redirect flaw demo
  16. 37:09Avoid wildcard OAuth2
  17. 38:32Scope-based attacks defense
  18. 39:37Global tokens risks
  19. 41:46Token exchange for least privilege
  20. 43:11Best practices summary
  21. 45:26Q&A mobile multi-tenant
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.