Inside PostHog: How SSRF, a ClickHouse SQL Escaping 0day, and Default PostgreSQL Credentials Formed an RCE Chain
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
A chained SSRF-plus-SQL-escape exploit reached remote code execution inside PostHog's stack, and the specific ClickHouse escaping bug is now patched, teams self-hosting either product should update.
A security researcher found a way to break into PostHog, a company that sells analytics software for websites. He chained three weaknesses together: a weak URL check let his server trick PostHog's own server into making requests (called server-side request forgery), that request carried a malicious database query into ClickHouse, and the query then forced PostgreSQL, where the default passwords were left unchanged, to run a shell command that phoned the attacker's machine. All the holes were reported and fixed, so only people running old, unpatched versions remain exposed.
A researcher demonstrated a full remote-code-execution chain against PostHog by chaining three flaws, all now fixed: weak webhook URL validation enabling server-side request forgery, a since-patched escaping bug in ClickHouse's PostgreSQL() function, and unchanged default 'posthog' PostgreSQL credentials. The final step used PostgreSQL's COPY ... FROM PROGRAM to open a reverse shell. Self-hosters who don't apply the ClickHouse patch or change default database passwords remain exposed.
Mehmet Ince's chain: webhook URL validation insufficiently strict → SSRF to ClickHouse on port 8123; a ClickHouse escaping 0day in the postgresql() table function (fixed in PR 74144) let injected SQL pass through to the backing PostgreSQL server; default 'posthog' credentials permitted COPY cmd_exec FROM PROGRAM to spawn a reverse bash shell to the attacker on port 4444 (ZDI-25-099/-097/-096). All issues reported and fixed.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Samsung is testing a feature that changes the angle of photos you’ve already taken
Samsung’s new Recompose lets users change photo angles after shooting, potentially reducing the need for multiple shots and improving post-capture editing workflows for photographers and casual users alike.
Taking Trainium3 to the Track: Generating Videos with LTX-2.5
Video generation on AWS Trainium3 can now rival Lightricks' paid API in speed, giving teams a non-CUDA inference option, though only after heavy custom patching.
The Download: Better bionic hands and AI’s natural-gas boom
This newsletter roundup mostly relays other outlets' reporting; its two own stories flag sensory-linked prosthetics reaching home use and AI data centers locking the US grid into natural gas.
sqlite3_rsync: Database Remote-Copy Tool For SQLite
sqlite3_rsync lets developers snapshot or sync a live SQLite database to a remote machine over SSH without needing free disk space for a full local copy.
System-wide ad-blocking that catches trackers browser extensions can't
Desktop apps and OS components can now be ad-blocked system-wide, not just browser traffic, closing a privacy gap browser extensions cannot reach.