Re:IPad 2 JailBreakMe (3.0) now available
by mrspeaker on Wednesday July 06, 2011 @08:04AM
(#2733478)
Is there a way to decompile the base64 code into the actual script? I'm guessing the shellcode is the bits after the AAAAAAA's?
Re:IPad 2 JailBreakMe (3.0) now available
by kristofferR on Wednesday July 06, 2011 @08:46AM
(#2733610)
http://pastebin.com/YuPrMhiE
It doesn't make that much more sense to me, but atleast you can see some commands.
Re:IPad 2 JailBreakMe (3.0) now available
by gary4gar on Wednesday July 06, 2011 @08:42AM
(#2733596)
I decoded base64 & got this:
https://gist.github.com/1067129
bunch of random gibberish?
Re:IPad 2 JailBreakMe (3.0) now available
by kristofferR on Wednesday July 06, 2011 @08:47AM
(#2733619)
When decoding to ASCII instead of UTF-8 (like you've done) I got this. It makes a little bit more sense at least, but not much.
Re:IPad 2 JailBreakMe (3.0) now available
by gary4gar on Wednesday July 06, 2011 @08:54AM
(#2733642)
I guess the actual shell code starts from line 40 ">>stream..."
It must be using some other encoding, only if we knew which!
It's a PDF FlateDecode block, i.e. it's DEFLATEd. The actual payload within may be different, but this much has been used before.
http://digdog.tumblr.com/post/894317027/jailbreak-with-pdf-f...
Re:IPad 2 JailBreakMe (3.0) now available
by JonnieCache on Wednesday July 06, 2011 @08:58AM
(#2733657)
It's presumably just a lump of binary ARM opcodes.
Re:IPad 2 JailBreakMe (3.0) now available
by demonfly on Wednesday July 06, 2011 @10:55AM
(#2734155)
We need a debugger or a disassmbler like IDA Pro to make reverse engineering of that code
It's compressed with FlateDecode; if you decompress it you can see the embedded .pfb, which has the actual exploit.
Re:IPad 2 JailBreakMe (3.0) now available
by demonfly on Wednesday July 06, 2011 @04:37PM
(#2735773)
thank you comex, I did not actually found how to decompress it, I keep trying with pdf-parser with no luck
I've succesfully extraced the font with pdf-parser with this command: "python pdf-parser.py --object 4 --filter --raw pdfexploit.pdf > font.pfb" everything is documented here http://www.bufferoverflow.it/2011/07/06/jailbreakme-ecco-com...
For those who fancy doing some analysis, here's the curl command with the required ipad UA string:
EDIT: here's the b64 pdf: http://pastebin.com/69tnPMdVthe PDF is very invalid, because it never needs to masquerade as a real document, it doesn't have to pretend to implement the PDF spec correctly. This makes it somewhat resistant to analysis, it doesn't even have the required '%%EOF' marker so many tools choke on it immediately.
EDIT: There's an unterminated stream object in there which doesn't have a type, and it also has a declared length of 61 bytes and an actual length of well over 400. I think we have a winner... Unfortunately iOS shellcode analysis is waaaay over my head so I'll have to do something useful instead.