ReviewOS

stacks/ts-analytics

Visitor-hash collapse when IP+UA are 'unknown'

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

Severity: High · Where: dynamodb.ts:287, collect.ts:118; fallbacks lambda-adapter.ts:204,211 When both IP and UA are 'unknown' (Lambda fallbacks), all such visitors hash identically. Impact: Unique-visitor inflation/deflation; an attacker can suppress visibility by omitting the User-Agent. Fix: Treat unknown IP/UA as non-identifying (skip or per-request salt) rather than a shared constant.

Sign in to comment on this issue.