~/talk

Overcoming Unsecurities in WebViews

Talkat Android Worldwide July 2024 · on Tuesday, 2024-07-30· [security, android]
slides:none on file

WebViews default to risky behavior on many Android versions: cookies are shared per process, file and content URI access is allowed by default (up through Android 11 behaviors), and remote debugging exposes a live DOM to attackers. Practical fixes include disable file access and block content-provider URIs, override shouldOverrideUrlLoading with an allowlist of pages, prefer evaluateJavascript and use loadDataWithBaseURL to preserve CORS, enable Safe Browsing metadata, and consider AndroidX.webkit multiprocess or the JavaScript Engine or custom tabs for strong isolation.

AI-written summary · about

  1. 0:00Overcoming WebView insecurities
  2. 5:19WebView classes and setup
  3. 9:29Breakout vulnerabilities
  4. 15:05Clear text traffic risks
  5. 19:47Opaque origin and cross-origin issues
  6. 23:20Safe browsing and file access
  7. 27:12Content provider and cookie security
  8. 30:21JavaScript execution risks
  9. 33:57Sandboxing with JS engine
  10. 34:17Custom tabs as secure alternative
  11. 36:40Secure WebView library
  12. 37:41Resources 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.