Analytics: setuid passes raw uid to analytics reporters with only the TCF check
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with SetuidHandler.java to trace how the account's ActivityInfrastructure reaches SetuidEvent, then read AnalyticsReporterDelegator.java methods isAllowedAdapter and updateEvent. Check the existing analytics privacy tests for these paths. Done means reporter analytics permissions are enforced for setuid events and denied transmitUfpd or transmitEids removes the uid.
由索引模型根据 Issue 内容生成。
描述
🤖 This issue was written by an AI agent (Claude Code) on behalf of @patmmccann.
What happens
/setuid puts the raw uid on the SetuidEvent and sends it to the analytics reporters:
The only analytics privacy check it gets is the host-level TCF Purpose 7 enforcement in processEvent(event, tcfContext) (L107-L142). SetuidEvent has no account or ActivityInfrastructure (model), so isAllowedAdapter uses its default branch with a null infrastructure (L218-L224). That means reportAnalytics, transmitUfpd and transmitEids are never evaluated for this event.
The handler already builds the account's ActivityInfrastructure (L192-L199) and uses it for syncUser (L242-L249), but it doesn't pass it to analytics.
Why it matters
Privacy. The bidder UID is a persistent per-user identifier. Where TCF doesn't apply (e.g. US state privacy through GPP/activity controls), a publisher who has denied reportAnalytics, transmitUfpd or transmitEids to an analytics reporter could still have that reporter receive bidder UIDs from /setuid.
To reproduce
-
Enable a reporter (e.g.
logAnalyticsorpubstack). -
Account
acc1:{ "privacy": { "allowactivities": { "reportAnalytics": { "default": false } } } } -
GET /setuid?bidder=<any>&uid=abc123&account=acc1with no GDPR signal.
Expected: the reporter receives nothing, or at least no uid. Actual: it receives SetuidEvent{uid="abc123", ...}.
Expected behaviour
Before a reporter receives a setuid event, the account's reportAnalytics rule is checked for that reporter. When transmitUfpd or transmitEids is denied for it, uid is removed from the event.
Suggested fix
Add account/activityInfrastructure to SetuidEvent, handle it in isAllowedAdapter (REPORT_ANALYTICS with an analytics component payload), and in updateEvent null out uid for each reporter when TRANSMIT_UFPD or TRANSMIT_EIDS is denied. The same plumbing would also fix the missing enable checks in https://github.com/prebid/prebid-server-java/issues/4717.
References
- Found while documenting PBS analytics events: https://github.com/prebid/prebid.github.io/pull/6997
- Matching PBS-Go issue: https://github.com/prebid/prebid-server/issues/5109
- Related: https://github.com/prebid/prebid-server-java/issues/4717
🤖 Generated with Claude Code
- 主要语言
- Java
- 星标
- 108
- 派生
- 258
- 平均合并
- 3 天 20 小时
- 30 天内合并 PR
- 12
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
prebid/prebid-server-java 的其他 Issue
-
auto
难度 3/5 1-2 天 新手友好度 52/100
prebid/prebid-server-java#4721 ·
维护者通常 2 天内回复
-
Port PR from PBS-Go: Beachfront: Fix for Off-by-one comparison against length可能已有人在做 @osulzhenko 于 2 天前认领。 未关闭auto
难度 2/5 1-3 小时 新手友好度 53/100
prebid/prebid-server-java#4720 · 已指派 1 人 ·
维护者通常 2 天内回复
-
auto
难度 4/5 3-5 天 新手友好度 35/100
prebid/prebid-server-java#4719 ·
维护者通常 2 天内回复
-
Analytics: cookie_sync and setuid events ignore analytics.global.adapters and account enabled flag未关闭
难度 4/5 3-5 天 新手友好度 55/100
prebid/prebid-server-java#4717 ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 71/100
prebid/prebid-server-java#4716 ·
维护者通常 2 天内回复
查看 prebid/prebid-server-java 的全部 Issue
相似的 Issue
-
good first issue java test
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 2 天内回复
-
InterfaceMemberImpliedModifier: records and annotation types nested in interfaces are not checked未关闭
难度 2/5 1-3 小时 新手友好度 72/100
checkstyle/checkstyle#23007 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
apache/logging-log4j2#4519 ·
维护者通常 3 天内回复
-
bug
难度 1/5 1-3 小时 新手友好度 70/100
endoflife-date/endoflife.date#11679 · 1 条评论 ·
维护者通常 1 天内回复
-
bug finsim-cli low
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复