Title: TcfEuV2CoreSegment decoder incorrectly accepts corrupt PublisherRestrictions · Issue #67 · IABTechLab/iabgpp-java · GitHub
Open Graph Title: TcfEuV2CoreSegment decoder incorrectly accepts corrupt PublisherRestrictions · Issue #67 · IABTechLab/iabgpp-java
X Title: TcfEuV2CoreSegment decoder incorrectly accepts corrupt PublisherRestrictions · Issue #67 · IABTechLab/iabgpp-java
Description: Attached is a real-world example of a TCF string where the PublisherRestrictions field has been corrupted due to a bug in the CMP. The issue is the your reference decoder accepts this string. There is logic in the PublisherRestrictions d...
Open Graph Description: Attached is a real-world example of a TCF string where the PublisherRestrictions field has been corrupted due to a bug in the CMP. The issue is the your reference decoder accepts this string. There...
X Description: Attached is a real-world example of a TCF string where the PublisherRestrictions field has been corrupted due to a bug in the CMP. The issue is the your reference decoder accepts this string. There...
Opengraph URL: https://github.com/IABTechLab/iabgpp-java/issues/67
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TcfEuV2CoreSegment decoder incorrectly accepts corrupt PublisherRestrictions","articleBody":"Attached is a real-world example of a TCF string where the `PublisherRestrictions` field has been corrupted due to a bug in the CMP.\nThe issue is the your reference decoder accepts this string.\n\n- There is logic in the `PublisherRestrictions` decoder `AbstractEncodableBitStringDataType::getHardFailIfMissing()` that allows this field to be missing, however the field is not missing - it is corrupt.\n\n- This means that anyone who uses this decoder, or has their own direct port of it, may be unknowingly ignoring the `PublisherRestrictions` field.\n\n- Also, this logic only works because `PublisherRestrictions` is the last data field.\n\nOur custom decoder rejects this string and this has led to confusion as the string is accepted by the popular online test decoders (except for https://iabtcf.com/#/decode, which also rejects this string) .\n\nPossible Solution:\n- The decoder needs to distinguish between 'missing' and 'corrupt'.\n\n\nExample string:\n```\nCQLvHAAQLvHAAAKA4DENBaFsAP_gAEPgAAwIKxtX_G9_bXlr8X736ftkeY1f99h77sQxBhZBk-4FzLvW_JwX32E7NA36tqYKmRIAu3TBIQNlHJDURVCgaogVrTDMaEyUoTtKJ6BkiFMRY2dYCFxvm4tjeQCY5vr991d52R-tbdrs3dzyy4hnv3a9_-S1WJCdA5-tDfv9bROb89IO5_x8v4v4_N7pE2_eT1l_tWvp7D9-ctv_9XX99_fbff9Pn_-uB_-_X__f_H37grAAQYCABAEAQICAAAAAQAAEAAEABAAAAAAACgAABEEAAEDAAAQAIAQAAABAABAAAAIAAAAAgACAAAAAEAgAAAACgADAAAAAAAYAAAMAEgIAAAAAQACmABAIFAAEJAFAEACEAEEAIQAABAEACAEABRwBAACBAoAAAQAAEAAAFgIDgAQEpAgACIgEAAAIAEAggAAEQjYACCAASCqqBAiiCAQLBoQFPaQAkgBACDgmQAgABQAHAAsA\n```\n\nThe line of code in question is:\nhttps://github.com/IABTechLab/iabgpp-java/blob/d3d5017cd721e0a9d52ab7080d0f48e6be96db82/iabgpp-encoder/src/main/java/com/iab/gpp/encoder/segment/TcfEuV2CoreSegment.java#L70\n\nPassing `false` to the `EncodableArrayOfFixedIntegerRanges` constructor allows it to accept corrupt data.","author":{"url":"https://github.com/jamescooper-blis","@type":"Person","name":"jamescooper-blis"},"datePublished":"2025-03-07T19:22:46Z","url":"https://github.com/IABTechLab/iabgpp-java/issues/67"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b4d1877a-3137-d3ec-92e7-83129bb129e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D090:2D4426:1510EB:1CD8A8:6AF64DC5 |
| html-safe-nonce | 6732a378f401e64e5b59b1ca7cceffedaf2a992f557b514af65141d5e68f2a18 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDkwOjJENDQyNjoxNTEwRUI6MUNEOEE4OjZBRjY0REM1IiwidmlzaXRvcl9pZCI6IjkxNTUzOTA4MDIzNjY5NzU0MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b4e1d39b59766e94a28e7d96ed3f9869978e2b7fcd4342c5efbe3ebb2eae4088 |
| hovercard-subject-tag | issue:2903753702 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IABTechLab/iabgpp-java/67/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9678d7864f36a07d1361453cda4afd522a4ae724e53ae28a2fca6e41b123745e/IABTechLab/iabgpp-java/issues/67 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9678d7864f36a07d1361453cda4afd522a4ae724e53ae28a2fca6e41b123745e/IABTechLab/iabgpp-java/issues/67 |
| og:image:alt | Attached is a real-world example of a TCF string where the PublisherRestrictions field has been corrupted due to a bug in the CMP. The issue is the your reference decoder accepts this string. There... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jamescooper-blis |
| hostname | github.com |
| expected-hostname | github.com |
| None | f08f841c97bca81898b33b24705801fbf36c27aa3a76d422631761ce578f7b63 |
| turbo-cache-control | no-preview |
| go-import | github.com/IABTechLab/iabgpp-java git https://github.com/IABTechLab/iabgpp-java.git |
| octolytics-dimension-user_id | 82903538 |
| octolytics-dimension-user_login | IABTechLab |
| octolytics-dimension-repository_id | 538620496 |
| octolytics-dimension-repository_nwo | IABTechLab/iabgpp-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 538620496 |
| octolytics-dimension-repository_network_root_nwo | IABTechLab/iabgpp-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b946aa396e8129468b84468b6046f18d957f446c |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width