Filter embedded tweets query string parameters #26966
Labels
OS/Android
Fixes related to Android browser functionality
OS/Desktop
privacy/discussed
Discussed in privacy confab
privacy/query-filter
QA Pass - Android ARM
QA Pass-macOS
QA/Test-Plan-Specified
QA/Yes
release-notes/include
Milestone
@wknapik discovered on brave/adblock-lists#1023 that embedded tweets can contain two query string parameters:
ref_src
andref_url
.The text version of the embedded tweet on https://www.macrumors.com/2022/11/21/apple-device-analytics-identifying-user/ only contains
ref_src=twsrc%5Etfw
which is clearly not a unique identifier.But with "Allow embedded tweets" in
brave://settings/socialBlocking
, we see two things in the the "Read the full conversation on Twitter" link:ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1594515229915979776%7Ctwgr%5E6164c093a6caae7d729fcabb6de655cbc7f95a49%7Ctwcon%5Es1_
ref_url=https%3A%2F%2Fwww.macrumors.com%2F2022%2F11%2F21%2Fapple-device-analytics-identifying-user%2F
zThe
ref_src
parameter contains a lot more information than the textversion:
including an unidentified hex number: 6164c093a6caae7d729fcabb6de655cbc7f95a49
The other parameter leaks the embedding page URL, which is also present in the
Referer
header, howeverref_url
also includes the path which we never send as part of the referrer.Given the unidentified ID in the full version of
ref_src
and the fact thatref_url
essentially works-around our referrer trimming protections, we should block both.The text was updated successfully, but these errors were encountered: