[MK8DX] Improper verification of Competition creation allows to create "Official" competitions
The game server did not validate the attribute list sent when creating a competition, so a player could mark their own tournament as official and recommended. This made it appear alongside Nintendo's official competitions, letting an attacker show a message to everyone browsing tournaments.
Originally disclosed on HackerOne
- Triaged in 5 days
- Fixed in 4 months
- Paid in 4 months
- Disclosed after 5 months
Summary by the program
.
Summary by the researcher
Introduction
This vulnerability impacts:
- Mario Kart 8 Deluxe on the Switch
- Mario Kart 8 on the WiiU
The vulnerability was fixed for Mario Kart 8 Deluxe the 7 December, 2022 with the release of v2.2 (or v851968 for the internal version) The vulnerability was fixed for Mario Kart 8 the 3 August, 2023 with the release of v4.2 (or v851968 for the internal version)
NOTE: The issue was fixed by removing the "recommended" tournament section
When looking for competitions (tournaments), the game will fetch the recommended/favorites from the game server It uses an attributes filter to know what competition is "Recommended"
Using the NEX server call MatchmakeExtensionProtocol::CreateCompetition, you can create a competition
It takes a SimpleSearchObject (it has an attributes field, a list of unsigned 32-bit integers), passing the correct attributes would make your competition appear under the "Recommended" section (right next to Nintendo official competitions)
Attribute at index 12 - Official
| Value | Description |
|---|---|
| 1 | Not official |
| 2 | Official |
Attribute at index 13 - Recommended
| Value | Description |
|---|---|
| 1 | Not recommended |
| 2 | Recommended |
The server wasn't validating the attribute list
The game was fetching up to 20 official competitions, and only 4 already existed So a malicious user could use up to 16 rows, for example to show a message to all the players browsing the tournaments
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server trusted client-supplied attribute values that mark a competition as official and recommended instead of setting them server-side.
Impact
A malicious user could occupy up to 16 of the 20 official slots to display a message to all players browsing tournaments.
What the attacker needed
A copy of the game; ability to send custom server calls
The fix
It was fixed by removing the recommended tournament section from the game.
How it was found
- Call the competition creation server method with a search object containing an attribute list.
- Set the attribute at index 12 to the value meaning official.
- Set the attribute at index 13 to the value meaning recommended.
- The competition then appears in the recommended section next to official ones.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In this game, players can create their own tournaments. The game decides which tournaments to show as 'official' by reading a set of numbers the player's console sends. The server trusted those numbers without checking them, so anyone could pretend their tournament was official and get it shown to other players.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.