what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

cod4vamap.txt

cod4vamap.txt
Posted Jun 23, 2008
Authored by Luigi Auriemma | Site aluigi.org

Call of Duty 4: Modern Warfare versions 1.6 and below suffer from denial of service vulnerabilities.

tags | advisory, denial of service, vulnerability
SHA-256 | 29c35aad68057eb484ebfa7f26b5ae95f181474c15fc18c22af0ccd83136a2d3

cod4vamap.txt

Change Mirror Download

#######################################################################

Luigi Auriemma

Application: Call of Duty 4: Modern Warfare
http://www.callofduty.com
Versions: <= 1.6
Platforms: Windows (tested) and Linux
Bugs: A] "Attempted to overrun string in call to va()" DoS
B] "callvote map" Denial of Service
Exploitation: remote, versus server (in-game)
Date: 22 Jun 2008
Author: Luigi Auriemma
e-mail: aluigi@autistici.org
web: aluigi.org


#######################################################################


1) Introduction
2) Bugs
3) The Code
4) Fix


#######################################################################

===============
1) Introduction
===============


Call of Duty 4 (CoD4) is the most recent and played game of the homonym
series created by Infinity Ward (http://www.infinityward.com) with over
15000 internet servers.


#######################################################################

=======
2) Bugs
=======

----------------------------------------------------
A] "Attempted to overrun string in call to va()" DoS
----------------------------------------------------

va() is a function of the Quake 3 engine used to quickly build strings
using snprintf and a static destination buffer.
If the generated string is longer than the available buffer the server
shows an "Attempted to overrun string in call to va()" error and
terminates.
>From Call of Duty 2 (and consequently CoD4) the size of this buffer has
been reduced from the original 32000 bytes to only 1024 causing many
problems to the admins, for which reason I created an unofficial fix
for CoD2 in the far 2006 (http://aluigi.org/patches/cod2vawo.lpatch).

So in CoD4 an attacker which has joined the server can exploit this
vulnerability through the sending of a command longer than 1024 bytes
causing the immediate termination of the server.


-----------------------------------
B] "callvote map" Denial of Service
-----------------------------------

The "callvote map" buffer-overflow is an old problem which was reported
to me by Sindre Dahl in the 2006 affecting all the CoD1 and CoD2
servers (http://aluigi.org/adv/codmapbof-adv.txt)

This vulnerability affects also CoD4 altough with some differences:
the name of the map needed to exploit this bug must be long at least
248 bytes and doesn't seem to exist a concrete way to control the code
flow, so the only effect is the crash of the server and not code
execution as for the other two games.

The callvote command works when in a server there are at least two
players (if the server is empty the needed one can be a fake player
generated with "q3fill -1") and the vote must pass.
For some unknown reasons in my tests was necessary to launch callvote
two times for exploiting the bug.


For both the vulnerabilities the attacker must join the server so if
it's protected by password he must know the right keyword and his
IP/guid/cdkey must be not banned.


#######################################################################

===========
3) The Code
===========


http://aluigi.org/poc/cod4vamap.zip

copy the files in the "main" folder of CoD4 and then type

A] /exec cod4va
B] /exec cod4map


#######################################################################

======
4) Fix
======


No fix


#######################################################################


---
Luigi Auriemma
http://aluigi.org
Login or Register to add favorites

File Archive:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    0 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close