Skip to content
Memory corruption Disclosed report Intermediate

[Xenoblade Chronicles X: Definitive Edition] Buffer overflow in string escape function, multiplayer DoS

The game's string escape function duplicated backslash and percent characters without checking buffer length, allowing a 64-byte buffer overflow when displaying other players' names. An attacker with a modified save could send a crafted name to cause a denial of service to other players in the same peer-to-peer online mission.

roccodev Follow

Originally disclosed on HackerOne

High 8.2 View original
  • Triaged in 5 days
  • Fixed in 40 days
  • Paid in 36 days
  • Disclosed after 55 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

When displaying other players's profile/avatar name or other user-controlled input received through online multiplayer, the game would perform sanitization by escaping '' and '%' (backslash and percent) characters by duplicating them. However, when duplicating them it would fail to check the buffer length and could end up overflowing it.

The buffer length is 64 bytes, and the only time the game tries to display a 64-byte string received by other players appeared to be the player's name tag in peer-to-peer online missions. Fortunately, other places like player previews, leaderboards, and other easily interactable online features would use a 32-byte buffer, which, even when all 31 characters are duplicated, would still fit in a 64-byte buffer.

Impact

A malicious user with a modified save (or other means to send arbitrary data to other players) could exploit the vulnerability to cause denial of service to other users using specially crafted names. The attacker and the victim would have to be in the same peer-to-peer online mission, connecting online or to the same group is not sufficient.

The original report as published on HackerOne, by roccodev. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Impact

A malicious user could cause denial of service to other players in the same peer-to-peer online mission by using a specially crafted name, but only if both are in the same mission.

What the attacker needed

Modified save or ability to send arbitrary data; attacker and victim in same peer-to-peer mission

The fix

The vulnerability was fixed in version 1.0.2 of the game.

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.

When the game shows another player's name, it tries to make the name safe by doubling certain characters like backslash and percent. But it does not check if the name becomes too long for the space reserved for it, so a very long name can overflow that space and crash the game for other players.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by roccodev

View all

2 more disclosed reports, best first.

More from Nintendo

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.