Skip to content
Path traversal Write-up Advanced

Exploiting Anno 1404

The game's client fails to validate the filename in a save-file transfer, allowing a path traversal that writes arbitrary files. Combined with an unchecked relocation table in the GR2 model format, an attacker can achieve arbitrary code execution when a victim joins a malicious multiplayer game.

Thomas Dubier Follow

Published on synacktiv.com

Rédigé par Thomas Dubier - 16/12/2025 - dans Exploit - Téléchargement

Thomas Dubier, on synacktiv.com

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 client does not sanitise the filename in the save-file transfer, and the GR2 relocation table entries are not validated, leading to out-of-bounds read and write.

Impact

An attacker could execute arbitrary code on a victim's machine when the victim joins a malicious multiplayer game, but the exploit requires the victim to join and may be limited by heap randomisation.

What the attacker needed

Victim joins a malicious multiplayer game; attacker controls the game host; game version v2.01.5010

How it was found

  1. Set up a multiplayer game where the host sends a save file to the client.
  2. Modify the save file name to include path traversal sequences.
  3. Observe that the file is written outside the intended save directory.
  4. Craft a GR2 file with many sections to control heap layout.
  5. Use the relocation table to overwrite a function pointer and execute code.

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.

When you join a multiplayer game, the host sends you a save file. The game doesn't check the file name, so a malicious host can make the game write a file anywhere on your computer. Separately, the game's 3D model loader has a bug that lets a crafted model overwrite memory, and together these allow an attacker to run their own code on your machine.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by Thomas Dubier

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.