Hacking Contenthax - a Vulnerability in Wii U File System Verification

huma_dawii

Well-Known Member
Member
Joined
Apr 3, 2014
Messages
3,880
Trophies
2
Age
33
Location
Planet Earth
XP
4,269
Country
United States
I tried and got this: any ideas why?
 

Attachments

  • Untitled.png
    Untitled.png
    58.3 KB · Views: 242

bluke

Well-Known Member
Member
Joined
Feb 2, 2010
Messages
137
Trophies
1
XP
342
Country
So for coldboot I change system.xml to this for US is it alright ?
<default_title_id type="hexBinary" length="8">0005000010179B00</default_title_id>
 

NexoCube

Well-Known Member
Member
Joined
Nov 3, 2015
Messages
1,222
Trophies
0
Age
29
Location
France
XP
1,340
Country
France
So for coldboot I change system.xml to this for US is it alright ?
<default_title_id type="hexBinary" length="8">0005000010179B00</default_title_id>

Yo, don't try it if you haven't redNAND, and only try it on your redNAND !!!!!

I bricked my Wii u yesterday :/ (sysNAND)

Then if you're ok, then yeah the change on sys_xml is good

--------------------- MERGED ---------------------------

Its USB USA.

Go in sys_settings and exit then retry
 
  • Like
Reactions: loler55

subcon959

@!#?@!
Member
Joined
Dec 24, 2008
Messages
5,845
Trophies
4
XP
10,109
Country
United Kingdom
Rather than the small disclaimer, I recommend removing the part about coldboothax in the OP altogether. The information makes it sound like it's basically a guide to do it whereas it's far from proven to even work.
 
  • Like
Reactions: NexoCube

VinsCool

Persona Secretiva Felineus
OP
Global Moderator
Joined
Jan 7, 2014
Messages
14,600
Trophies
4
Location
Another World
Website
www.gbatemp.net
XP
25,207
Country
Canada
Rather than the small disclaimer, I recommend removing the part about coldboothax in the OP altogether. The information makes it sound like it's basically a guide to do it whereas it's far from proven to even work.
Good point. I'll delete it.
 
  • Like
Reactions: NexoCube

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,184
Trophies
2
XP
33,715
Country
Mexico
@VinsCool have you injected HBL into a DS VC already?
If so, could you tell me if we need to do the WUP Server thing every time we want to enter HBL from sysnand?
Or just by doing it once the custom HBL (DS VC injected) will stay there forever?
 

VinsCool

Persona Secretiva Felineus
OP
Global Moderator
Joined
Jan 7, 2014
Messages
14,600
Trophies
4
Location
Another World
Website
www.gbatemp.net
XP
25,207
Country
Canada
@VinsCool have you injected HBL into a DS VC already?
If so, could you tell me if we need to do the WUP Server thing every time we want to enter HBL from sysnand?
Or just by doing it once the custom HBL (DS VC injected) will stay there forever?
You do it once. Then you can boot HBL from the NDS game every time.
 
  • Like
Reactions: ShadowOne333

NexoCube

Well-Known Member
Member
Joined
Nov 3, 2015
Messages
1,222
Trophies
0
Age
29
Location
France
XP
1,340
Country
France
@VinsCool have you injected HBL into a DS VC already?
If so, could you tell me if we need to do the WUP Server thing every time we want to enter HBL from sysnand?
Or just by doing it once the custom HBL (DS VC injected) will stay there forever?

It will stay forever but you can still put it back (CDecrypt the Brain Age installation folder and upload the "new" rom.zip back)
 
  • Like
Reactions: ShadowOne333

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,184
Trophies
2
XP
33,715
Country
Mexico
You do it once. Then you can boot HBL from the NDS game every time.
Oh damn that's pretty neat! :)
I will wait a little bit to do it though, as I saw that HBL might be getting an update to accommodate for RPX files and bigger ELF sizes in the RetroArch Wii U thread, so until that's done, I will perform this to only do it once instead of every time there is an HBL update. :P
Is it time-consuming?
 

subcon959

@!#?@!
Member
Joined
Dec 24, 2008
Messages
5,845
Trophies
4
XP
10,109
Country
United Kingdom
Oh damn that's pretty neat! :)
I will wait a little bit to do it though, as I saw that HBL might be getting an update to accommodate for RPX files and bigger ELF sizes in the RetroArch Wii U thread, so until that's done, I will perform this to only do it once instead of every time there is an HBL update. :P
Is it time-consuming?
This is not injecting HBL itself, only a loader. So to update HBL you just put the new elf in your SD card as usual.
 
  • Like
Reactions: VinsCool

Rob Blou

Well-Known Member
Member
Joined
Jul 16, 2013
Messages
754
Trophies
0
Age
41
XP
1,508
Country
Canada
Just to make sure I understand, we can have a homebrew launcher on sysnand but we need iosuhax with WUP server to install it right? No need for rednand?
 

Maschell

Well-Known Member
Member
Joined
Jun 14, 2008
Messages
1,090
Trophies
2
XP
4,646
Country
Germany
Hmm, then mind clearing that up for me? :rolleyes:
You see, if I have said something wrong, you could have at least corrected me instead of making fun.
You started this whole thing with a "LMAO, we had cafiine OMG lolol" post, making fun of everyone else. I just asked if you know what you're talking about.
But just for you I'll explain the difference between a replace with cafiine and this exploit this system design flaw.

In cafiine, you hook directly into the FSRead (+other) functions. Instead of reading the file from the FS, you directly fill in the buffer with data from the network. (https://github.com/mariogamer2/Cafiine/blob/master/cafiine_v1.0/cafiine/client/main.c#L123).
This way the game can't even detect whats going on. Hash checks would be still passing (as the content on the sysnand would be taken for the hash, and this is not changed while using cafiine).

This "contenthax" decribes the fact, that the system has a huge design flaw. Content and meta folder are not checked on boot time. This allows us to manipulate them PERMANENT and directly on the nand. Thats a huge difference comparing to manipulate the readbuffer on the fly.

The reason why "contenthax" is a thing:
The WiiU does not store the hashes of all decrypted files (maybe for speed reason? hashing a full 25gb game at each boot just takes its time).
There are different .app types:
For unhashed files: In the TMD is the hash of the decrypted file (padded to the next fulll 32kb). The Wiiu can simply use that hash and check it on boot of an applications. These affects the whole code folder.
for hashes files: For these contents, the files are all in one big files, which is hashed and encrypted blockwise. The .app only contains the hash of each block, not the hash of each decrypted file.
The blocks are just checked on installation time (via 4 different hash levels) and seperated into the decrypted files via the FST. Instead of having a hash of a decrpyted file, the last hash level is stored in seperate file (.h3) and the hash of this file is stored in the tmd.
With this systen and in order to check hashed files in boot time, the wiiU would need to have the encrypted data stored, and basicly redecrypt it to compare the new decrypted files. This would be fucking slow and take at least the double amount of space.
They could've solved this by for example add hashes to the fst files. But as I mentioned earlier, this would still be slow because on each boot every file needs to be hashes (instead of just the content folder)

In addition:
for some reason the bootMovie.h264 and bootLogo.tga also checked, but in a different way. Not the hash in the tmd is checked, but there is a hardcoded one in the fw.img.

tl;dr:
Cafiine is temporarily manipulating the read buffer and even bypassing all possible checks. (Need already kernel exploit running)
The "contenthax"-flaw allows us to change sysnand files in a permanent way without beeing noticed. (Without have any exploit running.)
 
Last edited by Maschell,

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,184
Trophies
2
XP
33,715
Country
Mexico
This is not injecting HBL itself, only a loader. So to update HBL you just put the new elf in your SD card as usual.
Ah so it's some kind of forwarder for the HBL channel?
Interesting :D
Thanks for the explanation!
Then I might as well just do it today, if updating HBL is as simple as updating the ELF in the SD, then yeah haha
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Maximumbeans @ Maximumbeans: butte