3 ms·
HBO was granted an SSL certificate by Verisign for "localhost" that was embedded in their iOS app for a while (allowing them to have the iPhone player, which ha
by saurik 12y ago
HBO was granted an SSL certificate by Verisign for "localhost" that was embedded in their iOS app for a while (allowing them to have the iPhone player, which had some SSL requirement I never knew much about, to connect to localhost to stream content, but let the app apply some crazy custom DRM scheme to the traffic). It was found by jan0, when he was working on a Cydia Substrate extension to backport the bug fix for one of the SSL issues that Apple had on iOS 4, and his extension died on someone's phone logging about localhost. He mentioned it on IRC and then left for lunch, so I decided it would be a fun challenge to try to grab it out; two hours later I had disassembled the code and figured out that it had a string that was like "AHdagw%@gcgAWdsa%@fGS3" that it formatted with two strings (replacing the "%@", if you don't know Objective-C), then base-64 decoded that, and used it as the password for a key file, which was something like "Amst3rd4m1sC0ld" (I remember what it said, but not the numbers/caps ;P). I knew it hadn't taken him two hours to figure this out, so I asked him how he did it, and he made fun of me for not using my own tools (in this case, Substrate) to just hook the function that you pass the password to to decrypt a key file :(.