News for hackers. Stuff that matters.
Re:Pandora doesn't hash their passwords by mrb on Friday September 21, 2012 @12:52AM (#4552358)
Update 04:49 UTC: I am done reverse-engineering Pandora's javascript code!

And I was right: the JSON object that it stores in the HTML local storage is merely obfuscated with static keys, not encrypted. I was able to decrypt the full object, including my Pandora password:

  lastUserId: "xxxxxxxxx"
  storedUserIds: ["xxxxxxxxx"]
  Uxxxxxxxxx.StationSortOrderAlpha: false
  Uxxxxxxxxx.isAnonymous: false
  Uxxxxxxxxx.Username: "[email protected]"
  Uxxxxxxxxx.Password: "myCleartextPassword"
  hasLoggedIn: true

  (xxxxxxxxx) is the numeric Pandora user ID.
I will publish an tool for decryption as a proof-of-concept, in the next hour.

What were Pandora's developers thinking? This is not a huge flaw, but they should certainly not store sensitive data like the user's password in the local storage.

Re:Pandora doesn't hash their passwords by mrb on Friday September 21, 2012 @06:52AM (#4553189)
Done:

Pandorhack: Stealing Pandora Passwords http://news.ycombinator.com/item?id=4553184

Re:Pandora doesn't hash their passwords by flyinRyan on Friday September 21, 2012 @09:56AM (#4553738)
Very well done.
Re:Pandora doesn't hash their passwords by cbsmith on Friday September 21, 2012 @01:45AM (#4552498)
> Update 04:49 UTC: I am done reverse-engineering Pandora's javascript code!

Good job!

> This is not a huge flaw, but they should certainly not store sensitive data like the user's password in the local storage.

Well, if it was properly encrypted, I'd disagree with you, but since it isn't, I'm not going to quibble.

Out of curiosity, how do you know the key is static, and not per account? Did you test with two accounts?

Re:Pandora doesn't hash their passwords by mrb on Friday September 21, 2012 @02:55AM (#4552650)
Yup, I tested with 2 different accounts, using 2 different browsers, even from 2 different IPs. The static keys seem to never change, they are served from the same .js file.