News for hackers. Stuff that matters.
Re:Deviations from Chromium (features we disable or remove) by mminer237 on Tuesday September 06, 2022 @02:44PM (#32741359)
> Disable Scroll To Text Fragment

Why would Brave disable this? In my opinion, this is one of the most useful additions to browsers in recent memory, and it's quite annoying to click a link expecting to go a specific section and just be put at the top of the page. I noticed this was broken in Brave, but I never would have imagined they intentionally broke the feature.

Re:Deviations from Chromium (features we disable or remove) by dannyobrien on Tuesday September 06, 2022 @02:47PM (#32741421)
There were some privacy concerns, regarding leaking of user information: https://github.com/WICG/scroll-to-text-fragment/issues/76
Re:Deviations from Chromium (features we disable or remove) by illiac786 on Wednesday September 07, 2022 @10:48PM (#32760506)
I read this and I am surprised the link fragment is sent to the DNS server, that is not how I understood DNS worked.

Why isn't only the FQDN sent?

Re:Deviations from Chromium (features we disable or remove) by password4321 on Thursday September 08, 2022 @03:25PM (#32770740)
It's not the link fragment portion of the URL in the address bar that is sent to DNS, it is DNS requests from additional lazily-loaded content that is pulled up when the browser jumps down to it.

Someone else went into detail: https://news.ycombinator.com/item?id=32742504

Re:Deviations from Chromium (features we disable or remove) by illiac786 on Friday September 09, 2022 @01:42AM (#32775704)
This requires the attacker to have third party content on the page you are trying to get the user to scroll through, that is a huge assumption no?

The password web page example is here highly unlikely: if the attacker injected his external content on the password web page, he has already a very strong position - getting users to click on links is not a logical next step, the attacker has far better avenues I would assume.

At least that's my understanding.

Re:Deviations from Chromium (features we disable or remove) by bburky on Tuesday September 06, 2022 @04:10PM (#32742572)
https://xsleaks.dev/docs/attacks/experiments/scroll-to-text-... may be a better description about the security impact, and has more context about this and similar cross site leaks possible with browsers.
Re:Deviations from Chromium (features we disable or remove) by illiac786 on Wednesday September 07, 2022 @10:41PM (#32760456)
It says "This scenario is mitigated in the Chrome implementation"
Re:Deviations from Chromium (features we disable or remove) by googlryas on Tuesday September 06, 2022 @03:15PM (#32741871)
I don't really get it. It seems like one of those theoretical potential privacy violations, but seems more like an academic exercise than anything exploitable.

I guess the idea is, someone can derive data about what you clicked based on some side channel (DNS queries? wifi activity? power draw?).

Re:Deviations from Chromium (features we disable or remove) by TechBro8615 on Tuesday September 06, 2022 @03:54PM (#32742386)
It does seem mostly theoretical, but it also seems like a natural feature for a privacy-focused browser to exclude. Web browsers have a long history of “mostly theoretical” becoming “effectively practical,” like when some new unrelated change invalidates an assumption underpinning the privacy guarantees of the original feature.

In terms of this vector, I could imagine it leading to history enumeration when combined with CSS, similar to the classic “check the color of the link.” Or maybe some fingerprinting scripts could send signals to server-side traffic analysis heuristics by preloading a specific script based on which region of the screen is visible within the first second of loading the page.

That’s all speculation of course, but clearly the feature increases privacy attack surface, by giving an external observer more paths for potentially reducing your possible anonymity sets.

Re:Deviations from Chromium (features we disable or remove) by darepublic on Tuesday September 06, 2022 @06:53PM (#32744227)
I am guessing a timing attack
Re:Deviations from Chromium (features we disable or remove) by NikolaNovak on Tuesday September 06, 2022 @04:26PM (#32742745)
I'm extremely ignorant in ways of Web and HTML. But this sounds like the Anchor functionality of 25 years ago?

Edit: this thing

https://www.w3docs.com/snippets/html/how-to-create-an-anchor...

Re:Deviations from Chromium (features we disable or remove) by autoexec on Tuesday September 06, 2022 @05:28PM (#32743430)
You're right, it does much the same thing, but this works on external sites so a webmaster doesn't need to create a bunch of anchors to specific information on a page. Instead you can link to any site and force the browser to highlight/jump to an arbitrary location on that external site.

It's the kind of thing I'd disable because of the privacy leaks it makes possible (Ctrl-F on the new page works just as well and keeps the user in control), but I can see how some people might like the extra convenience (when it's not being used maliciously to collect sensitive information from otherwise secure websites).

Re:Deviations from Chromium (features we disable or remove) by code_duck on Tuesday September 06, 2022 @05:14PM (#32743280)
It is similar, except it doesn’t require anything special in the HTML. It scrolls to an occurrence of the specified sequence of text.
Re:Deviations from Chromium (features we disable or remove) by Waterluvian on Tuesday September 06, 2022 @02:46PM (#32741404)
This is probably the #1 feature that gives me the most personal conflict.

I remember seeing it for the first time and thinking, “oh here we go. Google needed browsers to have a feature to make its search engine UX better…” But I also cannot deny just how useful it is.

Re:Deviations from Chromium (features we disable or remove) by maven29 on Tuesday September 06, 2022 @03:36PM (#32742151)
Does the internet have any discovery mechanisms except social media curation and search engines?

If videos can be timestamped for links, why not webpages? Linking to automatic content-indexed excerpts shows respect for the time spent by recipient and saves markup effort for the author.

Re:Deviations from Chromium (features we disable or remove) by Frost1x on Tuesday September 06, 2022 @04:02PM (#32742497)
I mean you can arbitrarily type domain names with common TLDs in and see what happens. I hear the white house may not be a good start to roll the dice on. Yahoo, Altavista, and others used to have a curated index of quality websites. Links are inherently a discovery feature. Services like StumbleUpon used to exist but could arguably be seen as "social."

The problem with "social media curation" as a qualifier could be interpreted as "a human is involved." Pretty much all forms of discovery, internet or not, requires either search or a human involved. Some services of course have broadcast mechanisms for curating an index but that's about the only exception I can think of for discovery that breaks away from these two qualifiers. To some degree, DNS is a broadcast system for discovery.

Re:Deviations from Chromium (features we disable or remove) by maven29 on Tuesday September 06, 2022 @05:17PM (#32743317)
In the absence of a universal recommender system that acts on clustering effects, social networks and link aggregators like HN can really be the next best thing.

It looks like at one point, mozilla attempted to solve this with their context graph project as well as their acquisition of pocket. However, it does look like it has all the hallmarks of a technological solution to a societal problem. Solving the adverserial aspects as well as ethical concerns would require nothing short of a rethinking of how we use the web.

https://medium.com/firefox-context-graph/context-graph-its-t...

https://wiki.mozilla.org/Context_Graph

Re:Deviations from Chromium (features we disable or remove) by derefr on Tuesday September 06, 2022 @04:19PM (#32742675)
> I mean you can arbitrarily type domain names with common TLDs in and see what happens.

I've always been curious whether any search engine tries to index the "disconnected web" by just war-dialing domains/IPs like this.

> To some degree, DNS is a broadcast system for discovery.

Sadly, there's no real way to build a "DNS spider." You could if you could send DNS AXFR queries for arbitrary zones; but DNS servers mostly don't respond to these without authentication.

Re:Deviations from Chromium (features we disable or remove) by teej on Tuesday September 06, 2022 @04:29PM (#32742788)
Is it time to bring back web rings?
Re:Deviations from Chromium (features we disable or remove) by Waterluvian on Tuesday September 06, 2022 @06:15PM (#32743936)
God I wish. I’m not sure they’re actually a good idea or not but I miss classic web.
Re:Deviations from Chromium (features we disable or remove) by darepublic on Tuesday September 06, 2022 @06:54PM (#32744233)
Scroll to text? How about in page anchors.
Re:Deviations from Chromium (features we disable or remove) by illiac786 on Wednesday September 07, 2022 @10:52PM (#32760541)
Lots of effort. Less granular. And what about external resources?
Re:Deviations from Chromium (features we disable or remove) by spicybright on Tuesday September 06, 2022 @02:49PM (#32741449)
Maybe because you can put identifying data in the URL, I guess?

Not that you can't do that with a anchor, param, or an endpoint that can take arbitrary numbers/strings.

I'd love to know the explanation too.

Re:Deviations from Chromium (features we disable or remove) by kevincox on Tuesday September 06, 2022 @04:03PM (#32742504)
IIUC the main risk is that they can check if text appears on a page based on it.

In an extreme case imagine that someone sends you a password in a messaging app which is available via the web. If an attacker can trick you to open webpages (maybe they intercept a HTTP site and open a few tabs) they can detect if the page scrolled based on side channels (data transfer) or direct information (did you load a lazy-loaded image from their server?). You can use this to learn page content. This is vaguely similar to https://en.wikipedia.org/wiki/CRIME.

As a concrete example imagine that a webpage has something like this past the first page.

  <p>Your password is 56acc1bc03298ec0</p>
  <img loading=lazy src=https://cdn.example/secure.png>
If I can trick you to load #:~:text=Your password is 5 and observe that you looked up the DNS for cdn.example and loaded secure.png (especially if that resource isn't cachable) I have learned the first character of the password.

If I do this 64 times (on average) I have learned the whole password.

This is a little hard to do, especially with pop-up blockers being built into most browsers so it is hard for a site to open many top-level windows (origin isolation of modern browsers will likely block this in iframes) it is not too extreme of a case.

Of course there are simpler attacks. Maybe someone can link to https://www.youtube.com/feed/history#:~:text=Voice+Feminizat... and they can tell if you have watched this video based on how many thumbnails have loaded. You load too many thumbnails and you get thrown in jail for being trans.

Re:Deviations from Chromium (features we disable or remove) by chrismarlow9 on Tuesday September 06, 2022 @04:12PM (#32742609)
Fair warning that I have not actually attempted these things, but:

1. I think you could potentially embed an iframe on a page and use the scroll positions combined with this feature to read information on a page. Start with "a", check scroll position, then "ab", then "abc". Similar to a blind sql attack where you gather data/hashes by continuously adding to the SELECT query using a substring function and a sleep (to detect if the substring was found). You brute force character by character. I believe this is commonly called an "Oracle attack"

2. XSS/Phishing/Spam. You add a png with a "Your account has been compromised" or a "fake form" (think Google docs) or whatever your spam message is to a part of a page. You send an email with this special url that will cause it to jump directly to that location on load.

Just some theories. I'm pretty sure the first one would qualify for some sort of bounty, but my experience is most bug bounty programs wouldn't count the second one as valid (requires user interaction).

Re:Deviations from Chromium (features we disable or remove) by Zamicol on Tuesday September 06, 2022 @04:05PM (#32742530)
As it stands today, the spec has issues when considering other pre-existing options and future compatibility. For example, there is no way to get the URL if the protocol is `file://`.

For a real world example: https://github.com/mozilla/standards-positions/issues/194#is...

See the stack overflow issue: https://stackoverflow.com/questions/67039633/get-the-text-fr...

(See also the currently "conflicting" library for URL fragment queries: https://github.com/Cyphrme/URLFormJS)

I think it can be easily fixed, using solutions like a delimiter, but that discussion probably needs to be apart of a wider discussion concerning URL extensibility.

Re:Deviations from Chromium (features we disable or remove) by psygn89 on Tuesday September 06, 2022 @03:17PM (#32741891)
They should just make it an option to opt into.
Re:Deviations from Chromium (features we disable or remove) by madamelic on Tuesday September 06, 2022 @03:41PM (#32742216)
Same with letting you disable their built-in extensions.

Seems pretty wild to me that a privacy browser is alright with having their own extensions run in browser without any way to disable them or even know they exist.

"But the extensions are open-source so that means you can audit them!"

Uh yeah... but maybe I just don't want them to run and put "Tip" links on everything. It doesn't matter whether they are secure or not, the user should get to choose what they run in their browser.

Brave is great (in my opinion), but the more you look the more you realize how strongly opinionated it is about how people should use the web which is pretty antithetical to what Brave says they are trying to do.

Re:Deviations from Chromium (features we disable or remove) by radicaldreamer on Tuesday September 06, 2022 @03:51PM (#32742347)
You can disable them, but the options are hidden all over the place in Settings, some seemingly buried intentionally to make them hard to find -- using UI dark patterns.
Re:Deviations from Chromium (features we disable or remove) by autoexec on Tuesday September 06, 2022 @05:32PM (#32743477)
Can you actually disable them, or just disable what they do by finding and toggling some obscure option in the settings? There's a difference between changing how an extension running in the browser works and removing it so that it isn't running at all.
Re:Deviations from Chromium (features we disable or remove) by radicaldreamer on Wednesday September 07, 2022 @12:16PM (#32752587)
Not clear whether it's disabled or the UI is simply hidden...
Re:Deviations from Chromium (features we disable or remove) by karaterobot on Tuesday September 06, 2022 @03:58PM (#32742436)
They're kinda damned if they do, damned if they don't. If they left it in, (some) people would condemn them for not taking privacy seriously. Since they took it out, (some) people condemn them for taking this theoretical privacy risk too seriously.
Re:Deviations from Chromium (features we disable or remove) by TheLoafOfBread on Tuesday September 06, 2022 @04:23PM (#32742721)
That was reason why I switched to Brave. I hated that feature with passion on Chrome.
Re:Deviations from Chromium (features we disable or remove) by Aachen on Tuesday September 06, 2022 @04:24PM (#32742726)
But why did you want it removed / dislike it
Re:Deviations from Chromium (features we disable or remove) by TheLoafOfBread on Tuesday September 06, 2022 @04:28PM (#32742771)
Because I don't want to suddenly move on some place on a page. I want to start on top of the page regardless what Google believes is best for me. And what pissed me off was that Google decided that this feature is mandatory and I can't disable it.
Re:Deviations from Chromium (features we disable or remove) by yunohn on Tuesday September 06, 2022 @05:06PM (#32743211)
You seem to have misunderstood the feature. Google doesn’t decide anything - the person sharing the text with you, or the search result referencing that text, is what uses the feature to guide you to the right location.

Sometimes I wonder if people enjoy being blindly knee jerk reactionary.

Re:Deviations from Chromium (features we disable or remove) by TheLoafOfBread on Tuesday September 06, 2022 @05:10PM (#32743247)
No I did not misunderstand the feature, it was Google who pushed it on me. In Google, in its search engine. And I was not able to disable it. Sorry that I don't like to be told what I want to see.
Re:Deviations from Chromium (features we disable or remove) by shepherdjerred on Tuesday September 06, 2022 @05:33PM (#32743498)
This is absurd. Do you also wish to disable anchor tag navigation?
Re:Deviations from Chromium (features we disable or remove) by TheLoafOfBread on Tuesday September 06, 2022 @05:46PM (#32743632)
What about just keeping existing flags in Chrome [0] which used to be there? Is it too much to ask? I don't want to use Google search + Chrome so I can get scrolled into middle of a page without any context with random highlighted text, because Google search believes this is what I want to see.

Thankfully switching to Brave solved my issue and this stupid feature is disabled.

[0] https://perishablepress.com/disable-chrome-scrolltotextfragm...

Re:Deviations from Chromium (features we disable or remove) by shepherdjerred on Wednesday September 07, 2022 @02:23AM (#32747087)
Oh, okay I see your problem now. I forgot that Google Search will take advantage of the browser feature to scroll-to-text.

I think most in the comment chain were thinking of the case of sending a link to a friend where you want them to be scrolled to some specific text. I often want to create these links for others when linking to long pages, or technical documentation.

I haven’t tried Brave (the crypto stuff puts me off), but if you’re interested in a good alternative to Google Search (that doesn’t link text fragments) you should check out Kagi. It’s paid, but it’s worth funding a Google competitor on principle IMO.

Re:Deviations from Chromium (features we disable or remove) by yunohn on Tuesday September 06, 2022 @05:37PM (#32743530)
Why do you even use a search engine? Might as well just type random domains into your address bar and hope you chance upon what you were looking for.
Re:Deviations from Chromium (features we disable or remove) by TheLoafOfBread on Tuesday September 06, 2022 @05:48PM (#32743655)
Bing does not force me to scroll on text. DuckDuckGo does not force me to scroll on text. Yandex does not force me to scroll on text....

Only Google Search does that. What a knee jerk response...

Re:Deviations from Chromium (features we disable or remove) by EnderShadow8 on Tuesday September 06, 2022 @09:49PM (#32745474)
It makes it more cumbersome to copy the URL
Re:Deviations from Chromium (features we disable or remove) by Phelinofist on Tuesday September 06, 2022 @02:45PM (#32741371)
Came to ask the same question
Re:Deviations from Chromium (features we disable or remove) by FatalLogic on Tuesday September 06, 2022 @03:00PM (#32741628)
>Came to ask the same question

It IS an interesting question. But you should simply upvote it, if you have nothing at all to add.