8 ms·
I believe that this application actually does connect to Apple's servers from the phone, but it doesn't then interpret the protocol on the device. Instead, it f
by saurik 13y ago
I believe that this application actually does connect to Apple's servers from the phone, but it doesn't then interpret the protocol on the device. Instead, it ferries the data to the third-party developer's server, parses everything remotely, figures out what to do with the data, and sends everything back to the client decoded along with responses to send back to Apple.
Doing it this way means that Apple can't just block them by IP address, it avoids them having to distribute their "secret sauce" (understanding the iMessage protocol is clearly very valuable), and it potentially allows them to use actual Apple code on their servers (in case they haven't spent the time to fully break the fairplay obfuscation that Apple is using for some of their keys).
Here's what I'm seeing: every time I send it a message, I get a packet from Apple, and then immediately the app sends a packet of almost exactly the same size to 222.77.191.206 (which is listed in this application's APK as "ServerIp"). It then gets back two packets from the Chinese server, the first of which I'm presuming is the decoded result and the second packet being a response to send Apple (as immediately a packet is sent back to Apple with about the same size).
Additionally, if you read the reviews of this application, the author is making some very weird responses to people with login issues: he's asking for their Apple ID, as apparently that's enough for him to debug their issue. That shouldn't be possible if the application is just directly talking to Apple the entire time.
[edit: The more I stare at this, the more confident I am in this analysis; specifically, the packets that are "about" and "almost exactly" the same size are very deterministic: the packets to/from Apple are precisely 7 bytes larger than the corresponding packets to/from the Chinese server.]
[edit: It also occurred to me to verify the other direction: in fact, if you go to send a message, first the client sends something to the developer's server, which then returns a packet which, along with again the exactly 7 extra bytes, is sent to Apple's server.]
- nwh 13y agoThat makes sense with my very limited experience messing with the iMessage protocol. Stands to reason that passwords are being ferried back to them though, there's got to be some financial reason for going to all this trouble. ED: Their obfuscation isn't actually that severe once you get used to it.
- philwelch 13y agoNot that this needs pointing out, but this also means the mysterious Chinese server also gets to read all your iMessages. This is some kind of quasi-MITM, and for that alone Apple would be in the right to block this kind of thing from ever working.
- levosmetalo 13y agoWhy is it any worse than only Apple server reading all you messages? You trust one third party with proven track record of spying on its customers, but somehow you are upset that someone else also has access to you messages, thought that someone didn't (yet) do anything wrong with them. If you are American, you don't have to fear from Chinese espionage, and US agencies already have your data. If you are European, it's more or less the same. If you are from China, well, at least you can prove that you are not doing anything behind the government back ;)
- nodata 13y ago> Why is it any worse than only Apple server reading all you messages? Not. This. Again. Because one person can read your messages, it doesn't mean that the whole world should be able to. One happening doesn't mean the other is okay.
- antocv 13y agoYou seem to misunderstand the OP concerns. It is not only one person, it is not only Apple servers reading all your messages. It is in fact the whole world. Through Apple gives it to NSA which hands it over to various other agencies, GHCQ, FRA, your data ends up in Israel. Your data is already a goods traded with on the international market. Why not increase the competitiveness of this Chinese actor, you will get better service in the future? More competitive - better service.
- est 13y agoLet me give you an example. Apple, NSA saw CC number in your chat log, but Apple, NSA, GHCQ, FRA or Israeli Intelligence won't steal your CC and use it. However, the Chinese vendor could intercept CC info and sell it to blackmarket.
- MFaroTusino 13y agoI came to the same conclusion as Saurik, (though didn't go as far as looking up the Server and seeing it was from China). I had hoped that I could decompile it, get the special sauce, and make a client for Qt-based OSes and also Windows Phone. Looks like I won't make any progress today
- nwh 13y agoYou likely won't be able to do anything at all, as the client is fairly dumb. It just takes requests from Apple's server, encrypts with CTR AES and a static key, then fires them off to the Chinese server for actual processing. Unless you want to use their server in your own application, you're just as snookered as before; you still need the secret sauce.
- MFaroTusino 13y agoI'm aware of that, hence why I said I won't be making any progress. I've tried using the Mac version and iOS versions, no luck either way. I'll try BBM too once its on Android. Trying to get it off my Z10 has proven just as difficult
- DAddYE 13y agoI think you got exactly what they are doing. In fact if you see their "icloud sdk" looks also exactly what you mentioned. https://github.com/huluwateam/icloud https://github.com/huluwateam/icloud [edit: maybe this is more simple to decrypt https://github.com/huluwateam/icloud/blob/master/DataSyncSDK/lib/DataSync.dll https://github.com/huluwateam/icloud/blob/master/DataSyncSDK...]
- est 13y agoAhhh good ol' github. Shows the author email and everything. Finally I can ask the author for his secret ingredients.
- Tyrannosaurs 13y agoAnd Apple's lawyers can find out how to reach him too. Not saying that's a good thing, just that it's a likely thing.
- toomuchtodo 13y agoIn China. Good luck with that.
- Tyrannosaurs 13y agoIt's a fair point, though it may depend whether there is any "official support" for his actions. If it's just someone acting on their own for fun, the amount of money Apple invest in China might suggest that they have some sway should they choose to use it.
- chacham15 13y agothe code there makes no mention of the iMessage protocol. everything there can be done using other publicly avaiable API's such as the CalDAV/CardDAV api.
- DAddYE 13y ago
- DAddYE 13y agoHowever since this protocol is really strong: 1) They are using a workaround like a vm running osx where a program add the requested account on Message.app and then send back the I/O. 2) Second solution they got from an insider the protocol description and decryption.
- pudquick 13y agoI would be surprised if #1 was the case. Given the amount of volume of traffic that this app will generate, the traffic for identifying a rapidly signing in Message.app will be pretty unique and easily blockable by Apple. Additionally, I know that recent efforts in the hackintosh community had problems with Message.app because the latest protocols incorporate being able to access the serial number of your machine (or something along those lines). Apple goes through some extensive hoops verifying that access to OS X -only and iOS-only services really does come from their devices.
- huluwateam 13y agoCurrent version need server,because Apple have same limits. but in new version , i will not use server. Thanks.
- Tepix 13y agoDo you know if iMessages are encrypted to more than one key (i.e. not just with the recipient key)?
- gugol 13y agoHow the f* did you made this if you can't even speak English decently? No offense.
- Gigablah 13y ago> did you made this Seriously? You're going to complain about his English?
- Wintamute 13y agoPerhaps he's a non-English speaking coder who is expressing admiration and incredulity? What makes you think he's complaining? He goes so far as to explicitly state "no offence".
- Gigablah 13y agoThere's a boundary between playing devil's advocate and taking the piss outright.
- tommmmmm 13y agoWhen is "no offense" ever attached to a compliment?
- gugol 13y agoOMG! I'm so embarrassed! Yes I'm a non-English speaker and I can see my mistake now but I didn't last night when I was falling asleep. And yes, I'm showing admiration and curiosity because I feel stupid reading programming books and so when I don't know how this guy went that far without reading that much English books/sources. Because I'm almost sure that the most of information is available in English only.