Skeletons in the App Sandbox: 5+ Ways to Escape
summary
LaunchServices logic bugs (CVE-2021-30677, CVE-2021-30783 and others) let a sandboxed app control environment variables and escape the macOS App Sandbox via five distinct exploits and three upstream patches. Proofs use a Hopper dyld-cache plugin, a custom XPC client and NSWorkspace open configuration to set dyld_insert_libraries (works on unsigned cocoapplet), overwrite preference-pane cache via CF_FIXED_USER_HOME to load bundles, drop a .profile to spawn Terminal, abuse PERL5DB for fileless code execution, and exploit Electron’s node options require; several patches land in Big Sur 11.5/11.6 but bypasses remain.
AI-written summary · about
chapters (15)
- 0:00Introduction to sandbox escapes
- 1:03App sandbox background
- 2:29Launch services capability
- 4:35Reversing dyld shared cache
- 5:15Root cause of the bug
- 7:24Exploiting environment control
- 8:07Dyld insert libraries bypass
- 9:54Bypassing system preferences patch
- 12:59Removing bundle requirement
- 13:40Terminal app exploit
- 15:23Fileless zero-interaction escape
- 18:13Electron process injection
- 20:19Macro sandbox escape
- 21:23Remaining attack surface
- 22:27Defending against escapes
