Vulnerabilities > CVE-2003-1354 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Gamespy3D Gamespy 3D 2.62

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
gamespy3d
CWE-119
nessus
exploit available

Summary

Multiple GameSpy 3D 2.62 compatible gaming servers generate very large UDP responses to small requests, which allows remote attackers to use the servers as an amplifier in DDoS attacks with spoofed UDP query packets, as demonstrated using Battlefield 1942.

Vulnerable Configurations

Part Description Count
Application
Gamespy3D
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionGameSpy 3D 2.62 Packet Amplification Denial Of Service Vulnerability. CVE-2003-1354. Dos exploit for linux platform
idEDB-ID:22183
last seen2016-02-02
modified2003-01-17
published2003-01-17
reporterMike Kristovich
sourcehttps://www.exploit-db.com/download/22183/
titleGameSpy 3D 2.62 Packet Amplification Denial of Service Vulnerability

Nessus

NASL familyDenial of Service
NASL idGAMESPY_DETECT.NASL
descriptionThe remote host is running a GameSpy server. This service is used to host a gaming server. Since it uses UDP as its transport layer and sends multiple UDP packets in response to one request, an attacker can abuse it to flood a third-party host with traffic by sending a spoofed UDP packet with the IP address of their target as the source field.
last seen2020-06-02
modified2003-01-22
plugin id11211
published2003-01-22
reporterThis script is Copyright (C) 2003-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/11211
titleGameSpy 3D Based Games Spoofed UDP Response Amplification DDoS
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
 script_id(11211);
 script_version("1.25");
 script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/01");

 script_cve_id("CVE-2003-1354");
 script_bugtraq_id(6636);

 script_name(english:"GameSpy 3D Based Games Spoofed UDP Response Amplification DDoS");
 script_summary(english:"Checks for the presence of a GameSpy server");

 script_set_attribute(attribute:"synopsis", value:"A game server is running on the remote host.");
 script_set_attribute(attribute:"description", value:
"The remote host is running a GameSpy server.  This service is used to
host a gaming server. 

Since it uses UDP as its transport layer and sends multiple UDP packets
in response to one request, an attacker can abuse it to flood a
third-party host with traffic by sending a spoofed UDP packet with the
IP address of their target as the source field.");
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?7d9bb249");
 script_set_attribute(attribute:"solution", value:"Filter incoming traffic to this port or disable the service.");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
 script_set_attribute(attribute:"exploit_available", value:"true");
 script_cwe_id(119);

 script_set_attribute(attribute:"plugin_publication_date", value:"2003/01/22");

 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_set_attribute(attribute:"cpe", value:"cpe:/a:gamespy:gamespy_sdk_cd-key_validation_toolkit");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2003-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
 script_family(english:"Denial of Service");

 script_require_keys("Settings/ThoroughTests");
 exit(0);
}

# There's <official port> to bind a gamespy server to, and
# scanning all the UDP ports would take too much time. We try
# a list of common ports instead.
include("audit.inc");
include('global_settings.inc');

if (!thorough_tests) audit(AUDIT_THOROUGH);

port[0] = 7777;
port[1] = 8888;
port[2] = 12203;
port[3] = 12204;
port[4] = 14567;
port[5] = 14570;
port[6] = 22000;
port[7] = 23000;
port[8] = 27015;
port[9] = 27016;
port[10] = 27960;
port[11] = 27961;
port[12] = 28001;
port[13] = 28002;
port[14] = 28016;
port[15] = 28020;
port[16] = 28040;
port[17] = 28672;

port[18] = 0;

for(i=0;port[i];i=i+1)
{
if (! get_udp_port_state(port)) continue;
soc = open_sock_udp(port[i]);
if ( ! soc ) continue;
send(socket:soc, data:string("\\players\\rules\\status\\packets\\"));
r = recv(socket:soc, length:4096, timeout:2);
if(strlen(r) > 0)
 {
 if(("disconnect" >< r) ||
    (strlen(r) == 4 && ord(r[0]) == 0x00 && ord(r[1]) == 0x40))
    	{
	set_kb_item(name:"Services/udp/gamespy", value:port[i]);
	security_warning(port:port[i], proto:"udp");
	exit(0);
	}
 }
 close(soc);
}
audit(AUDIT_HOST_NOT, 'affected');