breaking DX news

dvader

Well-known member
Jul 18, 2010
448
20
0
Visit site
nenolod William Pitcock
by richie681
frequently asked question: what are these keys for? answer: signing SBF update files for rsdlite.
1 hour ago Favorite Retweet Reply
?
William Pitcock
nenolod William Pitcock
by richie681
with the private key + iv, you can sign a replacement recovery and pack it in an SBF. enjoy.
1 hour ago Favorite Retweet Reply
?
William Pitcock
nenolod William Pitcock
by richie681
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <== nonce (e)
1 hour ago Favorite Retweet Reply
?
William Pitcock
nenolod William Pitcock
by richie681
97 6a 21 7a 67 41 37 9f 26 53 4a 61 7f 2a 86 ae ff 71 21 78 2e 61 4f 71 90 3e 00 27 fe 9b <== initialization vector
1 hour ago Favorite Retweet Reply
?
William Pitcock
nenolod William Pitcock
by richie681
7e 21 a8 37 64 12 75 a3 47 13 54 42 12 48 58 12 71 a4 5e 41 a7 64 72 34 2a 6f e2 0a 97 8f <== sholes private key
 

dvader

Well-known member
Jul 18, 2010
448
20
0
Visit site
http://nenolod.net/~nenolod/sholes-keyleak-explained.html

Sholes signing key leak explained

The Motorola(r) sholes platform uses a trusted bootloader environment. Signatures are stored as part of the CDT stored on the NAND flash. mbmloader verifies the signature on mbm before passing control. mbm verifies all other signatures before allowing the device to boot.

There is a vulnerability in the way that Motorola generated the signatures on the sections stored in the CDT. This vulnerability is very simple. Like on the PlayStation 3, Motorola forgot to add a random value to the signature in order to mask the private key. This allowed the private key and initialization vector to be cracked.

The keys can be cracked using Mathematica. Read up on how the Elgamal signature scheme works.
Ok, what does this mean?

Please refer to the following table:
Boot chain component Status
OMAP secure bootrom secure
Secure keystore replaceable
mbmloader secure, but irrelevant, replaceable but unnecessary
mbm secure, but irrelevant, replaceable but unnecessary
recovery replaceable (providing new keys is recommended)
system replaceable (providing new keys is recommended)
bootimage replaceable (providing new keys is recommended)

I do not plan on doing any more work on this. But all information has been handed over to people who are working on this. Follow the FreeMyMoto people for their progress.
Advisory history

* December 20th, 2010 — Motorola notified of keystore vulnerability. No response received from Motorola.
* February 20th, 2011 — Motorola notified again of keystore vulnerability. No response received from Motorola.
* February 27th, 2011 — Motorola notified that keystore vulnerability will be disclosed to public on March 20th. No response received from Motorola.
* March 20th, 2011 — Keystore signature generation vulnerability publically disclosed including private key leak. Response received from Motorola legal.
 

dvader

Well-known member
Jul 18, 2010
448
20
0
Visit site
update to the page
Sholes signing key leak explained

The Motorola(r) sholes platform uses a trusted bootloader environment. Signatures are stored as part of the CDT stored on the NAND flash. mbmloader verifies the signature on mbm before passing control. mbm verifies all other signatures before allowing the device to boot.

There is a vulnerability in the way that Motorola generated the signatures on the sections stored in the CDT. This vulnerability is very simple. Like on the PlayStation 3, Motorola forgot to add a random value to the signature in order to mask the private key. This allowed the private key and initialization vector to be cracked.

The keys can be cracked using Mathematica. Read up on how the Elgamal signature scheme works.
Keys

Not placed here due to Motorola legal.
Ok, what does this mean?

Please refer to the following table:
Boot chain component Status
OMAP secure bootrom secure
Secure keystore replaceable (this CG must be signed by motorola's key)
mbmloader secure, but irrelevant
mbm secure, but irrelevant, replaceable but unnecessary
recovery replaceable (signable by anything in keystore)
system replaceable (signable by anything in keystore)
bootimage replaceable (signable by anything in keystore)

I do not plan on doing any more work on this. But all information has been handed over to people who are working on this. Follow the FreeMyMoto people for their progress.

In theory, creating a packed SBF to update keystore and replace recovery should work without bricking your phone. My advice: do not replace mbmloader as that is dangerous. An earlier version of this advisory marked it as replaceable, I have decided to remove this claim as I cannot presently think of a way to do it safely.
Notes to recovery authors

Your recovery must update the signatures on the Codegroup Descriptor Table (CDT). If it does not, your recovery will brick the phone if you attempt to flash a custom ROM.
Advisory history

* December 20th, 2010 — Motorola notified of keystore vulnerability. No response received from Motorola.
* February 20th, 2011 — Motorola notified again of keystore vulnerability. No response received from Motorola.
* February 27th, 2011 — Motorola notified that keystore vulnerability will be disclosed to public on March 20th. No response received from Motorola.
* March 20th, 2011 — Keystore signature generation vulnerability publically disclosed including private key leak. Response received from Motorola legal.
 
  • Like
Reactions: Smitty_82

digitalslacker

Well-known member
Jul 6, 2010
1,616
211
0
Visit site
There's another thread in the DEV DX section. If a mod wants to move this one it probably makes more sense there

Hopefully CM7...but who knows at this point...probably too early to tell.
 

SYL

Well-known member
Aug 8, 2010
57
1
0
Visit site
when it says "OMAP secure bootrom: secure", with "secure" highlighted in red, what does that mean? Is that bad?
 

Leif

Well-known member
Jun 24, 2010
102
0
0
Visit site
So...my droid x is still on the leaked froyo from back in sept. (I haven't wanted to update it in case some leak ever did happen). Will I need to update to motorolla's latest version to get this?
 

SYL

Well-known member
Aug 8, 2010
57
1
0
Visit site
So...my droid x is still on the leaked froyo from back in sept. (I haven't wanted to update it in case some leak ever did happen). Will I need to update to motorolla's latest version to get this?

These keys are only for installing custom roms that replace the kernel. Otherwise, these keys are useless. So unless you are a developer, don't worry about this at all
 

Trending Posts

Forum statistics

Threads
942,987
Messages
6,916,754
Members
3,158,761
Latest member
Dominic Haar