Analytics: setuid passes raw uid to analytics reporters with only the TCF check
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
🤖 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
- Ngôn ngữ chính
- Java
- Star
- 108
- Fork
- 258
- Merge trung bình
- 3 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của prebid/prebid-server-java
-
auto
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
prebid/prebid-server-java#4721 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Port PR from PBS-Go: Beachfront: Fix for Off-by-one comparison against lengthCó thể đã có người làm @osulzhenko đã nhận 2 ngày trước. Đang mởauto
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 53/100
prebid/prebid-server-java#4720 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
auto
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
prebid/prebid-server-java#4719 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Analytics: cookie_sync and setuid events ignore analytics.global.adapters and account enabled flagĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
prebid/prebid-server-java#4717 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 71/100
prebid/prebid-server-java#4716 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của prebid/prebid-server-java
Issue tương tự
-
good first issue java test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 2 ngày
-
InterfaceMemberImpliedModifier: records and annotation types nested in interfaces are not checkedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
checkstyle/checkstyle#23007 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/logging-log4j2#4519 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Vinyl Cache 9.1 is now LTSĐang mởbug
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 70/100
endoflife-date/endoflife.date#11679 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug finsim-cli low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày