Better HN
topnewbestaskshowjobs
Log inSign up

trotsky

10,613 karma · joined Oct 31, 2010 (16y ago) · 2,117 submissions

Submissions

comment 15y ago · link · parent

EDIT: Original is up. Read it there, I didn't do a very good job with the formatting.

You may be able to see it in all of its html glory on http://dereknewton.com.nyud.net/2011/04/dropbox-authenticati... if you wait for a considerable amount of time for something to time out.

Dropbox authentication: insecure by design

For the past several days I have been focused on understanding the inner workings of several of the popular file synchronization tools with the purpose of finding useful forensics-related artifacts that may be left on a system as a result of using these tools. Given the prevalence of Dropbox, I decided that it would be one of the first synchronization tools that I would analyze, and while working to better understand it I came across some interesting security related findings. The basis for this finding has actually been briefly discussed in a number of forum posts in Dropbox’s official forum (here and here), but it doesn’t quite seem that people understand the significance of the way Dropbox is handling authentication. So, I’m taking a brief break in my forensics-artifacts research, to try to shed some light about what appears to be going on from an authentication standpoint and the significant security implications that the present implementation of Dropbox brings to the table.

To fully understand the security implications, you need to understand how Dropbox works (for those of you that aren’t familiar with what Dropbox is – a brief feature primer can be found on their official website). Dropbox’s primary feature is the ability to sync files across systems and devices that you own, automatically. In order to support this syncing process, a client (the Dropbox client) is installed on a system that you wish to participate in this synchronization. At the end of the installation process the user is prompted to enter their Dropbox credentials (or create a new account) and then the Dropbox folder on your local system syncs up with the Dropbox “cloud.” The client runs constantly looking for new changes locally in your designated Dropbox folder and/or in the cloud and syncs as required; there are versions that support a number of operating systems (Windows, Mac, and Linux) as well as a number of portable devices (iOS, Android, etc). However, given my research is focusing on the use of Dropbox on a Windows system, the information I’ll be providing is Windows specific (but should be applicable on any platform).

Under Windows, Dropbox stores configuration data, file/directory listings, hashes, etc in a number of SQLite database files located in %APPDATA%\Dropbox. We’re going to focus on the primary database relating to the client configuration: config.db. Opening config.db with your favorite SQLite DB tool will show you that there is only one table contained in the database (config) with a number of rows, which the Dropbox client references to get its settings. I’m going to focus on the following rows of interest:

email: this is the account holder’s email address. Surprisingly, this does not appear to be used as part of the authentication process and can be changed to any value (formatted like an email address) without any ill-effects. dropbox_path: defines where the root of Dropbox’s synchronized folder is on the system that the client is running on. host_id: assigned to the system after initial authentication is performed, post-install. Does not appear to change over time. After some testing (modification of data within the config table, etc) it became clear that the Dropbox client uses only the host_id to authenticate. Here’s the problem: the config.db file is completely portable and is not tied to the system in any way. This means that if you gain access to a person’s config.db file (or just the host_id), you gain complete access to the person’s Dropbox until such time that the person removes the host from the list of linked devices via the Dropbox web interface. Taking the config.db file, copying it onto another system (you may need to modify the dropbox_path, to a valid path), and then starting the Dropbox client immediately joins that system into the synchronization group without notifying the authorized user, prompting for credentials, or even getting added to the list of linked devices within your Dropbox account (even though the new system has a completely different name) – this appears to be by design. Additionally, the host_id is still valid even after the user changes their Dropbox password (thus a standard remediation step of changing credentials does not resolve this issue).

Of course, if an attacker has access to the config.db file (assuming that it wasn’t sent by the user as part of social engineering attack), the assumption is that the attacker most likely also has access to all of the files stored in your Dropbox, so what’s the big deal? Well, there are a few significant security implications that come to mind:

Relatively simple targeted malware could be designed with the specific purpose of exfiltrating the Dropbox config.db files to “interested” parties who then could use the host_id to retrieve files, infect files, etc. If the attacker/malware is detected in the system post-compromise, normal remediation steps (malware removal, system re-image, credential rotation, etc) will not prevent continued access to the user’s Dropbox. The user would have to remember to purposefully remove the system from the list of authorized devices on the Dropbox website. This means that access could be maintained without continued access/compromise of a system. Transmitting the host_id/config.db file is most likely much smaller than exfiltrating all data found within a Dropbox folder and thus most likely not set off any detective alarms. Review/theft/etc of the data contained within the Dropbox could be done at the attackers leisure from an external attacker-owned system. So, given that Dropbox appears to utilize only the host_id for authentication by design, what can you do to protect yourself and/or your organization?

Don’t use Dropbox and/or allow your users to use Dropbox. This is the obvious remediating step, but is not always practical – I do think that Dropbox can be useful, if you take steps to protect your data… Protect your data: use strong encryption to protect sensitive data stored in your Dropbox and protect your passphrase (do not store your passphrase in your Dropbox or on the same system/device). Be diligent about removing old systems from your list of authorized systems within Dropbox. Also, monitor the “Last Activity” time listed on the My Computers list within Dropbox. If you see a system checking in that shouldn’t be, unlink it immediately. Hopefully, Dropbox will recognize the need for additional security and add in protection mechanisms that will make it less trivial to gain long-term unauthorized access to a user’s Dropbox as well as provide better means to mitigate and detect an exposure. Until such time, I’m hoping that this writeup helps brings to light how the authentication method used my Dropbox may not be as secure as previously assumed and that, as always, it is important to take steps to protect your data from compromise.

comment 15y ago · link · parent

Are there any SEO or other indexing issues that crop up if you're only running TLS?

1323.

Dropbox authentication: insecure by design(dereknewton.com ↗)

162 points · by trotsky · 15y ago · 60 comments

comment 15y ago · link · parent

Isn't the planned google music (set to launch in 2011) service going to be more or less in direct competition with Amazon MP3 & Cloud player? I doubt they are protecting Amazon interests here.

1325.

Mobile Apps Invading Your Privacy: A Technical Analysis of Pandora(veracode.com ↗)

1 points · by trotsky · 15y ago · discuss

1326.

Pandora's mobile app transmits 'mass quantities' of user data(theregister.co.uk ↗)

2 points · by trotsky · 15y ago · discuss

comment 15y ago · link · parent

If I posted all the vague legal threats I've gotten over the Internet over the years I could come close to filling up the front page of HN. Only one ever came to any sort of legal action - a case was filed and then dropped a few months later without further comment.

The appropriate response when dealing with folks that both don't have a lawyer and don't seem to have a case is to tell them to serve you and forget about it. They'll be forced to seek counsel, who will most likely explain to them the error of their ways. It's the kind of thing that doesn't work well when coming from you, for obvious social reasons.

https://xkcd.com/386/

comment 15y ago · link · parent

Multiple sources close to Twitter have said that someone with access to Twitter’s most confidential information, such as who they are interviewing for key executive spots, may be leaking that information directly to Google. In this case, Google may have acted on that information too quickly. And people at Twitter, say these sources, are steaming mad.

I wonder what google services twitter hiring execs and others use. In the "privacy is dead" age you seem to be able to find out an awful lot about an awful lot if you're willing to go out and piece together public data.And in the realm of open source intelligence gathering, it's unlikely there is a bigger king than google.

I wonder if multiple people at twitter can be found googling the googlers in the days or hours before they meet for a hiring discussion. My money would be on yes, and that's only one of many possible sources.When I was on campus in Redmond a few years ago I was pretty impressed by how tailored the google search ads and even some SERPs in terms of trying to poach from MS.

1329.

Motorola Xoom has sold about 100k units so far, Deutsche Bank estimates(latimesblogs.latimes.com ↗)

2 points · by trotsky · 15y ago · discuss

1330.

The State Dep. has $30M to combat Internet censorship. Why isn't it spending it?(slate.com ↗)

1 points · by trotsky · 15y ago · discuss

comment 15y ago · link · parent

A bug here: http://img852.imageshack.us/i/hngeorgify.png/# (fixed image link)

The parent post is being shown as a reply to a peer and not the post it actually replied to. Seemed like normal threading until I noticed the reply was older than the grandparent.

comment 15y ago · link · parent

I've been a linux user since '94. What he sees as FUD, I just see as marketing. Do we expect competitors to not say bad and questionable things about their rivals? It seems to be a pretty common tactic across many industries.

Microsoft: Linux is slow, illegal, communist, unreliable.

Linux advocates: Microsoft is slow, horribly insecure, crashes all the time.

Apple: Windows is for stupid people who aren't like you, hard to use, insecure.

Most of them have varying amounts of real truth attached to them but generally overlook the big picture or just frame it in a way that makes them look best.

In addition, most of the talking points work off of the previous age, things that were much more true some considerable time ago.

1333.

Mobile-App Makers Face U.S. Privacy Investigation(online.wsj.com ↗)

1 points · by trotsky · 15y ago · discuss

1334.

WhisperYAFFS: Encryption comes to the YAFFS Filesystem (Android FDE)(github.com ↗)

1 points · by trotsky · 15y ago · discuss

1335.

AOL Fires Freelancers (but invites them to work for free)(businessinsider.com ↗)

3 points · by trotsky · 15y ago · discuss

1336.

Interesting Behaviors in x86 Instructions(d0cs4vage.blogspot.com ↗)

3 points · by trotsky · 15y ago · discuss

comment 15y ago · link · parent

Is this actually a significant problem anymore? No doubt front running was a pretty significant practice historically, but I haven't run into the practice in quite some time. At the peak of tasting practices more than 9 in 10 domains were given back during the cooling off period. That number has dropped dramatically since the rules were changed.

While I'm sure a bit of front running must still go on, it's hard for me to believe it happens to the average joe much if ever. In that light the rules that page lay out sound pretty over the top, and I'm generally a pretty paranoid person. I'd only worry about front running today if I was a known high value target, one who buys or holds a lot of domains. If that was me, I'd just take some mild precautions. Don't use my registrar to search for domains, clear tracking cookies before searching. The implications that you can't trust your ISP DNS system, search engines and certain whois services sounds like '06-'08 logic to me.

comment 15y ago · link · parent

I'd be careful of comment thresholds at least to some extent. It's pretty well known across many of these services that if you reply quickly to a new story you're much more likely to get upvotes. Similarly with replying to a top post. If they need to be written quickly they often aren't as high quality or carefully considered, or may even fall back on some of the easy bad posting styles you're trying to eliminate. If you take the existing karma whoring incentives to do this and add to it that you may never even get read if you don't get in early that might cause a lot more people to play that game. And cause a drop off in participation from people who might only be able to respond to a thread when it's hours old.

I think in general you already have most of a filter in that bad comments get pushed down and the lower sections of comments seem to be read much less often.

comment 15y ago · link · parent

I was thinking about this in the car and came up with the same thought, that it could just be a comment that no one but the OP (and mods, perhaps) saw. I am definitely guilty of posting some bad comments as far as the HN definition goes. I blame living on USENET in the late '80s and early '90s and the WELL, but the reason is immaterial. The problem is that many times I don't really see the comment as particularly bad, or I haven't thought about how someone else might interpret it, didn't realize how I was being dumb, or I simply forget the tone of the venue I'm in.

When someone points one of these issues out, I often feel bad about it. However, I usually don't edit my comment to remove or reword the offending portion because I think it's rude to the person replying and, oddly enough, those who later read it. Because they've made a good point, if I fix up my post it breaks continuity, possibly makes them sound like an idiot, and feels like I'm trying to cover up my lameness.

If I got a similar note that was private I'd feel free to make the changes without as many of those worries. Especially without concern for how they'd take it as presumably they're looking for me to shape up not score points on my misbehavior. I also think that some people that might say something are loathe to reply publicly in fear of just making it worse.

Of course it could seriously backfire if people used it just to be mean back without fear of the community observing. But it seems like it might be worthy of trying.

1340.

Markoff: The Asymmetrical Online War (Teens vs. Nation States)(bits.blogs.nytimes.com ↗)

2 points · by trotsky · 15y ago · discuss

comment 15y ago · link · parent

It seems to me that trust is a more subtle metric than on and off. If nothing else, if you're trying to keep a secret it behooves you to tell as few people as possible, even if you trust them all.

There are lots and lots of security team pgp keys out there. Clearly not every vendor has a secure process, but certainly the people who make up the volume of the reported incidents do. Vendors who do have them might be worse off if people started using this scheme.

cisco: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xA291...

google: https://services.google.com/corporate/publickey.txt

microsoft: http://www.microsoft.com/technet/security/bulletin/pgp.mspx

comment 15y ago · link · parent

Doesn't this mean that anyone who administers (or breaks in to) a webserver or ssl reverse proxy belonging to the vulnerable party would be able to decrypt the report+POC?

Isn't that a pretty serious issue given that such reports can be extremely sensitive and at least in most mid to large size vendors like cisco, microsoft, google etc. they would normally only be available to the security teams + the responsible engineering team? Certainly not to ops.

comment 15y ago · link · parent

Between Canonical shipping unity and Redhat shipping gnome shell with gnome 3, it's going to to be a turbulent spring on the linux desktop. The screams of protest about the gnome shell are already strong on the F15 alpha forums. I've used both and I'm not sure they're so bad, but everything takes some getting used to for people. Then again, I use KDE and am very happy, 4.6 runs and looks great though I do use a dock.

comment 15y ago · link · parent

Consumer grade security enhancements. ROM-able boot chain validation support. A fine grained version of Mandatory Integrity Control that supports individual profiles, ships with profiles for popular applications and allows ISV's to embed requested access in their signed installers. A home user focused Steady State type application that allows them to reload the core OS from a known good repository on demand without breaking most user mode applications. An extended validation type code signing policy for anything that isn't user mode.

Hey, a lot of them may not be realistic but I don't have to implement them.

comment 15y ago · link · parent

It's solicited. By McAfee customers. They're paying for various AV services and this is one of them. The site will only be blocked for McAfee customers that (I'm assuming) have this feature turned on. Clearly they couldn't run a site operator opt-in only list of malware hosting sites... right?

comment 15y ago · link · parent

Then one day it suddenly hit me.. You see the thing is McAfee siteadvisor.com also sells these hacker-safe certificates to websites for $360 / year. With that in picture, this whole fucking thing just makes sense. This is just a ploy to sell those certificates.

That is some serious ass jumping to conclusions. I feel for the guy, his situation sucks. BUT:

He just up and one day decided that they're doing it to sell him some snake oil.

  - Nobody from McAfee suggested he buy the snake oil.
  - Nobody else told him, "oh that is a scam to get you to buy snake oil".
  - He didn't ask around to see if it's happening to a lot of other people.
  - He didn't try to buy said snake oil to confirm it would make a difference
Clearly McAfee siteadvisor sounds broken/underfunded/lazy/all of the above. It sucks he can't get them to deal with it. But if it was some kind of cyber protection racket it'd be happening to a lot of people with similar results. And they'd have to give you some hints as to how to "get protected". I've hosted a number of websites with executables throughout the years including one that has a bunch and is active right now. I've never been on a McAfee blacklist. I've never even heard of anyone I know being on a McAfee blacklist. If it was some kind of protection racket wouldn't they just be mass flagging things?

Never attribute to malice that which is adequately explained by stupidity - Hanlon's razor

comment 15y ago · link · parent

No issue with counting iP*d's, that only makes sense. What I was trying to figure out was the big percentage of Android phones that [... or] don't run applications at all". Have a list of those?

comment 15y ago · link · parent

no issue with that part
1
444546
71