Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2023-38571-a-macOS-TCC-bypass-in-Music-and-TV — macOS TCC bypass exploit leveraging insecure file rename in Music and TV apps to gain Full Disk Access by overwriting the TCC database via a symlink race condition. | Kitploit
Tools/GitHubGitHub/gergelykalman/cve-2023-38571-a-macos-tcc-bypass-in-music-and-tv
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingRed Teaming
GitHubgergelykalman/cve-2023-38571-a-macos-tcc-bypass-in-music-and-tv

CVE-2023-38571-a-macOS-TCC-bypass-in-Music-and-TV

macOS TCC bypass exploit leveraging insecure file rename in Music and TV apps to gain Full Disk Access by overwriting the TCC database via a symlink race condition.

Share
View Repository
131343 years agoNot yet reviewed

Executive summary

macOS Music and TV do an insecure rename resulting in FDA by gaining full control over the user's TCC.db

I reported this bug in separate tickets for each app, feel free to merge if applicable.

The underlying problem is that these apps have FDA but fail to sanitize their file operations.

Exploit description

Music and TV are almost the same in this regard, only the paths are different. I'm using Music as an example from here on out. For TV please check the exploit code it is very straightforward.

Music has functionality to copy files into the user's library using a special folder to which a user can "drop" files.

A user can simply create a file in ~/Music/Music/Media.localized/Automatically Add to Music.localized/

Music will take this file and do an insecure rename into "~/Music/Music/Media.localized/Automatically Add to Music.localized/Not Added.localized".

If we use a valid TCC.db (that the exploit generates) it will get copied into the "Not Added.localized" folder since it's not a media file. This is very helpful, since we can redirect this rename into the real location of TCC.db using a simple symlink race.

The exploit is technically a race condition, however it's so reliable that I did not even implement it to retry as it always succeeds on the first try.

Exploit details

Usage for music:

DEBUG=1 ./librarian.py 1

Usage for tv:

DEBUG=1 ./librarian.py 2

To reset tcc db between tests:

launchctl stop com.apple.tccd launchctl start com.apple.tccd sleep 1 tccutil reset All

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    951
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    683
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    427
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    392
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    344
  • 6

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    336

Explore all tools

Browse our collection of tools

View all tools →