10 ms·
To download from Google Drive, you must enable third party cookies?
- GTP 4y agoAnd from their solution: "Type chrome://settings/cookies in the browser address bar" I love how they assume everybody uses Chrome.
- jefftk 4y agoIt's only broken on Chrome, though. In Safari it works fine without third party cookies.
- GTP 4y agoThis is interesting, are you sure your browser isn't making an exception for google drive?
- jefftk 4y agoYou can verify that it isn't by looking in developer tools, and you will see that no third-party cookies are sent
- NicuCalcea 4y agoIt's broken in Firefox for me.
- jefftk 4y agoStock Firefox?
- dvfjsdhgfv 4y agoSeems like in this particular case, notwithstanding Google's long history of abuse and opportunism, this one is a genuine case when you enable a cookie for technical and not (necessarily) user tracking reasons.
- thih9 4y agoIs it certain that Google will not use these (i.e. cookies enabled for technical reasons) also for tracking? Some companies are requesting permissions for more or less valid reasons and later using these permissions for their own goals as well.
- robertlagrant 4y agoThere's no need to use cookies for this when they control the backend. They know you're accessing a file because their server had to authenticate you.
- bogwog 4y agoWhat about sharing a link with an unauthenticated user? Last I checked, Drive lets you create a public download link for your files.
- robertlagrant 4y agoHmm, yes, that's true. I wonder if that works with cookies disabled.
- kevin_thibedeau 4y agoIt's just another dark pattern their middle management cooks up under the guise of legitimacy.
- dvfjsdhgfv 4y agoIn other cases - yes. In this one - not necessarily. The content itself is hosted on a different domain and for a good reason. Most importantly though, they don't need another cookie to track you: you are already there, they know who you are, they know you already requested a resource, and they can track you over all Google services and many others anyway. They don't need to use a dirty trick to send you an additional cookie although the very fact that we're having the discussion means Firefox made a good decision and hopefully people will notice this pattern more.
- rpadovani 4y agoI think it is because they use `googleusercontent.com` for content uploaded by users - that makes sense for security reasons, never ever let users upload content to your main domain.
- celdon25 4y agoCan you elaborate on this? What's special about the domain here for security?
- rpadovani 4y agoIt's a defense in depth mechanism: when you allow user-generated content uploaded on your main domain, somebody will find a way to break your security system and make that content executable on the user's browser. When doing so, an attacker can steal cookies, and/or invoke APIs for the user. Now, there are of course ways to avoid that, but in the end, if every other system fails, being on a domain without any API and without any sensitive content allows reducing the blast of the impact. Real-world example: https://gitlab.com/gitlab-org/gitlab/-/issues/200094 https://gitlab.com/gitlab-org/gitlab/-/issues/200094 GitLab has APIs under their main domain. Due to a misconfiguration, it was possible to render in the browser user-generated `.svg` files. Thus, a malicious crafted SVG file could bring to a XSS, and accessing a lot of personal user data on the main domain. There are technical reasons for the shared domain, but if that particular API call was on another domain, the impact of the vulnerability would have been way smaller.
- jakub_g 4y agoSimilarly, long time ago you could have a personal/project website on <username>.github.com. A few years ago they moved all personal/project websites to <username>.github.io instead.
- hannes0 4y agoHow does the configuration look like (very broadly)? Is already a domain redirect helpful here?
- est 4y agoMaybe we could categorize cookie's party by domain's whois record?
- rpadovani 4y agoUnfeasible. Whois data are heavily redacted, and not really checked upon, so you have two problems: * you have access only to redacted data; * and also if you had access to original data, they are basically free form text;
- jabiko 4y agoI'm wondering why the information necessary for downloading the file can't just be encoded as a URL parameter. When the user clicks a file download link it should be possible to generate a short lived token that authenticates the user against googleusercontent.com.
- ratww 4y agoThat's quite easy to do with Amazon S3. Maybe Google could just use AWS since implementing this feature seems to be a bit complex for them. /s
- newscracker 4y agoIf you’re anyway using Google Drive, you could use Firefox with the Google Container extension [1] to limit Google’s tracking activities across Google tabs to this container. Also install Cookie AutoDelete [2] and let the cookies, cache, local storage, etc., get cleared soon after you close the tabs. [1]: https://addons.mozilla.org/en-US/firefox/addon/google-container/ https://addons.mozilla.org/en-US/firefox/addon/google-contai... [2]: https://addons.mozilla.org/en-US/firefox/addon/cookie-autodelete/ https://addons.mozilla.org/en-US/firefox/addon/cookie-autode...
- giancarlostoro 4y agoHonestly anyone concerned about a Chrome / WebKit browser monopoly needs to use Firefox now if you already are not.
- sneak 4y agoI don't see any problems with a monoculture of rendering engine. Browser (and features, especially privacy ones), absolutely. Renderer, not so much.
- peanut_worm 4y agoI would prefer that an advertising company does not have majority control over the rendering engine
- gorgoiler 4y agoHave you ever used a service in life where there is no competition? Straight up lack of competition examples are the easiest: DMV, airport food court, buying beer at a sports stadium etc. If you work in tech then you’ve probably had to use software over whose purchase you had no control: Jira, PeopleHR, Taleo, Concur. There’s no competition there because you, the end user, don’t have the option to choose from a free market. For the vendor, the software doesn’t have to be any good as long as the sales pitch to you boss is amazing. Without competition, software rots and/or never gets better. What examples are there of monopolies in Free software that caused a product to languish? OpenSSL, Python’s logging module, systemd since it was locked in as the only properly supported Debian/Ubuntu init, pre-Chrome Firefox/Mozilla, post-GMail Thunderbird. What examples are there of corporate-sponsored software that languish without competition? Internet Explorer is the classic example but if you think Google are better than Microsoft, at heart, then how’s Android working out for us all in terms of excellence-in-the-void-of-competition?
- krono 4y agoAs far as I'm aware no browser offers granular third-party cookie permission controls - e.g. allow third-party cookies from `googleusercontent.com` but only on `drive.google.com`.
- throwaway294566 4y agoFirefox with uMatrix can do that.
- lapinot 4y agoOr ublock origin, in advanced mode. I took time to transition away from umatrix and i miss the interface but it's fine.
- deleted 4y ago[deleted]
- whywhywhywhy 4y agoWasted a lot of time trying to figure this one out a few months ago.
- wanderingmind 4y agoIf using linux or mac, just FUSE mount with rclone. If you need more privacy,load the mount with encryption so google has no idea about the files you are working with.
- wbecher 4y agoI was going to write just this! rclone is a lifesaver!
- ronjouch 4y agoThank you and thanks wanderingmind for sharing this! I knew rclone, but didn't know you you could pair it with a fuse mount! Looks like an awwwwwesome addition to the toolbelt :))))
- haunter 4y agoThat’s not limited to Linux or macOS at all, works perfectly under Windows too
- wanderingmind 4y agoThanks for that info. Haven't used windows in a long time, so did not want to post of something I'm not sure.
- jefftk 4y agoThis is wrong: try downloading something with Safari, which blocks third party cookies by default, and it works fine. Instead, the problem is that downloading from Google Drive is using User-Agent sniffing to determine whether third party cookies are expected to be enabled, and choosing between implementations. (Disclosure: I used to work at Google, but I don't know anything internal on this)
- deleted 4y ago[deleted]
- nottorp 4y agoOr Safari has an exception for google cookies.
- jefftk 4y agoIf you open developer tools you can see cookies aren't being sent.
- ruoranwang 4y agoGood to know, thanks!
- Nextgrid 4y agoOh wow - so while there was a non-malicious explanation in another comment (https://news.ycombinator.com/item?id=32149130 https://news.ycombinator.com/item?id=32149130), this clearly looks like malicious behavior. They're relying on the fact that most browsers lack per-domain cookie controls to force Google Drive users to allow third-party cookies knowing full well the majority won't remember (or bother) to disable them after.
- jefftk 4y agoThe explanation in the other comment is also correct. When you go from drive.google.com to googleusercontent.com to download a file, this historically worked by using third-party cookies to verify that you were authorized to download the file. When Safari dropped support for third-party cookies they added a new flow which uses link decoration instead, but only use this flow when they think the browser doesn't support third-party cookies. Their "does this browser do third-party cookies" logic isn't very good, and doesn't handle Chrome without third-party cookies. I'm not sure why they don't use the new flow for everyone. My guess is that it's less secure? Maybe that if the link they generate is shared it gives access beyond what the original owner chose to share?
- dethos 4y agoI've faced this problem in the past and it is really annoying. One of the many reasons why I dislike this service and try to avoid it as much as possible.
- nottorp 4y agoGoogle container for Firefox :) You're screwed on iOS though.
- btdmaster 4y agoyt-dlp works fine last I tried!
- deleted 4y ago[deleted]
- ninju 4y agoThe title is tad incomplete. You need to enable 3rd party cookies ONLY FOR the drive endpoint, *drive.google.com*. You can whitelist which endpoints are permitted. They way the title is written it gave me the impression that you needed to enable 3rd party cookies globally (which is incorrect)
- zagrebian 4y agoAre third-party cookies cross-origin or cross-site?
- FateOfNations 4y agoThey specifically need to set a cookie so that googleusercontent.com knows who you are when you click a link on drive.google.com to download a file.
- zagrebian 4y agoI’m asking generally.
- 0xbadcafebee 4y agoGoogle pre-emptively setting its services up to fail and be sunset. If they keep this up maybe they can sunset services before they even launch
- martini333 4y agoWhy not enable [*.]googleusercontent.com instead?
- iknownothow 4y agoPro tip: If you want to download an image or pdf, Drive will still let you print, so you can print it to file as a PDF.
- Animats 4y agoWhat happens with curl?
- password4321 4y agoThe workaround: Preview, ⋮ > Open in new window, Download
- deleted 4y ago[deleted]
- istillwritecode 4y agoYou need third party cookies even if is shared with anyone who has the link. This is not about authentication.