Difference between revisions of "Exploits"
(→A20# hack) |
(I've looked at the rom images myself now, the original address in andys post most be correct [BUT the attack should not work?]. investigating) |
||
Line 34: | Line 34: | ||
TEA, which is only used in MCPX 1.1, can not be used as a hash in Davies-Meyer mode [http://www.tayloredge.com/reference/Mathematics/VRAndem.pdf][https://www.schneier.com/academic/paperfiles/paper-key-schedule.pdf]. And yet, Microsoft used it that way. | TEA, which is only used in MCPX 1.1, can not be used as a hash in Davies-Meyer mode [http://www.tayloredge.com/reference/Mathematics/VRAndem.pdf][https://www.schneier.com/academic/paperfiles/paper-key-schedule.pdf]. And yet, Microsoft used it that way. | ||
− | The original attack uses the 5 bytes at | + | The original attack uses the 5 bytes at 0xffffd400 which are <code>E9 83 01 00 00</code>. |
This is <code>jmp 0xffffd588</code> (which is a jump within the flash region). | This is <code>jmp 0xffffd588</code> (which is a jump within the flash region). | ||
− | When flipping the highest bit of the operand DWORD (at | + | When flipping the highest bit of the operand DWORD (at 0xffffd404) this will become: <code>E9 83 01 00 80</code>. |
This is <code>jmp 0x7fd588</code> (which is a jump into the RAM region). | This is <code>jmp 0x7fd588</code> (which is a jump into the RAM region). | ||
− | For the attack to be succssful, the highest bit in the DWORD at | + | For the attack to be succssful, the highest bit in the DWORD at 0xffffd408 also has to be flipped. |
The RAM can be controlled using the x-code command to write to RAM. | The RAM can be controlled using the x-code command to write to RAM. |
Revision as of 19:04, 18 June 2017
Contents
MCPX
LDT (Hypertransport) bus tap
See bunnie's adventures hacking the Xbox.
Visor hack
Exploits incorrect rollover of memory address.
MIST hack
Exploits error in xcode interpreter security check. There are at least 2 variations of this hack.
A20M# hack
Uses a legacy x86 feature.
RC4 attack (MCPX 1.0 only)
Microsoft uses the last bytes of the decrypted 2BL to check the integrity of the 2BL. However, RC4 does not have any feedback which means changes in the 2BL will not reflect in the last couple of bytes which are checked. As such, the 2BL can be freely modified, as long as the last couple of bytes still match what the MCPX ROM expects.
This can be used to take over the 2BL entry point.
When the attack happens, the MCPX ROM is still visible, making this a very powerful attack.
This attack is described by Michael Steil in his Google talk.
TEA attack (MCPX 1.1 only)
TEA, which is only used in MCPX 1.1, can not be used as a hash in Davies-Meyer mode [1][2]. And yet, Microsoft used it that way.
The original attack uses the 5 bytes at 0xffffd400 which are E9 83 01 00 00
.
This is jmp 0xffffd588
(which is a jump within the flash region).
When flipping the highest bit of the operand DWORD (at 0xffffd404) this will become: E9 83 01 00 80
.
This is jmp 0x7fd588
(which is a jump into the RAM region).
For the attack to be succssful, the highest bit in the DWORD at 0xffffd408 also has to be flipped.
The RAM can be controlled using the x-code command to write to RAM. So the idea is to copy a program from Flash to RAM using x-codes. Then the FBL / 2BL is modified to jump into said RAM region by flipping a bit of a jump operand (as described above). The 2 bit flips will not change the hash of FBL / 2BL as TEA is broken.
As such, the FBL verification will succeed, the MCPX ROM will hand control to the FBL which will then jump into the attacker controlled RAM.
When the attack happens, the MCPX ROM is still visible, making this a very powerful attack.
The TEA algorithm and exploit are also described in more detail in Bunnnies book (Page 109 and Page 142).