Aller au contenu


Photo

The Reset Glitch Hack : a new exploit on Xbox 360 [ EN ]


  • Veuillez vous connecter pour répondre
14 réponses à ce sujet

Posté 28 août 2011 - 13:53

#1
Razkar

Razkar

    HomeBrew Lover

  • Shining VIP
  • 6 098 messages
  • Sexe:Male

The french developer and hacker, GliGli, is proud to release via XboxHacker forums, what most of us are waiting for since more than one year : a new exploit for the Xbox 360. This new Hack is called "Reset Glitch Hack" and needs the installation of a chip. The Reset Glitch Hack is compatible with most 360 models: all the Xbox Slims models and for FAT, Zephyr and Jasper are working for now (Falcon will be released when the devs will have one at hand).

 

To explain it (very) simply, the chip sends little pulses to the processor in order to distabilize the console and make it believe a modified CB is correctly hashed and signed. This operation doesn't succeed every time, but it is repeated till it works. Once the modified/hacked CB is validated by the console, it has enough rights to launch unsigned code and in our case, XeLL, the Xenon Linux Loader. For full details, read GliGli's explanation of his hack, you can also have a look at the source code of Hack available HERE.

 

Advantages of this Hack :

 

- All the 360 expect the Xenons will be compatible.

- It's unpatchable, in fact the CB is involved so early in the console boot process that it can't be revoked

 

Drawbacks:

 

- A chip is needed.

- The boot time varies and it can take up to a few minutes to run unsigned code.

 

 

Here is the full explanation of the Hack by GliGli :

 

***************************************
* The Xbox 360 reset glitch hack *
***************************************

Introduction / some important facts
===================================

tmbinc said it himself, software based approaches of running unsigned code on the 360 mostly don't work, it was designed to be secure from a software point of view.

The processor starts running code from ROM (1bl) , which then starts loading a RSA signed and RC4 crypted piece of code from NAND (CB).

CB then initialises the processor security engine, its task will be to do real time encryption and hash check of physical DRAM memory. From what we found, it's using AES128 for crypto and strong (Toeplitz ?) hashing. The crypto is different each boot because it is seeded at least from:
  - A hash of the entire fuseset.
  - The timebase counter value.
  - A truly random value that comes from the hardware random number generator the processor embeds. on fats, that RNG could be electronically deactivated, but there's a check for "apparent randomness" (merely a count of 1 bits) in CB, it just waits for a seemingly proper random number.

CB can then run some kind of simple bytecode based software engine whose task will mainly be to initialise DRAM, CB can then load the next bootloader (CD) from NAND into it, and run it.

Basically, CD will load a base kernel from NAND, patch it and run it.

That kernel contains a small privileged piece of code (hypervisor), when the console runs, this is the only code that would have enough rights to run unsigned code.
In kernel versions 4532/4548, a critical flaw in it appeared, and all known 360 hacks needed to run one of those kernels and exploit that flaw to run unsigned code.
On current 360s, CD contains a hash of those 2 kernels and will stop the boot process if you try to load them.
The hypervisor is a relatively small piece of code to check for flaws and apparently no newer ones has any flaws that could allow running unsigned code.

On the other hand, tmbinc said the 360 wasn't designed to withstand certain hardware attacks such as the timing attack and "glitching".

Glitching here is basically the process of triggering processor bugs by electronical means.

This is the way we used to be able to run unsigned code.

The reset glitch in a few words
=======================

We found that by sending a tiny reset pulse to the processor while it is slowed down does not reset it but instead changes the way the code runs, it seems it's very efficient at making bootloaders memcmp functions always return "no differences". memcmp is often used to check the next bootloader SHA hash against a stored one, allowing it to run if they are the same. So we can put a bootloader that would fail hash check in NAND, glitch the previous one and that bootloader will run, allowing almost any code to run.

Details for the fat hack
=================

On fats, the bootloader we glitch is CB, so we can run the CD we want.

cjak found that by asserting the CPU_PLL_BYPASS signal, the CPU clock is slowed down a lot, there's a test point on the motherboard that's a fraction of CPU speed, it's 200Mhz when the dash runs, 66.6Mhz when the console boots, and 520Khz when that signal is asserted.

So it goes like that:
 - We assert CPU_PLL_BYPASS around POST code 36 (hex).
 - We wait for POST 39 start (POST 39 is the memcmp between stored hash and image hash), and start a counter.
 - When that counter has reached a precise value (it's often around 62% of entire POST 39 length), we send a 100ns pulse on CPU_RESET.
 - We wait some time and then we deassert CPU_PLL_BYPASS.
 - The cpu speed goes back to normal, and with a bit of luck, instead of getting POST error AD, the boot process continues and CB runs our custom CD.

The NAND contains a zero-paired CB, our payload in a custom CD, and a modified SMC image.
A glitch being unreliable by nature, we use a modified SMC image that reboots infinitely (ie stock images reboot 5 times and then go RROD) until the console has booted properly.
In most cases, the glitch succeeds in less than 30 seconds from power on that way.

Details for the slim hack
==================

The bootloader we glitch is CB_A, so we can run the CB_B we want.

On slims, we weren't able to find a motherboard track for CPU_PLL_BYPASS.
Our first idea was to remove the 27Mhz master 360 crystal and generate our own clock instead but it was a difficult modification and it didn't yield good results.
We then looked for other ways to slow the CPU clock down and found that the HANA chip had configurable PLL registers for the 100Mhz clock that feeds CPU and GPU differential pairs.
Apparently those registers are written by the SMC through an I2C bus.
I2C bus can be freely accessed, it's even available on a header (J2C3).
So the HANA chip will now become our weapon of choice to slow the CPU down (sorry tmbinc, you can't always be right, it isn't boring and it does sit on an interesting bus ;)

So it goes like that:
 - We send an i2c command to the HANA to slow down the CPU at POST code D8 .
 - We wait for POST DA start (POST DA is the memcmp between stored hash and image hash), and start a counter.
 - When that counter has reached a precise value, we send a 20ns pulse on CPU_RESET.
 - We wait some time and then we send an i2c command to the HANA to restore regular CPU clock.
 - The cpu speed goes back to normal, and with a bit of luck, instead of getting POST error F2, the boot process continues and CB_A runs our custom CB_B.

When CB_B starts, DRAM isn't initialised so we chose to only apply a few patches to it so that it can run any CD, the patches are:
 - Always activate zero-paired mode, so that we can use a modified SMC image.
 - Don't decrypt CD, instead expect a plaintext CD in NAND.
 - Don't stop the boot process if CD hash isn't good.

CB_B is RC4 crypted, the key comes from the CPU key, so how do we patch CB_B without knowing the CPU key?
RC4 is basically:
  crypted = plaintext xor pseudo-random-keystream
So if we know plaintext and crypted, we can get the keystream, and with the keystream, we can encrypt our own code. It goes like that:
  guessed-pseudo-random-keystream = crypted xor plaintext
  new-crypted = guessed-pseudo-random-keystream xor plaintext-patch
You could think there's a chicken and egg problem, how did we get plaintext in the first place?
Easy: we had plaintext CBs from fat consoles, and we thought the first few bytes of code would be the same as the new CB_B, so we could encrypt a tiny piece of code to dump the CPU key and decrypt CB_B!

The NAND contains CB_A, a patched CB_B, our payload in a custom plaintext CD, and a modified SMC image.
The SMC image is modified to have infinite reboot, and to prevent it from periodically sending I2C commands while we send ours.

Now, maybe you haven't realised yet, but CB_A contains no checks on revocation fuses, so it's an unpatchable hack !

Caveats
======


Nothing is ever perfect, so there are a few caveats to that hack:
 - Even in the glitch we found is pretty reliable (25% success rate per try on average), it can take up to a few minutes to boot to unsigned code.
 - That success rate seems to depend on something like the hash of the modified bootloader we want to run (CD for fats and CB_B for slims).
 - It requires precise and fast hardware to be able to send the reset pulse.

Our current implementation
=====================

We used a Xilinx CoolRunner II CPLD (xc2c64a) board, because it's fast, precise, updatable, cheap and can work with 2 different voltage levels at the same time.
We use the 48Mhz standby clock from the 360 for the glitch counter. For the slim hack, the counter even runs at 96Mhz (incremented on rising and falling edges of clock)
The cpld code is written in VHDL.
We need it to be aware of the current POST code, our first implementations used the whole 8 bits POST port for this, but we are now able to detect the changes of only 1 POST bit, making wiring easier.

Conclusion
========

We tried not to include any MS copyrighted code in the released hack tools.
The purpose of this hack is to run Xell and other free software, I (GliGli) did NOT do it to promote piracy or anything related, I just want to be able to do whatever I want with the hardware I bought, including running my own native code on it.

Credits
=====

GliGli, Tiros: Reverse engineering and hack development.
cOz: Reverse engineering, beta testing.
Razkar, tuxuser: beta testing.
cjak, Redline99, SeventhSon, tmbinc, anyone I forgot... : Prior reverse engineering and/or hacking work on the 360.

 

This Hack as explaned by the author was not done to promote piracy or anything related, but only to launch free/open source code (libXenon homebrew, linux etc...).

 

We would appreciate if you could respect author's works and will, so if you don't feel concerned by this hack please be on your way. This kind of messages "it's useless", "backup launch needed" will be removed and your account banned.

Thanks for your understanding

 

FIND OUR FULL SLIM TUTORIAL HERE

 

Update :

FAT Tutorial available

 

  FIND OUR FULL FAT TUTORIAL HERE

 

Useful links :

 

- http://gligli360.blogspot.com/

- http://libxenon.org/
- http://sourceforge.n...rojects/free60/
- http://free60.git.so...itweb-index.cgi
- http://www.free60.org/Main_Page


  • Retour en haut

Posté 28 août 2011 - 14:08

#2
artik

artik

    \0/ Shake it baby ! \0/

  • Administrateur
  • 9 888 messages
  • Sexe:Male
La news a été rédigée en 2 versions, la version FR est ici : http://www.logic-sun...box-360-fr.html

Merci de rédiger les commentaires Français sur l'autre news.


heart.gifFlash de votre lecteur x360 (PARIS, RP, OU PAR LA POSTE) : heart.gif
tout lecteurs ! ** GARANTIE CONSERVEE ** samsung, hitachi, benq, liteOn - CLIQUEZ ICI
heart.gifcommentaires de gens qui ont fait appel à moi : heart.gif
http://cestvouslesbons.free.fr/gueux/page1.html
heart.gifLes meilleurs prix pour les abonnements au Xbox LIVE Gold : heart.gif
www.abonnement-xbox-live.com

  • Retour en haut

Posté 28 août 2011 - 14:45

#3
Mouchkipet

Mouchkipet

    Sunriseur elite

  • Technicien
  • 1 091 messages
  • Sexe:Male
  • Lieu:Menton
Great news ! Thanks ! :)
  • Retour en haut

Posté 28 août 2011 - 14:52

#4
Tourist

Tourist

    lvl 145, mort irl

  • Shining VIP
  • 3 880 messages
  • Sexe:Male
"thank you for the news"

if (KNOWLEDGE == 0) { read FAQ; use SEARCH; use GOOGLE; } else { use brain; make post; }

  :mario:

  • Retour en haut

Posté 28 août 2011 - 14:58

#5
Toxyn

Toxyn

    Poney Volant

  • Modérateur
  • 4 524 messages
  • Sexe:Male
France FTW, glitch for everybody :)

Hack de toutes vos consoles Xbox 360 et Wii sur Saint-Malo et sa région
Consoles Fat ou Slim - Flash, Hack JTAG, Reset Glitch Hack, pose Xkey

Modification des leds manettes et consoles
07.86.39.68.30
Plus de détails et commentaires sur mon annonce

  • Retour en haut

Posté 28 août 2011 - 15:45

#6
pucette

pucette

    Sunriseur avancé

  • Members
  • PipPipPip
  • 431 messages
GREAT !!

thank you gligli , and also to our beta tester Razkar :P




So you knew for a long time ! small secretive .... :pirate5:


cocorico .. this will not test this little Xilinx CoolRunner II CPLD

Modifié par pucette, 28 août 2011 - 15:57.

  • Retour en haut

Posté 28 août 2011 - 17:34

#7
trunkdu92

trunkdu92

    Modérateur en série

  • Modérateur
  • 1 174 messages
  • Sexe:Male
Thank new for the news but, now, the newsers must write the news in 2 versions ?
Modérateur LS
Hack PS3 / Wii / PSP
  • Retour en haut

Posté 28 août 2011 - 17:40

#8
Razkar

Razkar

    HomeBrew Lover

  • Shining VIP
  • 6 098 messages
  • Sexe:Male

Thank new for the news but, now, the newsers must write the news in 2 versions ?

This news is not like a new pong homebrew game for Dingoo console ... so no, it's only for HUGE news

rndd8.png

Homebrew-connection.org

Modification de console dans le 76

  • Retour en haut

Posté 28 août 2011 - 18:01

#9
ip-man

ip-man

    Sunriseur elite

  • Members
  • PipPipPipPip
  • 1 915 messages
  • Sexe:Male
  • Lieu:calais boulogne licques alembon coquelles etc ...
thank you biloute

[color ="#0000FF"] Je vous propose mes services pour le flash ou le montage jtag de votre console Boulogne, Calais et les alemtour. conctacter moi par [/color][color="#FF0000"]mail[/color]


[color="#FF0000"]mes feedbacks[/color]

  • Retour en haut

Posté 28 août 2011 - 18:52

#10
sdekaar

sdekaar

    Sunriseur elite

  • Members
  • PipPipPipPip
  • 1 080 messages
  • Sexe:Male
  • Lieu:burkinafaso
Image IPB
  • Retour en haut

Posté 28 août 2011 - 19:30

#11
Toxyn

Toxyn

    Poney Volant

  • Modérateur
  • 4 524 messages
  • Sexe:Male
Why is zoidberg dancing like a 8 bits ninja ? XD

Hack de toutes vos consoles Xbox 360 et Wii sur Saint-Malo et sa région
Consoles Fat ou Slim - Flash, Hack JTAG, Reset Glitch Hack, pose Xkey

Modification des leds manettes et consoles
07.86.39.68.30
Plus de détails et commentaires sur mon annonce

  • Retour en haut

Posté 28 août 2011 - 20:33

#12
gogeta76

gogeta76

    \0/ G0G€T@ \0/

  • Shining VIP
  • 3 366 messages
  • Sexe:Male
  • Lieu:76
  • Passions:Mon travail, mes consoles, mes PC, ma vie quoi ...
thanks ... For everything

Toute l'intelligence du monde n'est rien face à une idiotie à la Mode ....
Image IPB

  • Retour en haut

Posté 28 août 2011 - 21:22

#13
Smike

Smike

    Sunriseur

  • Members
  • PipPip
  • 17 messages
  • Sexe:Male
DAMN, this is an amazing hack!! Can't wait for this to get into my xbox ^^
  • Retour en haut

Posté 28 août 2011 - 21:47

#14
Rahow

Rahow

    Rétro-Gamer

  • Banned
  • PipPipPipPipPip
  • 12 845 messages
  • Sexe:Male
  • Lieu:59 valenciennes
thank you

Image IPB


Image IPB

  • Retour en haut

Posté 29 août 2011 - 00:03

#15
guiguixbox360

guiguixbox360

    Sunriseur avancé

  • Members
  • PipPipPip
  • 508 messages
  • Sexe:Male
  • Lieu:France
Thank you ! Good news :)
  • Retour en haut




1 utilisateur(s) li(sen)t ce sujet

0 invité(s) et 1 utilisateur(s) anonyme(s)