~/talk

Dirty Stream Attack, Turning Android Share Targets Into Attack Vectors

Talkat Black Hat Asia 2023 · 2023-05-09..05-12· [security, android]
slides:none on file

Crafted a malicious ContentProvider that spoofs the display_name and returns a file descriptor stream so a share-target app caches or writes attacker-controlled files into its app home; tested 20 popular apps (>100M installs) and finds over half vulnerable, with 28 full code executions and 18 sensitive disclosures. Demonstration overwrites a Play Core plugin in a browser with ~500M installs, causing execution of a bundled native library. Mitigations: ignore or sanitize display_name, validate cache paths and avoid loading libs/Dex from app data or untrusted streams.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Briefing outline
  3. 2:30Android content providers
  4. 6:01File providers in sharing
  5. 9:15Permissions and access
  6. 11:42Share targets in Android
  7. 14:52Share target code patterns
  8. 15:56Dirty Stream attack model
  9. 17:20Rogue APK crafting
  10. 20:48Exploitation impact
  11. 22:55Reading sensitive files
  12. 25:00Vulnerable apps stats
  13. 25:43Live code demo
  14. 29:35Securing Android apps
  15. 31:22Key takeaways
~/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.