Live data from Hacker News

Host webpages on Google Drive

googledrive.com

1–10 of 69 posts

Re: Host webpages on Google Drive

#4
post #2

They serve user supplied JS from googledrive.com domain? Can it be done in a secure way?

Dropbox also does that. You can potentially host your website within your 'Public' Dropbox folder.

I'm sure Google is not using http://googledrive.com/ for anything that's user-identifiable.

The only harm that I think can happen with JS is you being able to access/set any cookies/storage that are set by another 'public' site hosted on Google Drive that you've accessed earlier.

Re: Host webpages on Google Drive

#8
post #4
post #2

They serve user supplied JS from googledrive.com domain? Can it be done in a secure way?

Dropbox also does that. You can potentially host your website within your 'Public' Dropbox folder. I'm sure Google is not using http://googledrive.com/ for anything that's user-identifiable. The only harm that I think can happen with JS is you being able to access/set any cookies/storage that are set by another 'public' site hosted on Google Drive that you've accessed earlier.

Dropbox shuts links down if you get any significant traffic.

Re: Host webpages on Google Drive

#9
post #2

They serve user supplied JS from googledrive.com domain? Can it be done in a secure way?

What security issue are you thinking of? JavaScript doesn't run anything server-side...

Being able to serve JavaScript from Google's own servers makes it easier to do a cross-site scripting attack against someone else's Google Drive site. Since the malicious JS would be from the same origin, it's no longer cross-site, and gets a free pass around some of the browser's anti-XSS features.

Re: Host webpages on Google Drive

#10
post #8
post #4

Earlier quoted context omitted.

Dropbox also does that. You can potentially host your website within your 'Public' Dropbox folder. I'm sure Google is not using http://googledrive.com/ for anything that's user-identifiable. The only harm that I think can happen with JS is you being able to access/set any cookies/storage that are set by another 'public' site hosted on Google Drive that you've accessed earlier.

Dropbox shuts links down if you get any significant traffic.

That doesn't sound very fun...
Post reply on HN