The Patching Friars' AlmanacA calendar of CVE saints

November 15

sqlolHoly card for sqlol, generated with AI (Claude, Anthropic) for the Lunario dei Frati Patchatori.CC BY-NC-SA 4.0 TCC sqlol LOG ERRANTIS
🤖 Image and text generated with AI

⬇ Download holy card: ·

Embed on your site

Saint sqlol, Who Hijacked SQLite's Log

Patron of macOS TCC protections, SQLite's debug feature, and privacy permissions quietly bypassed.

Life

Gergely Kalman described sqlol, a TCC privacy bypass on macOS: the SQLITE_SQLLOG_DIR environment variable enabled an SQLite debug feature that wrote database copies to a chosen folder, with predictable names and following symbolic links. Abusing an app with full disk access, one could overwrite the TCC database that holds the privacy permissions, gaining access to contacts, location, microphone and webcam. Apple removed the debug feature in macOS Ventura 13.4.

Prayer

O Saint sqlol, who redirects the logs where they should not land, let our apps not write by following others' links. Amen.

How to celebrate

Celebrated by updating to macOS Ventura 13.4 and remembering that even a debug feature can open a door.

Log everything, and you log where you must not.

Technical record

Disclosed on
November 15 2023
CVE
CVE-2023-32422
Product
Apple · macOS

This issue was addressed by adding additional SQLite logging restrictions. This issue is fixed in iOS 16.5 and iPadOS 16.5, tvOS 16.5, macOS Ventura 13.4. An app may be able to bypass Privacy preferences.

Sources: gergelykalman.com

Also remembered today

Shortcuts: ← → to move, D day, W week, M month, T today.

📅 Add to your calendar

SaintsGoogle CalendarApple, Outlook (.ics)

Observances (feasts, scourges and miracles)Google CalendarApple, Outlook (.ics)

In Google Calendar you can also paste the URL in Settings → Add calendar → From URL. The first sync can take a few hours.