ReviewOS

stacks/ts-analytics

No ingress firewall: open site auto-provisioning + domains never enforced

#170
Closed glennmichael123 opened this 9 days ago ·
9 days ago

ensureSiteExists auto-creates ANY site id on first event and the site's domains array is never checked at ingest — site ids are public in the tag, so anyone can poison a competitor's numbers or spray junk site ids as a write-cost attack. Fix: enforce hostname/Origin in site.domains (drop otherwise), gate auto-creation behind config (default off in production).

From the production-readiness audit (docs/research/production-readiness.md, eacf996). Verified with live probes where stated.

9 days ago

Fixed — domain firewall at ingest (silent 204 drop for foreign hosts) + production-gated auto-provisioning. Live-verified both directions.

Sign in to comment on this issue.