[Xenoblade Chronicles X: Definitive Edition] Unrestricted RPCs allow DoS and writing arbitrary flags remotely
The game's peer-to-peer mission protocol accepted RPC commands whose inputs were used to index arrays without bounds checks, and one RPC allowed writing arbitrary save-file flags to other players. A malicious player with a modified console could corrupt memory to cause a denial of service or silently alter another player's save progress.
- Triaged in 27 hours
- Fixed in 30 days
- Paid in 25 days
- Disclosed after 45 days
Summary by the program
Summary by the researcher
Components affected:
- Game software (Xenoblade Chronicles X: Definitive Edition) on Nintendo Switch
The vulnerability was fixed in the 1.0.2 version of the game, released globally on Apr 23, 2025.
Description
As part of its peer-to-peer protocol, the game allows peers in a mission to send RPC (remote procedure call) commands to each other. There were a couple issues with the implementation:
- Many RPCs would accept inputs that would later be used to index arrays, but in many cases those bounds were not checked, allowing an attacker to write arbitrary memory remotely.
- An unrestricted, and mostly unused, RPC would allow writing arbitrary flags to another player's save file (essentially editing their save file). This RPC would not restrict the range of allowed flags to those that the game exposes to multiplayer features in normal operation.
Impact
A malicious user with a modified console could:
- Write arbitrary flags in save files of other players in the same peer-to-peer mission (e.g. resetting their story progress), in a way that would not be immediately visible to the victim, potentially leading to the loss of a backup save.
- Cause denial of service to other users in the same peer-to-peer mission.
The attacker and the victim(s) would have to be in the same peer-to-peer online mission, connecting online or to the same group is not sufficient.
Context
Xenoblade Chronicles X: Definitive Edition is a Nintendo Switch game published worldwide by Nintendo. The affected asset, as scoped by the program, is Nintendo Switch applications for which Nintendo is the publisher worldwide. The feature at the centre of this report is the game's peer-to-peer protocol: players who take part in the same online mission can send RPC (remote procedure call) commands to one another. The game allows peers in a mission to send RPC commands to each other.
The researcher reported two distinct problems in that RPC handling. The first is that many RPCs accept inputs which are later used to index arrays, and in many cases the bounds of those arrays are not checked, which allows an attacker to write arbitrary memory remotely. The second is that one unrestricted, and mostly unused, RPC allows writing arbitrary flags to another player's save file, effectively editing that save. That RPC does not restrict the range of allowed flags to the ones the game exposes to multiplayer features in normal operation.
The vulnerability was fixed in version 1.0.2 of the game, released globally on 23 April 2025. The report was disclosed on 15 May 2025, carries a critical severity with a CVSS score of 9.3, and is classified as Resource Injection.
Setup
The report does not describe any accounts, tooling or test environment. What it does state is the precondition for both issues: the attacker and the victim or victims must be in the same peer-to-peer online mission. Connecting online, or being in the same group, is explicitly not sufficient. The attacker is described as a malicious user with a modified console.
Finding it
The researcher analysed how the game's peer-to-peer protocol handles the RPC commands peers exchange during a mission. Two patterns stood out as wrong:
- Many RPCs take inputs that are later used as array indices, and in many cases those bounds are not checked. An input used as an index without a bounds check in many cases gives a remote peer a way to write outside the intended structure.
- One RPC is unrestricted and mostly unused, and it lets a peer write arbitrary flags into another player's save file. The RPC does not limit the flags to the set the game exposes to multiplayer features in normal operation, so the writable range is far wider than the feature needs.
Exploitation
The report describes the exploitation at the level of what the RPCs allow rather than giving individual packets, so the steps below follow its description.
Step 1: Join the same peer-to-peer mission as the victim
The attacker must be in the same peer-to-peer online mission as the target or targets. Being online at the same time, or being in the same group, does not meet the condition; the shared mission is what puts the peers in a position to exchange RPCs.
Step 2: Send RPCs with out-of-bounds inputs
Using a modified console, the attacker sends RPC commands whose inputs are later used to index arrays. Because the bounds are not checked in many cases, those inputs let the attacker write arbitrary memory on the victim's console remotely. The report does not give the specific RPC names, payload layouts or offsets.
Step 3: Write arbitrary flags to the victim's save file
The attacker uses the unrestricted, mostly unused RPC to write arbitrary flags into the victim's save file. Since the RPC does not restrict the allowed flags to those the game exposes to multiplayer features in normal operation, the attacker is not limited to the flags that multiplayer would legitimately touch. The effect is essentially editing the victim's save file.
Step 4: Deny service to other players
A malicious user with a modified console could cause denial of service to other users in the same peer-to-peer mission.
Root cause
The issues are unchecked array bounds in many RPCs and one RPC that does not restrict the flags it accepts. Inputs received from a peer are used to index arrays without bounds checks in many RPCs, so a remote peer controls an index that the code assumes is in range. Separately, one RPC accepts flag identifiers without restricting them to the set that multiplayer features are meant to expose, so a peer can write flags that the feature was never designed to let another player change.
Impact
A malicious user with a modified console, in the same peer-to-peer mission as the victim, could:
- Write arbitrary flags in the save files of other players in that mission, for example resetting their story progress. The change would not be immediately visible to the victim, which could lead to the loss of a backup save.
- Cause denial of service to other users in the same peer-to-peer mission.
- Write arbitrary memory remotely through the unchecked array indexing.
The conditions are strict: attacker and victim must share a peer-to-peer online mission, and the attacker needs a modified console. The report does not quantify how many players could be affected in a single mission.
Fix
Variants to test
- Other RPCs that take indices. The report says many RPCs use inputs as array indices without bounds checks. On a similar peer-to-peer title, enumerate every RPC field that ends up as an index and try values at and beyond the array size; a positive result is a crash or a memory write that the peer should not be able to cause.
- RPCs that write persistent state. Look for RPCs that touch save data, flags or progression and check whether the accepted range is limited to what the multiplayer feature needs. A positive result is a flag change that survives the session and that normal multiplayer would never set.
- Mostly unused RPCs. The flag-writing RPC here was described as mostly unused, which is often where restrictions are missing. A positive result is an RPC that accepts input the game's own client never sends.
- Scope of the precondition. Test whether the issues require a shared mission or whether a lesser relationship between peers is enough; the report states that connecting online or sharing a group is not sufficient for this game, so verify the equivalent boundary on any other target.
Hunting notes
This class of bug hides in peer-to-peer and session-based multiplayer protocols where each client processes messages from other clients, especially in native game code where array indexing and flag tables are common. During recon, the signals are a protocol that lets peers send commands to each other directly, RPCs that are defined but rarely used by the normal client, and any RPC whose parameters map onto save data or progression state. The report shows impact by describing concrete consequences for other players in the same mission: remote memory writes, save-file edits such as resetting story progress that the victim would not immediately notice, and denial of service. Framing the precondition precisely, that attacker and victim must share a peer-to-peer mission and that merely being online or in the same group is not enough, keeps the impact claim accurate.
What happened, in plain words
Xenoblade Chronicles X: Definitive Edition is a video game for the Nintendo Switch console, published worldwide by Nintendo. When players take part in an online mission together, they use the game's peer-to-peer protocol. This is called a peer-to-peer setup: every player's console is a "peer", and Peers in a mission can send RPC commands to each other. Those commands are called RPCs, short for remote procedure calls. In everyday terms, an RPC is like one player's console phoning another and saying "run this little instruction for me".
The researcher found two problems in the way the game handles those incoming instructions. First, many of the instructions take a number from the sender and later use that number to pick a slot in a list held in the console's memory. In many cases the game does not check whether the number fits the list, so a malicious player can send a number that points outside the list and write arbitrary memory remotely. Second, one instruction, which is barely used in normal play, lets a peer write arbitrary "flags" into another player's save file. A flag is simply an on/off marker the game stores to remember something, such as whether a story event has happened. Writing arbitrary flags is effectively editing someone else's save file.
A malicious player with a modified console, in the same online mission, could change another player's save flags without it being immediately visible, or cause denial of service. The problem was fixed in version 1.0.2 of the game, released globally on 23 April 2025. The report was disclosed on 15 May 2025, is rated critical with a CVSS score of 9.3, and is classified as Resource Injection.
Context
Xenoblade Chronicles X: Definitive Edition is a Nintendo Switch game published worldwide by Nintendo. The affected asset, as scoped by the program, is Nintendo Switch applications for which Nintendo is the publisher worldwide. In plain terms, the bug bounty program covers games Nintendo publishes around the world, and this game is one of them.
The feature at the centre of the report is the game's peer-to-peer protocol. When several players join the same online mission, their consoles exchange messages directly with one another. Among those messages are RPC commands, remote procedure calls. An RPC is a request from one machine asking another machine to carry out a specific action. A useful comparison is a restaurant: instead of walking into the kitchen yourself, you hand a written order to the waiter, and the kitchen carries it out. Here, one player's console hands an order to another player's console, and that console carries it out. The game allows peers in a mission to send RPC commands to each other.
The researcher reported two distinct problems in that RPC handling:
- Many RPCs accept inputs which are later used to index arrays, and in many cases the bounds of those arrays are not checked. An array is an ordered list of items stored in memory, and an index is the position number used to reach one item. If the game trusts a position number from the network without checking it against the length of the list, a sender can point past the end of the list and write into memory that belongs to something else. This allows an attacker to write arbitrary memory remotely.
- One unrestricted, and mostly unused, RPC allows writing arbitrary flags to another player's save file, effectively editing that save. A flag is a small marker the game keeps to record a fact, for example that a particular story event has occurred. That RPC does not restrict the range of allowed flags to the ones the game exposes to multiplayer features in normal operation, so a peer can change markers that multiplayer was never meant to touch.
The vulnerability was fixed in version 1.0.2 of the game, released globally on 23 April 2025. The report was disclosed on 15 May 2025, carries a critical severity with a CVSS score of 9.3, and is classified as Resource Injection. CVSS is a standard scoring system for the seriousness of a security flaw, running from 0 to 10, where higher is worse.
Setup
The report does not describe any accounts, tooling or test environment. What it does state is the precondition for both issues: the attacker and the victim or victims must be in the same peer-to-peer online mission. Connecting online, or being in the same group, is explicitly not sufficient. Think of it this way: standing in the same shopping centre as someone is not the same as being in the same private meeting room with them. Only the shared mission puts the two consoles in a position to exchange RPCs.
The attacker is described as a malicious user with a modified console. A modified console is one whose software has been altered, which is what allows the attacker to craft and send malformed RPCs in the first place.
Finding it
The researcher analysed how the game's peer-to-peer protocol handles the RPC commands peers exchange during a mission. Two patterns stood out as wrong:
- Many RPCs take inputs that are later used as array indices, and in many cases those bounds are not checked. An input used as an index without a bounds check in many cases gives a remote peer a way to write outside the intended structure. Picture a hotel clerk who accepts any room number a guest gives and opens the matching door without checking that the number exists on that floor: a guest can ask for a door that was never meant to be opened.
- One RPC is unrestricted and mostly unused, and it lets a peer write arbitrary flags into another player's save file. The RPC does not limit the flags to the set the game exposes to multiplayer features in normal operation, so the writable range is far wider than the feature needs. A comparison: a form at a counter is supposed to let you tick a handful of boxes about your own booking, but the form actually accepts any box number at all, including boxes about other people's bookings.
A trust boundary is the line between data you control and data you must verify. Data from your own program can usually be trusted; data from the network, especially from another player, cannot.
Exploitation
The report describes the exploitation at the level of what the RPCs allow rather than giving individual packets, so the steps below follow its description. A packet is a single unit of data sent over a network, like one envelope in the post.
Step 1: Join the same peer-to-peer mission as the victim
The attacker must be in the same peer-to-peer online mission as the target or targets. Being online at the same time, or being in the same group, does not meet the condition; the shared mission is what puts the peers in a position to exchange RPCs.
Step 2: Send RPCs with out-of-bounds inputs
Using a modified console, the attacker sends RPC commands whose inputs are later used to index arrays. Because the bounds are not checked in many cases, those inputs let the attacker write arbitrary memory on the victim's console remotely. "Out-of-bounds" simply means outside the allowed range, like a page number beyond the end of a book. "Arbitrary memory" means memory outside the intended structure can be written. The report does not give the specific RPC names, payload layouts or offsets.
Step 3: Write arbitrary flags to the victim's save file
The attacker uses the unrestricted, mostly unused RPC to write arbitrary flags into the victim's save file. Since the RPC does not restrict the allowed flags to those the game exposes to multiplayer features in normal operation, the attacker is not limited to the flags that multiplayer would legitimately touch. The effect is essentially editing the victim's save file. A save file is the stored record of a player's progress, so changing its flags can change what the game believes the player has or has not done.
Step 4: Deny service to other players
A malicious user with a modified console could cause denial of service to other users in the same peer-to-peer mission. Denial of service means making a service unusable for its normal users, in this case by crashing or disrupting their game. A "primitive" here means a basic capability the attacker has gained, which can then be used for more than one purpose.
Root cause
The issues are unchecked array bounds in many RPCs and one RPC that does not restrict the flags it accepts. Inputs received from a peer are used to index arrays without bounds checks in many RPCs, so a remote peer controls an index that the code assumes is in range. Validation means checking that incoming data is sensible before acting on it, for example confirming that a position number is not larger than the list. Separately, one RPC accepts flag identifiers without restricting them to the set that multiplayer features are meant to expose, so a peer can write flags that the feature was never designed to let another player change.
Impact
A malicious user with a modified console, in the same peer-to-peer mission as the victim, could:
- Write arbitrary flags in the save files of other players in that mission, for example resetting their story progress. The change would not be immediately visible to the victim, which could lead to the loss of a backup save. A backup save is a second copy of the save data kept in case the main one is damaged.
- Cause denial of service to other users in the same peer-to-peer mission.
- Write arbitrary memory remotely through the unchecked array indexing.
The conditions are strict: attacker and victim must share a peer-to-peer online mission, and the attacker needs a modified console. The report does not quantify how many players could be affected in a single mission.
Fix
Variants to test
These are ideas for looking for similar bugs elsewhere, written for someone learning how researchers think about a finding.
- Other RPCs that take indices. The report says many RPCs use inputs as array indices without bounds checks. On a similar peer-to-peer title, enumerate every RPC field that ends up as an index and try values at and beyond the array size; a positive result is a crash or a memory write that the peer should not be able to cause. "Enumerate" means list them all systematically, one by one.
- RPCs that write persistent state. Look for RPCs that touch save data, flags or progression and check whether the accepted range is limited to what the multiplayer feature needs. A positive result is a flag change that survives the session and that normal multiplayer would never set. "Persistent" means it lasts after the session ends, unlike something that disappears when the game is closed.
- Mostly unused RPCs. The flag-writing RPC here was described as mostly unused, which is often where restrictions are missing. A positive result is an RPC that accepts input the game's own client never sends. The reasoning is that code rarely exercised in normal play tends to receive less scrutiny.
- Scope of the precondition. Test whether the issues require a shared mission or whether a lesser relationship between peers is enough; the report states that connecting online or sharing a group is not sufficient for this game, so verify the equivalent boundary on any other target. "Precondition" means a condition that must be true before the attack works.
Hunting notes
This class of bug hides in peer-to-peer and session-based multiplayer protocols where each client processes messages from other clients, especially in native game code where array indexing and flag tables are common. "Native" here means code compiled to run directly on the console rather than inside a browser or script engine. During recon, the signals are a protocol that lets peers send commands to each other directly, RPCs that are defined but rarely used by the normal client, and any RPC whose parameters map onto save data or progression state. Recon means the early exploration phase where you map out how something works before testing it.
The report shows impact by describing concrete consequences for other players in the same mission: remote memory writes, save-file edits such as resetting story progress that the victim would not immediately notice, and denial of service. Framing the precondition precisely, that attacker and victim must share a peer-to-peer mission and that merely being online or in the same group is not enough, keeps the impact claim accurate. In other words, a report is stronger when it says exactly what an attacker needs, because a vague claim is easy to doubt.
Glossary
- API: a defined way for one piece of software to ask another to do something, like a menu of requests a program accepts.
- Array: an ordered list of items stored in memory, where each item is reached by its position number.
- Backup save: a second copy of a player's save data kept in case the main copy is damaged or lost.
- Bounds check: a check that a position number falls inside the valid range of a list before it is used.
- Client: a program or device that connects to and exchanges data with another, here a player's console.
- Console: a dedicated games machine, in this case a Nintendo Switch.
- Cookie or token: a small piece of data a service gives a client so it can recognise it later; not used in this report, but common in web security.
- Critical: the highest severity rating in many bug bounty schemes, meaning the flaw should be fixed urgently.
- CVSS: a standard 0 to 10 score for the seriousness of a security flaw, where higher is worse.
- Denial of service: making a service or game unusable for its normal users, for example by crashing it.
- Enumerate: to list items one by one in a systematic way.
- Exploitation: the act of actually using a vulnerability to cause an effect.
- Flag: a small on/off marker a game stores to remember a fact, such as whether a story event has happened.
- Index: the position number used to reach one item in an array.
- Memory corruption: a flaw where a program writes data outside the area it was supposed to use, changing other data or behaviour.
- Modified console: a games console whose software has been altered, allowing it to run custom code and send crafted messages.
- Native code: code compiled to run directly on the machine, rather than inside a browser or script engine.
- Out-of-bounds: outside the allowed range, such as a position number past the end of a list.
- Packet: a single unit of data sent across a network.
- Peer: one participant in a network where machines talk to each other directly rather than through a central server.
- Peer-to-peer: a network arrangement where each participant connects directly to the others instead of to a central server.
- Persistent state: data that survives after a session ends, such as save data.
- Precondition: a condition that must be true before an attack works.
- Primitive: a basic capability gained by an attacker, which can then be used for one or more purposes.
- Protocol: an agreed set of rules for how two machines exchange data.
- Recon: the early exploration phase of a security test, mapping out how a system works.
- Resource Injection: a vulnerability class where untrusted input is used to control a resource, such as an index or an identifier, without proper restriction.
- RPC (remote procedure call): a request from one machine asking another machine to carry out a specific action.
- Save file: the stored record of a player's progress in a game.
- Severity: a rating of how serious a flaw is.
- Trust boundary: the line between data you control and data you must verify before using.
- Validation: checking that incoming data is sensible and allowed before acting on it.
- Vulnerability: a weakness in software that can be used to cause harm or unwanted behaviour.