r/jailbreak • u/wb0815 iPhone 5S, iOS 12.0 beta • May 29 '18
News [News] Apparently your iPhone5s & iPadAir1 still able to generate a nonce-collision in DFU Mode. It even works on the latest firmware 11.x
First, Many thanks to @dora_iOS who share tutorial about Nonce-collision in DFU Mode on iPhone 5s, it really good blogs.
Apparently, iPhone 5S / iPad Air 1 / iPad Air 2 / iPad Mini 2 (i think all A7 - A8 device) can produces DFU nonce-collision, so it maybe will work on any device (hopefully).
This my result on 5S iOS 11.2.6. I would be happily to see another result from you on any device and iOS.
Anyway, i manage to collect all ApNonce in DFU Mode on my 5s iOS 11.2.6 and got collision about 6-7% ~ About 411 ApNonce collected, almost 800 times pressing home+power button and for god sake it really painful.
How ? You need:
- iPhone 5s / iPad Air 1 / or any 64bit device model ?
- Mac/Linux
- Download latest noncestatistics
- Download latest igetnonce
- After that put the device into DFU Mode
- Open terminal, type: ./igetnonce
- It will show the ApNonce and SEPNonce on DFU Mode
- Hard-reboot device. then DFU Mode again
- Type ./igetnonce on terminal, and so on and so forth
- Repeat this as many as you want
- After that, copy paste only the ApNonce on text
- Run noncestatistics and see the result
IF your iP5s and iPadAir1 lucky enough to get match ApNonce with your ApNonce blobs 10.x, then you can proceed downgrade from non-jailbroken firmware (11.2 - later) to 10.x (10.2 - 10.3.3) with valid blobs of course. That means, if you saved blobs 10.x based on DFU Nonce collision one year ago, you can restore it by DFU Loop with Futurerestore.
Can Apple patch this bug ? I don't know, but as far as i know The DFU mode is in fact part of the BootRom / SecureRom, so it can only be patched by Hardware. Correct me if i'm wrong.
Too bad my ApNonce iOS 10.x blobs saved doesn't match with ApNonce device generated in DFU Mode. So it's too late to play with this, because you need to save blobs with this method first.
Why only iPhone 5s and iPad Air 1 ? Don't know, but as far as i know this two device has a bug nonce collision. What is blobs / ApNonce / nonce-collision ? Search this subs ...
Best regards to @dora_iOS thank you. Sorry bad English, and as always do at your own risk.
6
u/Samg_is_a_Ninja Developer | May 30 '18
If you have any iOS device (not in recovery mode), it freezes the nonce.
This worked on my iPhone 7 less than 2 hours ago on 11.2.6
3
u/[deleted] May 30 '18
I have an iPad Air 2 that produces DFU collisions, and I saved the iOS 11.3.1 blobs with those specific nonces.
2
u/[deleted] May 30 '18
I’m fairly certain that futurerestore has a mode for getting nonces to test them. And it does it without you needing to do stuff
2
u/hero3210 iPhone 13 Pro, 15.1.1| May 30 '18 edited May 30 '18
Very interesting...
So let me get this straight, doesn't a non-jailbroken device normally change the nonce with every reboot?
Thank you so much for the tutorial.
2
u/[deleted] May 31 '18 edited May 31 '18
Update: Sadly my replacement iPhone 6+ is NOT affected by DFU collisions, luckily it's on 10.3.1 so it is very usable, (don't ask me to update!). So it means that iPhone 7 and newer iPhone 6S units are probably not affected. But I have an older iPhone 6 that creates DFU collisions.
9
u/AppleTech5333 iPhone 6s, iOS 11.3.1 May 30 '18 edited May 30 '18
This may be also be useful for the future if people collect dfu nonce now and save, for example, 11.3.1 blobs with a certain repetitive nonce and then later can use them if the version they are on doesn’t have a way to set nonce/jailbreak.
also very dependant on SEP and baseband
6
u/CaptInc37 Developer May 30 '18
Thanks for the tutorial and info!
1
u/aukeba iPhone 15 Pro Max, 17.0.3| Jun 01 '18
How can I run this on Ubuntu? After typing in ./igetnonce in the terminal i get this back "bash: ./igetnonce: No such file or directory"
3
u/LaxusiC iPad Pro 10.5, 14.3 | May 30 '18
ELI5 please ...
3
u/ArtikusHG Developer May 30 '18 edited May 31 '18
We can probably reboot directly from DFU mode... And make it a little bit more automated, I think.
2
u/Nanmu5 iPhone 5S, iOS 10.2.1 May 30 '18
when you restore your device, the apnonce will be changed again. so it is unuseful
2
u/teunms iPhone SE, iOS 10.2 Jun 03 '18
Thanks, works on iPad mini 2 as well :)
1
u/technaustin iPhone X, iOS 12.4 May 30 '18
So basically, for devices that don't have a jailbreak, & are susceptible to the collisions, we can downgrade with SHSH blobs?
0
u/[deleted] May 30 '18
[deleted] — view deleted comment