####################################################################### Luigi Auriemma Application: Warrior Kings: Battles http://www.warriorkingsbattles.com Warrior Kings http://www.empireinteractive.com/games/product.asp?PID=CCD3E776-8DDB-4A4C-8A19-922D58804A24 Versions: Warrior Kings: Battles <= 1.23 Warrior Kings <= 1.3 Platforms: Windows Bugs: A] format string B] crash Exploitation: remote, versus server Date: 23 May 2005 Author: Luigi Auriemma e-mail: aluigi@autistici.org web: aluigi.org ####################################################################### 1) Introduction 2) Bugs 3) The Code 4) Fix ####################################################################### =============== 1) Introduction =============== Warrior Kings: Battles is a real-time strategy game developed by Black Cactus (http://www.blackcactus.co.uk) and released in March 2003. The game is published by Empire Interactive and Strategy First. Warrior Kings instead is published by Microids and Empire Interactive and has been released exactly one year before its successor. ####################################################################### ======= 2) Bugs ======= ---------------- A] format string ---------------- The game is affected by a format string bug in the function used to visualize the text on the screen. The best and simplest way to exploit the bug is through a malformed nickname. The only limitation is that the attacker cannot exploit the bug if the server is locked. -------- B] crash -------- A partial join packet causes the crash of the server due to the access to a NULL pointer. Only Warrior Kings Battles seems affected by this problem. ####################################################################### =========== 3) The Code =========== http://aluigi.org/poc/wkbbugs.zip http://aluigi.org/poc/warkingsfs.zip ####################################################################### ====== 4) Fix ====== No fix. No reply from the vendor. #######################################################################