Deep Thoughts: Betting on Security
summary
A demo installs Postgres, creates seven roles and a few objects, and uses the crunchy_check_access extension to enumerate permissions — initial output shows 984 privilege paths, collapsed to 51 then to 8 meaningful rows after filtering. It reproduces CVE‑2018‑1058: an unprivileged function in the public schema can shadow catalog functions via search_path and implicit casts and escalate a read‑only role to superuser. Fixes: revoke create on schema public, revoke default EXECUTE/temporary grants, make superuser roles noinherit and prefer non‑login owners.
AI-written summary · about
chapters (12)
- 0:00Welcome and introduction
- 1:00Speaker background and security overview
- 3:07Defense in depth approach
- 4:31Betting on security implications
- 16:40Role attributes and membership
- 21:21Introducing Crunchy Check Access
- 27:43Analyzing role privileges
- 34:58Key security takeaways
- 43:02CVE 2018-1058 exploit explained
- 50:15Mitigating the public schema risk
- 55:13Recommended role structure
- 59:07Q&A session
