Skip to content
Memory corruption Write-up Advanced

Hacking TMNF: Part 1 Fuzzing the game server

The Trackmania Nations Forever dedicated server processes XML-RPC calls and contains multiple format string vulnerabilities in its handling of string values. An attacker who can reach the RPC port could send crafted XML-RPC messages to trigger these bugs, potentially leading to crashes or memory corruption.

- Follow

Published on blog.bricked.tech

A while back I started getting interested in fuzzing. I had followed some basic fuzzing courses at university, but those didn’t go much further than taking a FOSS project and throwing AFL++ at it.

-, on blog.bricked.tech

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server passes user-controlled strings directly as format strings to printf-style functions without proper sanitisation.

Impact

An attacker could crash the server or potentially execute arbitrary code, though the text does not confirm exploitability beyond crashes.

What the attacker needed

Network access to the RPC port

How it was found

  1. Start the Trackmania server with the /nodaemon and /lan flags.
  2. Send an XML-RPC message to the server to trigger the RPC handler.
  3. Use a fuzzer with a grammar to generate valid XML-RPC messages containing format string specifiers.
  4. Observe crashes caused by format string bugs.

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 write-up has not been written yet. The Original tab links to the source.

The game server accepts commands over the network in a format called XML-RPC. The server software has a bug where it treats user-supplied text as a formatting instruction, which can crash it or worse. This is called a format string bug.

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 -

View all

18 more disclosed reports, best first.

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.