UDPIH: USB Host Stack exploit + Recovery Menu

It's been a while without any major exploits in the Wii U scene, so I present to you:

USB Descriptor Parsing Is Hard (UDPIH)

An exploit for the Wii U's USB Host Stack. Pronounced like "mud pie" without the M.

The write-up can be found here!

What does this mean?​

Since the USB Stack is running before anything on the PPC side of the Wii U is booted, this allows unbricking things like CBHC bricks without any soldering!


Requirements​

  • A Wii U
  • One of the devices listed below
    Note: Any other linux device capable of USB device emulation should work as well.
    Prebuilt releases are only available for the Pico and Zero.
    I will add more devices below which are confirmed to work.

Supported devices:​

  • A Raspberry Pi Pico or Zero
  • A Nintendo Switch capable of running udpih_nxpayload

Instructions​

Pico​

  • Download the latest udpih.uf2 from the releases page.
  • Hold down the BOOTSEL button on the board and connect the Pico to your PC.
    Your PC will detect the Pi as a storage device.
  • Copy the .uf2 file to the Pico. It will disconnect after a few seconds.
The Pico is now flashed and can be used for udpih. Continue with "Booting the recovery_menu" below.

Raspberry Pi Zero (Linux)​

  • Install the required dependencies:
    Bash:
    sudo apt install build-essential raspberrypi-kernel-headers
  • Clone the repo:
  • Bash:
    git clone https://github.com/GaryOderNichts/udpih.git
    cd udpih
  • Download the latest arm_kernel.bin.h from the releases page and copy it to the arm_kernel directory.
  • Now build the kernel module:
  • Bash:
    cd linux
    make
  • You can now run sudo insmod udpih.ko to insert the kernel module into the kernel.
The Zero is now ready to be used for udpih.
Note that you'll need to insert the module again after rebooting the Zero. You will need 2 USB cables, one for powering the Zero and one which can be connected to the Wii U.

Continue with "Booting the recovery_menu" below.

Booting the recovery_menu​

warning
Important notes for this to work:
  • Make sure no other USB Devices are attached to the console.
  • Only use USB ports on the front of the console, the back ports will not work.
  • If your console has standby mode enabled, pull the power plug and turn it on from a full coldboot state.
  • Copy the latest release of the recovery_menu to the root of your FAT32 formatted SD Card.
  • Insert the SD Card into the console and power it on.
  • As soon as you see the "Wii U" logo on the TV or Gamepad plug in your Zero/Pico.
    This timing is important. If you're already in the menu, the exploit won't work..
  • After a few seconds you should be in the recovery menu.
So what's this recovery menu? The recovery menu allows you to fix several bricks:
screenshot

Wii U Recovery Menu

A simple recovery menu running on the IOSU for unbricking.

Options​

Set Coldboot Title
Allows changing the current title the console boots to.
Useful for unbricking CBHC bricks.
Possible options are:
  • Wii U Menu (JPN) - 00050010-10040000
  • Wii U Menu (USA) - 00050010-10040100
  • Wii U Menu (EUR) - 00050010-10040200
On non-retail systems the following additional options are available:
  • System Config Tool - 00050010-1F700500
  • DEVMENU (pre-2.09) - 00050010-1F7001FF
  • Kiosk Menu - 00050010-1FA81000
Dump Syslogs
Copies all system logs to a logs folder on the root of the SD Card.

Dump OTP + SEEPROM
Dumps the OTP and SEEPROM to otp.bin and seeprom.bin on the root of the SD Card.

Start wupserver
Starts wupserver which allows connecting to the console from a PC using wupclient.

Load Network Configuration
Loads a network configuration from the SD, and temporarily applies it to use wupserver.
The configurations will be loaded from a network.cfg file on the root of your SD.
For using the ethernet adapter, the file should look like this:
Code:
type=eth

For using wifi:
Code:
type=wifi
ssid=ssidhere
key=wifikeyhere
key_type=WPA2_PSK_AES

Pair Gamepad
Displays the Gamepad Pin and allows pairing a Gamepad to the system. Also bypasses any region checks while pairing.
The numeric values represent the following symbols: ♠ = 0, ♥ = 1, ♦ = 2, ♣ = 3.
Note that rebooting the system might be required to use the newly paired gamepad.

Install WUP
Installs a valid signed WUP from the install folder on the root of your SD Card.
Don't place the WUP into any subfolders.

Edit Parental Controls
Displays the current Parental Controls pin configuration.
Allows disabling Parental Controls.

Debug System Region
Fixes bricks caused by setting productArea and/or gameRegion to an invalid value. Symptoms include being unable to launch System Settings or other in-region titles.

System Information
Displays info about several parts of the system.
Including serial number, manufacturing date, console type, regions, memory devices...

Credits​

Special thanks to Maschell, rw-r-r-0644, QuarkTheAwesome, vgmoose, exjam, dimok789, and everyone else who contributed to the Wii U scene!
 
Last edited by GaryOderNichts,

tech3475

Well-Known Member
Member
Joined
Jun 12, 2009
Messages
3,683
Trophies
2
XP
6,088
Country
A RPI pico is $5 in an authorized store here. Why would I want to solder and do all the stuff to homebrew my switch and then do things a $5 chip can already do?

And why would I solder to avoid soldering? If I solder a microchip in my switch, I would just do the solderful method to unbrick Wii Us.

For you, obviously the Pico makes more sense.

However, there are many others who have access to either a Switch vulnerable to the solderless RCM based exploit or who did go through the effort of hardware modifying their Switch.

So should the exploit be ported, for these people it would potentially be a free alternative.
 
  • Like
Reactions: ber71 and Kopimist

Velocities

Member
Newcomer
Joined
Jun 7, 2022
Messages
8
Trophies
0
Age
34
Location
France
XP
59
Country
France
This is like the perfect timing, I've got a bricked Wii U 3 weeks ago from someone who messed around with ftpeverywhere and deleted a lot of system folders inside. The person don't remember what exactly was deleted, the Wii U refuses to boot ofc. But fortunately a full nand backup was made before tiramisu was installed.

So simple question is this possible to restore the full system (nand) with this tool because it seems completely different from CBHC Bricks ? :yayu:

Thank anyway and Gary deserves a lot of coffees !! :grog:
 

GaryOderNichts

Well-Known Member
OP
Member
Joined
Aug 9, 2018
Messages
792
Trophies
1
XP
5,512
Country
Germany
This is like the perfect timing, I've got a bricked Wii U 3 weeks ago from someone who messed around with ftpeverywhere and deleted a lot of system folders inside. The person don't remember what exactly was deleted, the Wii U refuses to boot ofc. But fortunately a full nand backup was made before tiramisu was installed.

So simple question is this possible to restore the full system (nand) with this tool because it seems completely different from CBHC Bricks ? :yayu:

Thank anyway and Gary deserves a lot of coffees !! :grog:
You cannot write a nand image directly to the console (yet?).
You can use wupserver and connect to it using wupclient, and upload individual files to the system.
It would be really useful to know what files they've deleted :P
 

Ondrashek06

Well-Known Member
Member
Joined
Dec 27, 2019
Messages
1,163
Trophies
0
XP
3,305
Country
Czech Republic
So simple question is this possible to restore the full system (nand) with this tool because it seems completely different from CBHC Bricks
I don't think this can recover a NAND backup... All I think it does is just setting the boot title back to the wii u menu instead of CBHC.
 

Ondrashek06

Well-Known Member
Member
Joined
Dec 27, 2019
Messages
1,163
Trophies
0
XP
3,305
Country
Czech Republic
You cannot write a nand image directly to the console (yet?).
You can use wupserver and connect to it using wupclient, and upload individual files to the system.
It would be really useful to know what files they've deleted :P
But can't you, like, mount the NAND and extract the individual files from it and then send them over?
 

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,828
Trophies
3
Location
Gaming Grotto
XP
29,862
Country
Poland
I’m kind of surprised this wasn’t discovered earlier if the USB stack is truly running before anything else - seems like a pretty obvious entry point to miss. In any case, this is very exciting and could mean recovery for many otherwise bricked systems destined for the scrap bin. Good job!
 

Digital_Cheese

Top G Unlike Tate
Member
Joined
Jun 7, 2021
Messages
210
Trophies
0
Location
your mom
Website
dc-blog.neocities.org
XP
958
Country
United States
Edit: I’m an idiot. This apparently isn’t brick protection really. You may go into ignoring this comment or read if you want to see the original.

Holy shit. This is amazing. Now that Wii U’s can be unbricked, we can experiment with a whole lot more now. And here I thought it couldn’t get much better after the Tirasuma release
 
Last edited by Digital_Cheese,
  • Like
Reactions: Kopimist

Deleted member 586536

Returned shipping and mailing
Member
Joined
Feb 26, 2022
Messages
1,050
Trophies
1
XP
2,024
Holy shit. This is amazing. Now that Wii U’s can be unbricked, we can experiment with a whole lot more now. And here I thought it couldn’t get much better after the Tirasuma release
though it's not a full unbrick, if ISOU is somehow bricked, that is extreme sol still. (without hardmodding) At least now most coldboot bricks are fixable, which is what has taken most wiiu's down
 

Maschell

Well-Known Member
Member
Joined
Jun 14, 2008
Messages
1,096
Trophies
2
XP
4,719
Country
Germany
Holy shit. This is amazing. Now that Wii U’s can be unbricked, we can experiment with a whole lot more now. And here I thought it couldn’t get much better after the Tirasuma release
NO. It's still very easy to brick the Wii U in a way it's NOT recoverable with this exploit. THIS IS NO BRICK PROTECTION.
 

dojafoja

life elevated
Member
Joined
Jan 2, 2014
Messages
696
Trophies
1
XP
2,609
Country
Once upon a time, I bricked a WiiU by screwing around with SSL certificates. I tossed it in the trash long ago and bought another one but just curious if a brick like that could be fixed with this method? I'm pretty sure I'm not the only one who bricked this way and many might still have their console lying around.
 

GaryOderNichts

Well-Known Member
OP
Member
Joined
Aug 9, 2018
Messages
792
Trophies
1
XP
5,512
Country
Germany
Once upon a time, I bricked a WiiU by screwing around with SSL certificates. I tossed it in the trash long ago and bought another one but just curious if a brick like that could be fixed with this method? I'm pretty sure I'm not the only one who bricked this way and many might still have their console lying around.
Yes, you could've also saved it with bluubomb.
Either use wupserver and upload the original certificate, or reinstall the SSL module using the "Install WUP" option.
 

BaamAlex

UDE GA NARU ZE!
Member
Joined
Jul 23, 2018
Messages
6,085
Trophies
1
Age
29
Location
Lampukistan
Website
hmpg.net
XP
6,212
Country
Germany
Now that Wii U’s can be unbricked
Unbricked is the wrong description for that i would say. It is more like a "rescue ring" (i guess?) which doesn't pull you out of the water (or in this case out of your situation when your wii u is fubar'd). And it's more interesting for cbhc-related "bricks". Not tiramisu. Theoretically, you can't really brick with tiramisu because the title can't be "accidentally deleted" because it is a system title....or eaten by a dog ;)

I mean, you can brick a tiramisu'd console when you mess up with ftpiiu everywhere for example. But it is very unlikely as long as you know what you're doing.

Speaking of which... @Maschell what happens with the console when you delete the title in which is tiramisu installed? Does your console brick?
 

Digital_Cheese

Top G Unlike Tate
Member
Joined
Jun 7, 2021
Messages
210
Trophies
0
Location
your mom
Website
dc-blog.neocities.org
XP
958
Country
United States
Unbricked is the wrong description for that i would say. It is more like a "rescue ring" (i guess?) which doesn't pull you out of the water (or in this case out of your situation when your wii u is fubar'd). And it's more interesting for cbhc-related "bricks". Not tiramisu. Theoretically, you can't really brick with tiramisu because the title can't be "accidentally deleted" because it is a system title....or eaten by a dog ;)

I mean, you can brick a tiramisu'd console when you mess up with ftpiiu everywhere for example. But it is very unlikely as long as you know what you're doing.

Speaking of which... @Maschell what happens with the console when you delete the title in which is tiramisu installed? Does your console brick?
O nice. As for the Tiramisu, I was saying that I am impressed we even got to that point and thought there couldn’t be much more to make it better
 

V10lator

Well-Known Member
Member
Joined
Apr 21, 2019
Messages
2,664
Trophies
1
Age
36
XP
5,633
Country
Germany
Speaking of which... @Maschell what happens with the console when you delete the title in which is tiramisu installed? Does your console brick?
When coldbooted: Yes. Exact same brick as with CBHC (system.xml pointing to a none-existing boot title). You can't deinstall Health & Safety through (except with FTP).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    NinStar @ NinStar: balls over