6 ms·
I disagree with you about #1. There is no reason that serving these images shouldn't go through the same authentication that accessing the document requires (n
by sounddust 18y ago
I disagree with you about #1. There is no reason that serving these images shouldn't go through the same authentication that accessing the document requires (not DRM'd PDFs, just checking the cookies of the request for that image to make sure the user is logged in and has access to the doc). Just because they're available through a non-guessable URL doesn't make them secure; there are dozens of ways that URL can leak without leaking the whole document.
Also the fact that the image is permanently retained after the document is deleted is completely unacceptable. It's obvious that they are trying to save money on bandwidth and CPU here, but it's not an acceptable place to cut corners.
As for #3, I think that it's pretty easy to guess what this vulnerability is. It's probably the following: When you get an invite to view a shared document, either
1) Accepting the invitation after the document has changed and permission redacted still gives you permission to see it
2) After your permission is revoked, you can use that URL to regain permission to the document.
- tptacek 18y agoRe #3: that does appear to be the case. Create a document, edit it, add a collaborator, verify they got the invite email (but don't sign in for it), remove all collaborators, edit, save, then follow the invite; you'll see the most recent copy of the document in the invite landing screen. I disagree with you on points #1 and #2. A lot of very important web apps are very insecure if crypto-strong nonce URLs aren't good enough. Clearly relying on URLs is suboptimal, but it's a long way down from "suboptimal" to "vulnerable".
- deleted 18y ago[deleted]
- sounddust 18y agoWell, in my view security is not a binary, nor is there a silver bullet which renders all software secure. Security is a strategy in which one implements as many known protections as reasonably possible in order to reduce vulnerability. In the Google Docs case, I think there is absolutely no good reason not to authenticate HTTP request for components of a document that also requires authentication. Sure, crypto-strong nonce URLs are better than unobfuscated URLs, but that's just one protection. For example, let's say that Google accidentally leaks a directory listing of all files on a particular google docs server (or let's say an access log, to be even more realistic). If Google had properly authenticated access to these images, then the leaked access log would be worthless and unexploitable. However, without authenticating these requests, Google has suddenly caused a mass security breach, as hundreds of people rush to wget all the URLs before the images are taken down. If Google is seriously expecting people to use their product as a replacement for a business intranet, then they need to take seriously all concerns.
- tptacek 18y agoYou say that as if to imply that documents managed by conventional office suites were in any way secure to begin with. You seem smart enough to realize that isn't the case.
- sounddust 18y agoIt's less about documents being managed by conventional office suites and more about sharing documents through Google Docs as opposed to a corporate intranet (and I've seen ones much better-managed and worse-managed than Google Apps). But the insecurity of desktop document suites doesn't give Google a free pass on having lax security standards. Of course, this is my evaluation. You and your organization are welcome to use Google Docs if you are comfortable with their security practices.
- jongraehl 18y agoNitpick: a nonce is supposed to be used only once (safe against replay). I think you both mean the URL is supposed to be secret. I agree that there are many ways (e.g. web proxies) for a URL to become not-secret.
- tptacek 18y agoI'm corrupting the term "nonce" regularly, but OK, I'll stick with "token". I think "URL" leaves the mistaken impression that there is some way to pull a Google doc out of thin air; something else has to have gone wrong for these problems to impact you.