News for hackers. Stuff that matters.
Re:Android account passwords are stored on disk in plain text by mrb on Friday July 22, 2011 @07:37PM (#2795589)
Cleartext passwords are perfectly fine in this case. I speak as a software engineer specialized in security.

This bug report was filed by someone who doesn't understand that obfuscating a password is different from encrypting it. No matter how you store it, the application must be able to extract a cleartext password from whatever storage options are available on the Android device.

For a longer explanation: http://developer.pidgin.im/wiki/PlainTextPasswords

That said, one defense-in-depth mechanism that I would like to see on portable devices like phones would be to have an encrypted storage area that is only accessible after typing a passphrase at boot time (the key derived from this passphrase should be stored in volatile memory only). That way if the device is shut down, this secure area would not be decryptable.

Edit: I am defending the mail application because from its viewpoint it is fine to use cleartext passwords. On the other hand the OS should provide a secure storage area as described in my previous paragraph.

Re:Android account passwords are stored on disk in plain text by daeken on Friday July 22, 2011 @07:51PM (#2795633)
Actually, they are not perfectly fine in this case. They should take the Apple approach and use PBKDF2 to derive a key from the PIN/passphrase, if one is set, then use that to encrypt the database. Anything less is simply not OK.

Edit: You should also use some sort of hardware ID in addition to the PIN/passphrase, otherwise it's trivial to distribute a database of, say, all the <=7-digit PINs.

Re:Android account passwords are stored on disk in plain text by mrb on Friday July 22, 2011 @08:37PM (#2795730)
I guess we agree (see my edit).

By "hardware ID", you mean a unique salt.

Unfortunately even with a unique salt, 7-digit PINs are not strong enough if, from a theoretical viewpoint, we assume they can be bruteforced at a few thousand per second.

Does Apple IOS really use PBKDF2? The Fraunhofer paper does not mention it. http://sit.sit.fraunhofer.de/studies/en/sc-iphone-passwords....

Re:Android account passwords are stored on disk in plain text by walexander on Friday July 22, 2011 @08:44PM (#2795748)
If you use a TPM to store your device encryption key, a PIN combination should be fine. Of course, by definition that requires hardware support.

I work in Android security in particular for a manufacturer. We came across the unencrypted email pass ourselves, but decided it was fine for two reasons:

1) If you don't get rooted, there should be no way to pull from /data/data/* in the first place.

2) With filesystem encryption turned on, you essentially get the benefit of encrypting that pass along with everything else.

Re:Android account passwords are stored on disk in plain text by daeken on Friday July 22, 2011 @09:09PM (#2795795)
A TPM is obviously the best solution here, on all counts, but it's not possible to put one into every phone that's already been sold, so clearly we need a software mechanism that at least helps.

As it stands, if an attacker gains root on your device (which could be locally, via a malicious app running a local root, or via a malicious page exploiting a browser bug and then escalating with a local root), they have the keys to the castle. This is true whether you have filesystem encryption on or not.

Leaving these in plaintext is equivalent to storing plaintext passwords in /etc/shadow; yes, only root can access it, but getting root is by no means impossible. If an attacker does get access to it, it shouldn't be an immediate game-over for your passwords.

Re:Android account passwords are stored on disk in plain text by wheels on Friday July 22, 2011 @11:14PM (#2796018)
To amplify that a bit, in terms of accessing the file system, it's a pretty common security assumption that physical access and root access are equivalent. Since my phone is the system where I trust physical access the least, by extension it's the one where I'd most want a security model that doesn't assume that one can't read the file system the most.

For my purposes, the chances of an attacker having physical access to my systems in a rack in a major data center approaches 0%, whereas the chances of an an unauthorized party at some point having access to my phone approaches 100%.

Re:Android account passwords are stored on disk in plain text by mentat on Saturday July 23, 2011 @11:58AM (#2797106)
There is certainly some benefit to encrypting removable flash. However, for non-removable flash, the speed at which normal attackers could pull items off of internal flash without the device running should be relatively long. I'm not totally sure what the limitations are with adb but if it's using Honeycomb style encryption, if you have permission to read the file it's going to be automatically decrypted.
Re:Android account passwords are stored on disk in plain text by mentat on Saturday July 23, 2011 @11:54AM (#2797100)
If you have root you have access to the plaintext of the password in memory. It doesn't matter how it may or may not be obfuscated on disk.
Re:Android account passwords are stored on disk in plain text by mentat on Saturday July 23, 2011 @11:59AM (#2797109)
Well, a TPM would be fine assuming a hard limit on rate of attempts or total attempts. Apple, as far as I understand it, uses a TPM but had an interface that didn't properly limit attempts, hence the elcom brute force attack.
Re:Android account passwords are stored on disk in plain text by daeken on Friday July 22, 2011 @08:44PM (#2795750)
http://www.infoworld.com/%5Bprimary-term-alias-prefix%5D/%5B... According to this (mind you, this is my sole source), iOS 3+ use PBKDF2, with iOS 4 using 10k rounds.
Re:Android account passwords are stored on disk in plain text by wheels on Friday July 22, 2011 @08:46PM (#2795758)
Android supports text passwords as well. Also, in a sane security model, it'd be possible to separate having a long password for elevated privileges (i.e. things that could further open the door to compromises like booting and installing apps) from the one simply to unlock the screen.

Your average consumer probably wouldn't avail themselves to such measures, but it'd let the paranoid and companies with security policies at least have semi-reasonable security as an option.

Re:Android account passwords are stored on disk in plain text by lotu on Saturday July 23, 2011 @12:09AM (#2796122)
If you are paranoid you don't store the password in the first place.
Re:Android account passwords are stored on disk in plain text by barista on Saturday July 23, 2011 @03:14AM (#2796424)
Or use android for that matter
Re:Android account passwords are stored on disk in plain text by Geee on Saturday July 23, 2011 @11:51AM (#2797092)
Do you guys know that there's a mechanism in SIM cards that blocks the access if you enter the SIM PIN wrong three times in a row? Carriers store unique long PUK code for each SIM card, which is used to unblock the SIM. So the SIM card and it's contents can't be brute-forced. Wouldn't it be appropriate protection to store the unique salt or key on the SIM card?
Re:Android account passwords are stored on disk in plain text by Tichy on Saturday July 23, 2011 @04:59AM (#2796540)
The email client checks for new mail in the background, though. How is it supposed to do that if the user is currently "logged out" (assuming you mean the pin for unlocking the screen)?
Re:Android account passwords are stored on disk in plain text by rjd on Friday July 22, 2011 @08:11PM (#2795671)
Not when there is already a market harvesting data from stolen phones. I think you probably haven't considered the impact for the standard user around using email as a authentication authority point.

Its like a skeleton key to your personal data, and with that you can get access to financial services very quickly. Hence why a black market exists, and I garantanee there is already rooting kits out there designed to own that data in seconds.

BTW obfuscation is not a security measure, and IMO its shameful and irresponsible to perpetuate that myth.

Re:Android account passwords are stored on disk in plain text by mentat on Saturday July 23, 2011 @12:08PM (#2797132)
If someone has root on your phone, they have your passwords. It doesn't matter how they're stored on the disk. Protecting a key from someone who has full access to storage and memory is very hard.
Re:Android account passwords are stored on disk in plain text by st3fan on Friday July 22, 2011 @09:33PM (#2795833)
Cleartext passwords are perfectly fine in this case. I speak as a software engineer specialized in security.

These passwords should of course be stored in a Keychain-like component that the OS provides.

Are you sure you are specialized in security?

Re:Android account passwords are stored on disk in plain text by lotu on Saturday July 23, 2011 @12:43AM (#2796179)
The OS can't provide a key ring because the user dosen't use a password to login. Or if they do have an unlock code they are short and numeric, making brute forcing them trivial. So yes, in this case plain text is acceptable because there is no truly better alternative.
Re:Android account passwords are stored on disk in plain text by nightpool on Saturday July 23, 2011 @02:37PM (#2797480)
On one hand, both gesture unlock codes and longer alphanumeric codes, both of which android supports, would probably make good candidates to secure the key ring with. On the other hand, the email application, for example, still needs to receive email even when the screen is off, which makes anything entered on screen un-lock a bad candidate for key-ring solutions. Boot is better, but how often do you turn your phone off while not using it?
Re:Android account passwords are stored on disk in plain text by there on Friday July 22, 2011 @08:31PM (#2795718)
http://whispersys.com/whispercore.html implements full-disk encryption for android.

unfortunately it requires unlocking the boot loader and installing that company's android rom, so it's not an option for many users.

Re:Android account passwords are stored on disk in plain text by zyb09 on Friday July 22, 2011 @09:16PM (#2795807)
The difference between Pidgin and Android is, Google provides the whole stack from the OS to the Mail App and also dictates hardware requirements. Clearly the can come up with a better way to store the, for many people, most important password they have.
Re:Android account passwords are stored on disk in plain text by gst on Saturday July 23, 2011 @03:27AM (#2796435)
A passphrase won't really help, because passphrases user's typically use on a secure device will be too simple.
Re:Android account passwords are stored on disk in plain text by odiroot on Saturday July 23, 2011 @07:49AM (#2796764)
What's wrong with a keyring? Or something like KDE's wallet.
Re:Android account passwords are stored on disk in plain text by Sephr on Friday July 22, 2011 @10:45PM (#2795974)
Android 3.x supports full disk encryption.