~/talk

Overcoming Insecurities in WebViews

Talkat droidcon London 2024 · 2024-10-31..11-01· [security]
slides:none on file

Walks through concrete WebView fixes and demos: demonstrates a breakout from an embedded map to Google Search, shows JavaScript running in‑process on pre‑Android 8 devices, and proves file access is allowed by default on older releases. Recommends specific APIs and settings: use loadDataWithBaseURL, prefer evaluateJavascript over loadUrl for JS, enable Safe Browsing via manifest metadata, disable file/content access unless needed, enforce an allowlist for navigations, consider Custom Tabs or Jetpack WebViewCompat and try SecureWebView (CC0) for sane defaults.

AI-written summary · about

  1. 0:00Web view insecurities intro
  2. 1:49Web view history and basics
  3. 3:41Web view versions and limits
  4. 5:04Web view security classes and config
  5. 7:10Disable web view metrics and debugging
  6. 8:32Breakout attacks in web views
  7. 10:45Secure URL loading to prevent breakout
  8. 12:53JavaScript execution risks in web views
  9. 13:34Clear text traffic and network config
  10. 14:38HTTP Strict Transport Security
  11. 16:24Local content loading with base URL
  12. 18:08Safe browsing and file permissions
  13. 19:53File access and content provider security
  14. 20:56Content provider risks in web views
  15. 22:09Disable file and content provider access
  16. 22:30Cookie jar and ever cookies risks
  17. 23:32Jetpack WebKit and multi-profile isolation
  18. 24:14JavaScript process isolation security
  19. 25:17Safe JavaScript with evaluateJavaScript
  20. 26:20Sanitize JavaScript input and code injection
  21. 26:42Restrict JavaScript bridge interactions
  22. 27:46Jetpack JavaScript engine limits
  23. 28:49Secure external navigation with custom tabs
  24. 30:14Social engineering risks in web views
  25. 30:37Secure web view key takeaways
  26. 32:02Introducing secure web view library
  27. 32:44Resources and Q&A
~/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.