-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/MTJailed/jailbreakme
- Loading branch information
Showing
1 changed file
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,32 @@ | ||
# An RCE exploit for iOS 11.3.1 | ||
## by Niklas B in Co-operation with phoenhex team | ||
## by Niklas B in Co-operation with phoenhex team | ||
### Extended by Sem Voigtländer | ||
|
||
### Finding offsets | ||
|
||
iOS Stores system libraries and frameworks in a cachefile for optimal performance. | ||
|
||
This exploit uses rop gadgets invarious frameworks from the dyld_shared_cache. | ||
|
||
Therefore the following methods can be used for finding offsets for the exploit to add support to new devices: | ||
|
||
- Dumping the libraries from the memory live on an iOS device by firstly loading them, then finding it with dyld, finding the base address of it with liblorgnette, then parsing it as a Mach-O file and dumping it to a file. | ||
|
||
- Copying the entire dyld_shared_cache to either an app that supports iTunes Filesharing or via an FTP server. | ||
|
||
The first option would be more straightforward as it only gives you the libraries you need but at this time my program as I wrote it is only able to dump the TEXT section from the libraries. You can find the code in UnjailMe. | ||
|
||
The second option is what I did but that comes with a limitation: | ||
- There are currently no working and precise cache extraction utillities that do not truncate or corrupt the libraries. | ||
- Loading an entire cache (1GB) into IDA will be extremely slow | ||
- Radare2 will load it but the analysis will take ages and its not efficient to analyze the entire cache | ||
- Hopper will load it and you can select the library to analyze but hopper does not have very good ROP gadget search functionality other than poorly searching for opcodes. | ||
|
||
So finding the symbol offsets is easy with hopper. | ||
|
||
Take a look at offsets.module.js and there you can see which offsets to find. | ||
|
||
But then there are the ROP gadgets and those may take ages to find manually in Hopper. | ||
|
||
Until either a new cache extraction utilty is written or my iOS app for dumping libraries is finished looking for ROP gadgets will be a painful job. | ||
|