Live data from Hacker News

Samsung Galaxy S3 stores passwords in plain text

geek.com

11–20 of 38 posts

Re: Samsung Galaxy S3 stores passwords in plain text

#11

This is a really bad article. I would call it nothing less than fear-mongering. Let's say they decided to encrypt the file. They would have to store that key in plain-text somewhere. Of course, they could encrypt that, but then that key would have to be stored somewhere. No matter how they decided to store the password, if somebody has root access to the device, they can find a way to read it. If they can't find a wa…

PBKDF2, it works for deriving keys to decrypt other things.

Re: Samsung Galaxy S3 stores passwords in plain text

#12

This is a really bad article. I would call it nothing less than fear-mongering. Let's say they decided to encrypt the file. They would have to store that key in plain-text somewhere. Of course, they could encrypt that, but then that key would have to be stored somewhere. No matter how they decided to store the password, if somebody has root access to the device, they can find a way to read it. If they can't find a wa…

While I'm mostly for the name-and-shame approach to lazy security practices, these "x stores passwords in plaintext" have become just as lazy. It's just an excuse for developers to feel better about themselves because they know about hashing passwords. Case in point, this article suggests Samsung should hash the passwords, which wouldn't work here. I suppose it does good to bring Samsung's oversight to light, but the reader gets nothing from the article.

Re: Samsung Galaxy S3 stores passwords in plain text

#13

This is a really bad article. I would call it nothing less than fear-mongering. Let's say they decided to encrypt the file. They would have to store that key in plain-text somewhere. Of course, they could encrypt that, but then that key would have to be stored somewhere. No matter how they decided to store the password, if somebody has root access to the device, they can find a way to read it. If they can't find a wa…

> They would have to store that key in plain-text somewhere.

Is this really true? Could not the device manufacturer store embed the key in silicon somehow, perhaps in EEPROM or similar?

Re: Samsung Galaxy S3 stores passwords in plain text

#14
post #4

There is no excuse for openly storing passwords like this. Why does Samsung think this is acceptable?

Why is storing them encrypted locally any better? Someone with root has access to the decryption keys anyway.

It isn't. Storing passwords on a mobile device, unencrypted or encrypted, is just wrong.

Fortunately authenticating with Google services requires neither.

Re: Samsung Galaxy S3 stores passwords in plain text

#15
post #13

This is a really bad article. I would call it nothing less than fear-mongering. Let's say they decided to encrypt the file. They would have to store that key in plain-text somewhere. Of course, they could encrypt that, but then that key would have to be stored somewhere. No matter how they decided to store the password, if somebody has root access to the device, they can find a way to read it. If they can't find a wa…

> They would have to store that key in plain-text somewhere. Is this really true? Could not the device manufacturer store embed the key in silicon somehow, perhaps in EEPROM or similar?

Honestly, that never happens.

Re: Samsung Galaxy S3 stores passwords in plain text

#16
post #9

This is developer sloppiness. Google provides plenty of methods to authenticate users without persisting user credentials to disk. There's no reason an application would need to store your Google login to disk, unencrypted or otherwise.

As someone on Reddit pointed out, the minimal API version of the app is 4, which corresponds to Android 1.6, which, incidentally, does not have the AccountManager infrastructure.

I guess that's a good reason to implement credentials storage, don't you?

P.S. AccountManager stores your passwords and tokens unencrypted in a database as well.

Re: Samsung Galaxy S3 stores passwords in plain text

#17

This is a really bad article. I would call it nothing less than fear-mongering. Let's say they decided to encrypt the file. They would have to store that key in plain-text somewhere. Of course, they could encrypt that, but then that key would have to be stored somewhere. No matter how they decided to store the password, if somebody has root access to the device, they can find a way to read it. If they can't find a wa…

It is bad either way. The phone should keep an access token (which can be revoked), not store the user's password.

Re: Samsung Galaxy S3 stores passwords in plain text

#18
post #11

This is a really bad article. I would call it nothing less than fear-mongering. Let's say they decided to encrypt the file. They would have to store that key in plain-text somewhere. Of course, they could encrypt that, but then that key would have to be stored somewhere. No matter how they decided to store the password, if somebody has root access to the device, they can find a way to read it. If they can't find a wa…

PBKDF2, it works for deriving keys to decrypt other things.

But still you need to have whatever you use as input into KDF accessible. Encrypting passwords that you still need to be able to send somewhere without additional user interaction simply does not have any security benefit. Full-device encryption does work, building separate encrypted credential store is mostly useless security by obscurity.

Re: Samsung Galaxy S3 stores passwords in plain text

#19
post #13

Earlier quoted context omitted.

> They would have to store that key in plain-text somewhere. Is this really true? Could not the device manufacturer store embed the key in silicon somehow, perhaps in EEPROM or similar?

Honestly, that never happens.

Ever it that would happen it would not help in this situation anyway. The application simply needs to be able to access that data.

We had built some devices that did encrypt they local stores and used keys burned into separate silicon (really, keys derived from multistep mutual authentication with that silicon), but the attack model was that attacker would not possess both parts of device at once (as the key-containing part was able to be located in different part of the building from rest of the device, was reasonably tamper-proof and detected movement).

Re: Samsung Galaxy S3 stores passwords in plain text

#20
> While rooting a Samsung Galaxy S3 only takes about five minutes, the software tools required are uncommon enough that as long as your phone isn’t already rooted you likely don’t have anything to worry about.

This is plain wrong: Any unrooted Android is insecure, because the exploit to root it is not fixed. The only way to make an Android secure is to root it, to install a newer version, and to upgrade it regular.

The right way to store passwords would be: Ask for a master password at boot, to start an app, that is managing the password crypt. So far I know, nobody does this. So the 2nd best way is, to install the google play into emulator, and use something like titanium to move applications between emulator and phone.

Post reply on HN