-
Notifications
You must be signed in to change notification settings - Fork 0
Validate analytics installation IDs before using them as PostHog identities #49
Copy link
Copy link
Open
Labels
P3Medium: normal functional defect or important work with a workaroundMedium: normal functional defect or important work with a workaroundarea:telemetryTelemetry, diagnostics, privacy, or error reportingTelemetry, diagnostics, privacy, or error reportingloader:commonShared Common implementation or assetsShared Common implementation or assetsstatus:backlogValid work that is not currently scheduledValid work that is not currently scheduledtype:securitySecurity or privacy-sensitive workSecurity or privacy-sensitive work
Description
Metadata
Metadata
Assignees
Labels
P3Medium: normal functional defect or important work with a workaroundMedium: normal functional defect or important work with a workaroundarea:telemetryTelemetry, diagnostics, privacy, or error reportingTelemetry, diagnostics, privacy, or error reportingloader:commonShared Common implementation or assetsShared Common implementation or assetsstatus:backlogValid work that is not currently scheduledValid work that is not currently scheduledtype:securitySecurity or privacy-sensitive workSecurity or privacy-sensitive work
Summary
LocalInstanceId accepts any nonblank existing file content and sends it as the persistent PostHog distinct_id without UUID-format or length validation.
Evidence
Impact
Accidental or user-supplied personal information can become a persistent analytics identity, weakening the documented pseudonymous-ID guarantee and potentially creating malformed telemetry.
Reproduction / verification
Proposed direction
Require a canonical bounded UUID (or explicitly documented identifier format), trim safely, regenerate invalid values atomically, and avoid logging the rejected raw value.
Acceptance criteria
Audit provenance
Candidate #26 from the read-only repository audit performed on 2026-07-20. This is separate from existing issues #3, #4, #25, and #27 unless explicitly linked later.