News for hackers. Stuff that matters.
Re:Dropbox Forums: New Sharing Model by Artifex on Thursday June 24, 2010 @05:07AM (#1457655)
Is this a security risk? Could someone, theoretically, enter in a random string of characters and land on your files?
Re:Dropbox Forums: New Sharing Model by gizmo on Thursday June 24, 2010 @05:15AM (#1457663)
I'd have to go with yes. Hate to be an entropy nazi, but here goes:

Hash is 6 characters long, characters are alphanumeric (a-zA-Z0-9). So that makes:

    (26 * 2 + 10) ** 6 => 5.6E10
That looks like a big number, but it isn't. Because at the scale of dropbox there will be 10 million links out there in no time. So then the math goes:

    ( (26 * 2 + 10) ** 6 ) / 10_000_000 => 5680
So you have to make only a few thousand guesses to get a random file from another user. I'd say that's not very secure.

Note that the links redirect to a page with a far longer (and presumably far more secure) hash code. Any time when you see short hash -> longer hash alarm bells should go off.

I'm assuming the share links last forever. If the share links would last only 24 hours then system looks pretty safe.

Anyway, this is only my first impression. I might very well be wrong. Either way I think it's pretty silly to give up so much entropy to get a prettier URL. Why not just use the complete 128bit hash?

Re:Dropbox Forums: New Sharing Model by brlewis on Thursday June 24, 2010 @09:23AM (#1457976)
I haven't used the feature yet, but from reading the forum thread it sounds like the 6 random characters are only created if someone chooses to shorten their link with db.tt (presumably Dropbox's shortener). By default, resources have 15 random characters. Since URL shortening is mostly for use with twitter, I think the number of non-public files/folders with a corresponding 6-random-character link will not approach 10MM any time soon.
Re:Dropbox Forums: New Sharing Model by blaix on Thursday June 24, 2010 @12:54PM (#1458465)
Actually, I got the impression that no public link was available at all unless you chose to create it.
Re:Dropbox Forums: New Sharing Model by stricken on Thursday June 24, 2010 @05:22AM (#1457671)
No, you still choose which files and folders to make linkable.

Anything you give a url to you should consider to be public anyway.

Re:Dropbox Forums: New Sharing Model by instcode on Thursday June 24, 2010 @11:16AM (#1458213)
My first thought is how to unshare a folder and thank God, it's already been there: https://www.dropbox.com/share#tab:linked-items

So, if you feel like "I wanna share this folder to the wild world, now!", just do it! You can change your mind at anytime later and the folder will be no longer accessible. Very intensive, careful design & implementation!

Re:Dropbox Forums: New Sharing Model by brlewis on Thursday June 24, 2010 @09:33AM (#1457993)
I think you're overstating the risks of random URLs. Unlisted cell phone numbers are not considered public even though you give them to all your friends and to every nearby cell tower. Credit cards are not considered public even though you might hand yours to a lot of strangers.
Re:Dropbox Forums: New Sharing Model by helium on Thursday June 24, 2010 @08:28AM (#1457876)
Still a good analysis of using the security by obscurity model for URL's
Re:Dropbox Forums: New Sharing Model by bdonlan on Thursday June 24, 2010 @11:42AM (#1458283)
What else would you suggest? This is equivalent to randomly generating a username and password.
Re:Dropbox Forums: New Sharing Model by herrherr on Thursday June 24, 2010 @09:55AM (#1458031)
By default all my folders are linkable.

Can you tell us how to change that?

Re:Dropbox Forums: New Sharing Model by stricken on Thursday June 24, 2010 @05:45PM (#1459234)
They're only linkable AFTER you choose to get the link for them.

Remove linked items here: https://www.dropbox.com/share#tab:linked-items