#######################################################################
Luigi Auriemma
Application: SÖLDNER - Secret Wars
http://www.secretwars.net
Versions: <= 30830
Platforms: Windows
Bugs: A] silent socket termination
B] in-game format string
C] in-game cross site scripting versus admin
Exploitation: remote, versus server (B and C are in-game bugs)
Date: 04 Jan 2005
Author: Luigi Auriemma
e-mail: [email protected]
web: http://aluigi.altervista.org
#######################################################################
1) Introduction
2) Bugs
3) The Code
4) Fix
#######################################################################
SÖLDNER is a tactical military game developed by Wings Simulations
(http://www.wingssimulations.com) and has been released in May 2004.
#######################################################################
The bug happens when the server receives an UDP packet of 1401 or more
bytes causing the immediate termination of the listening thread for a
bad handling of the "message too long" socket error.
The termination of the socket is silent (no warning or messages) so
the admin cannot easily understand what is happened.
An attacker can crash or execute remote code on the game server simply
sending a message containing the format arguments (like the classical
%n%n%n).
The SÖLDNER server has a nice web interface (port 7890) useful for the
remote administration of the servers.
This web interface contains also a screen (chat) in which are shown all
the server logs included the messages exchanged by the users that are
not filtered and so an attacker can execute HTML or Javascript code in
the admin's browser.
#######################################################################
A] http://aluigi.altervista.org/poc/soldnersock.zip
B] %n%n%n
C] <script>alert("hello");</script>
#######################################################################
No fix.
No reply from the developers.
#######################################################################
Luigi Auriemma
http://aluigi.altervista.org