PostHog database_schema Server-Side Request Forgery Information Disclosure Vulnerability
The database_schema method in PostHog did not properly validate a URI before accessing resources, allowing an authenticated attacker to make the server request arbitrary internal or external resources. This could lead to disclosure of sensitive information in the context of the service account.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to disclose sensitive information on affected installations of PostHog. Authentication is required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the database_schema method accepts a user-supplied URI and performs a request to it without validating that the URI is safe or allowed.
Impact
An authenticated attacker could disclose sensitive information in the context of the service account.
What the attacker needed
Authentication required
The fix
The vendor issued an update to correct the vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a server-side request forgery (SSRF) bug. The application takes a web address (URI) from the user and fetches it without checking where it points. An attacker with a login can make the server visit internal systems or metadata services, potentially leaking secrets.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.