+ Reply
Page 1 of 2 12 LastLast
Results 1 to 20 of 25
  1. #1
    Green Apple
    Join Date
    Jan 2011
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Firmware signature verification

    Exactly what performs the hardware-based SHSH check on the iPhone, iPod touch, and the iPad? Is it the bootrom? And if so, is a device with an old bootrom unable to perform SHSH checks?

  2. #2
    iPhoneaholic
    Join Date
    Nov 2007
    Location
    Denver
    Posts
    339
    Thanks
    16
    Thanked 35 Times in 33 Posts

    iTunes actually does that. That's why you can trick it into letting you downgrade by pointing the hosts file to Cydia's server with your old SHSH blobs.

  3. #3
    Green Apple
    Join Date
    Jan 2011
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Uh, no. That is definitely not the case.

    Now, revisiting my question with an additional one: does the old bootrom iPhone 3GS check SHSH blobs?
    Last edited by Melab; 02-14-2011 at 02:58 PM. Reason: Automerged Doublepost

  4. #4
    Superbad Moderator Simon's Avatar
    Join Date
    Nov 2007
    Location
    Bermuda
    Posts
    38,296
    Thanks
    1,933
    Thanked 5,991 Times in 4,294 Posts

    Yes it does

  5. #5
    Green Apple
    Join Date
    Jan 2011
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Then what is the difference between the old bootrom and the new bootrom?

  6. #6
    Super Otiose Mod Orby's Avatar
    Join Date
    Aug 2010
    Location
    Elsewhere.
    Posts
    3,740
    Thanks
    37
    Thanked 346 Times in 315 Posts

    Quote Originally Posted by Melab View Post
    Then what is the difference between the old bootrom and the new bootrom?
    The difference is the bootrom on the "fixed" units hard-checks the size of LLB before loading it from NOR. The old bootrom only checks it via software from the non-signed portion (therefore, a size mismatch and the bootrom exploit is possible).

    In short, 24kpwn (permanent untethered jailbreak) is possible on the old-bootrom. It is not on the new one.

  7. #7
    Green Apple
    Join Date
    Jan 2011
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    So any device with the old bootrom, including the first revision of the iPhone 3GS, does not check/verify the SHSH blob through any hardware-based process, theoretically being able to load any firmware without having to worry about SHSH blobs?

  8. #8
    Super Otiose Mod Orby's Avatar
    Join Date
    Aug 2010
    Location
    Elsewhere.
    Posts
    3,740
    Thanks
    37
    Thanked 346 Times in 315 Posts

    Quote Originally Posted by Melab View Post
    So any device with the old bootrom, including the first revision of the iPhone 3GS, does not check/verify the SHSH blob through any hardware-based process, theoretically being able to load any firmware without having to worry about SHSH blobs?
    Not quite.

    The bootrom does check SHSH blobs on the old-bootrom models too (with the same force and penalties).

    However, as far as I can tell, the bootrom itself only checks the blobs on the three IMG3s it directly interacts with--iBSS, iBEC, and LLB. All subsequent IMG3 files loaded in have their blobs checked by the preceding piece of software that loads them in as part of their normal signature check (LLB checks iBoot, iBoot checks the kernelcache, etc.)

    While we have the ability to write arbitrary data to the device (so we could get 3.1.2's iBoot onto a device without the matching SHSH blobs), we wouldn't be able to convince the device to boot up normally (LLB would notice the missing blobs and invalidate iBoot, halting the startup).

  9. #9
    Drinks the Kool Aid Captinsmooth's Avatar
    Join Date
    Mar 2010
    Location
    New York
    Posts
    1,322
    Thanks
    131
    Thanked 349 Times in 197 Posts

    damn orby beat me to it. I had it all typed out..lol
    This post infers no rights and is provided as is.

    Click here to follow me on twitter

  10. #10
    Superbad Moderator Simon's Avatar
    Join Date
    Nov 2007
    Location
    Bermuda
    Posts
    38,296
    Thanks
    1,933
    Thanked 5,991 Times in 4,294 Posts

    Did you really lol?

  11. #11
    Super Otiose Mod Orby's Avatar
    Join Date
    Aug 2010
    Location
    Elsewhere.
    Posts
    3,740
    Thanks
    37
    Thanked 346 Times in 315 Posts

    Quote Originally Posted by Captinsmooth View Post
    damn orby beat me to it. I had it all typed out..lol
    I'm sorry. <3?

  12. #12
    Drinks the Kool Aid Captinsmooth's Avatar
    Join Date
    Mar 2010
    Location
    New York
    Posts
    1,322
    Thanks
    131
    Thanked 349 Times in 197 Posts

    Yes, I mean it was n laments terms but none the less the same info for the most part. Probably a bit more comprehensible to the average forum goer then what orby said...lol
    This post infers no rights and is provided as is.

    Click here to follow me on twitter

  13. #13
    Green Apple
    Join Date
    Jan 2011
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Actually, I understand orbyorb.

    Now, orbyorb, does this mean that the original iPhone and the iPhone 3G (the second one) used hardware-based verifications also?

    As in the public key that it is verified against is soldered into the chip?
    Last edited by Melab; 02-15-2011 at 03:35 PM. Reason: Automerged Doublepost

  14. #14
    Super Otiose Mod Orby's Avatar
    Join Date
    Aug 2010
    Location
    Elsewhere.
    Posts
    3,740
    Thanks
    37
    Thanked 346 Times in 315 Posts

    Quote Originally Posted by Melab View Post
    Actually, I understand orbyorb.

    Now, orbyorb, does this mean that the original iPhone and the iPhone 3G (the second one) used hardware-based verifications also?

    As in the public key that it is verified against is soldered into the chip?
    They do not use hardware-enforced SHSH blobs. Though the iPhone 3G (and iPT2G) use SHSH blobs with iOS 4.0 (3.1.1 with the iPT2G) and later, it does not (can not) hardware-check the blobs--all checks start no earlier than LLB and continue down the line. Since these checks only exist in software, it's possible to downgrade/restore to a version of LLB etc. that does not have this enforcement, and just proceed normally sans personalized IMG3s.

    However, with both of these devices (old bootrom for iPT2G) with Pwnage2 or 24kpwn, Apple's security measures to ensure only signed code is being run at each stage of the bootup process (the Chain of Trust) is so thoroughly broken that these soft-SHSH blob checks only come into play when restoring to out-of-date stock firmware.

    EDIT: The public key certificate for SHSH blob verification is both burned into ROM (for 3GS and later) /and/ placed into the SHSH blobs themselves (I think).
    Last edited by Orby; 02-15-2011 at 03:44 PM.

  15. #15
    Green Apple
    Join Date
    Jan 2011
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Meaning hardware-based verification was added with the first iPhone 3GS model and not with the iPhone 3GS model that comes with the new bootrom?

  16. #16
    Super Otiose Mod Orby's Avatar
    Join Date
    Aug 2010
    Location
    Elsewhere.
    Posts
    3,740
    Thanks
    37
    Thanked 346 Times in 315 Posts

    Quote Originally Posted by Melab View Post
    Meaning hardware-based verification was added with the first iPhone 3GS model and not with the iPhone 3GS model that comes with the new bootrom?
    Correct.

  17. #17
    Green Apple
    Join Date
    Jan 2011
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is this also the case with the iPod touch 2G -- old or new bootrom, a hardware-based verification is performed?
    Last edited by Melab; 02-15-2011 at 04:05 PM.

  18. #18
    Super Otiose Mod Orby's Avatar
    Join Date
    Aug 2010
    Location
    Elsewhere.
    Posts
    3,740
    Thanks
    37
    Thanked 346 Times in 315 Posts

    Quote Originally Posted by Melab View Post
    Is this also the case with the iPod touch 2G -- old or new bootrom, a hardware-based verification is performed?
    The iPod touch 2G is software-only checked for both models. Though since there is no chain-of-trust breaking exploit on the new-bootrom models, they are essentially new-bootrom iPhone 3GSs (though you can downgrade iBoot to 2.2's version with no SHSH blobs and ARM7_Go with steaks4uce, it'll hang tethered).

    EDIT: Unlike the 3GS, however, old and new-bootrom units could theoretically downgrade to iOS 2.x/3.0.x without issue and go from there. Just the newer firmwares with the extra checks throw a wrench into things.

  19. #19
    Green Apple
    Join Date
    Jan 2011
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Now, I'm not sure if anyone has actually taken a look at the chip itself, but could potentially open up a new bootrom device and snip-snip a couple of connections to prevent the verification from taking place?

    With an X-Acto knife of course because these connections are millimeter thin strips of copper.
    Last edited by Melab; 02-15-2011 at 04:26 PM. Reason: Automerged Doublepost

  20. #20
    Super Otiose Mod Orby's Avatar
    Join Date
    Aug 2010
    Location
    Elsewhere.
    Posts
    3,740
    Thanks
    37
    Thanked 346 Times in 315 Posts

    Quote Originally Posted by Melab View Post
    Now, I'm not sure if anyone has actually taken a look at the chip itself, but could potentially open up a new bootrom device and snip-snip a couple of connections to prevent the verification from taking place?

    With an X-Acto knife of course because these connections are millimeter thin strips of copper.
    I highly doubt it.

    From what I understand, these verifications are only a few bytes in length and are snugly inside the processor die.

    Trying to remove them that way will almost guarantee a bricked processor.

    Now JTAGging the unit, vis à vis Geohot's original iPhone unlock, might be more fruitful--but you'll need to not only have a crap-ton of devices to afford to brick, you'll also probably need a schematic showing the correct points and switches on the board (along with necessary resistors/voltages/etc.) along with having some serious electrical engineer skills.

+ Reply
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts