~/talk

A Deep Dive into A Vulnerability Apple Deems Unexploitable

Talkat Nullcon Berlin 2025 · 2025-09-04..09-05· [security]
github:jhftss
slides:none on file

Finds a narrow race condition in copy APIs in Apple's copyfile/fclone implementation and builds a reliable exploit that uses mounting the destination to force a clone failure, a tight rename-swap loop (renamex with RENAME_SWAP) to flip source between file and symlink, and repeated MD service RPCs to trigger a privileged copy and steal TCC-protected files. Success rate is about 25% originally, falls to ~12.5% after the first patch, and the exploit demonstrably works against the initial patch — this is disclosed as CVE-2024-54566 patched then bypassed and later fixed again; code and demo use an NSFileManager → copyfile fallback path.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:10Discovery of the vulnerability
  3. 7:33Why file copy operations matter
  4. 9:20Confirming the security risk
  5. 13:39Reproducing the issue in debugger
  6. 16:57Stable exploitation strategy
  7. 20:30Real-world exploitation scenarios
  8. 21:56Targeting the mdwrite service
  9. 24:05Crafting the exploit payload
  10. 26:57Demonstrating the exploit
  11. 27:41Apple's initial patch attempt
  12. 29:08Bypassing the first patch
  13. 30:34Apple's second patch
  14. 31:17Key takeaways for security
  15. 32:41Advice for red teams
  16. 33:02Conclusion 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.