id Software Quake II Server Remote Information Disclosure Vulnerability

BID:4744

Info

id Software Quake II Server Remote Information Disclosure Vulnerability

Bugtraq ID: 4744
Class: Design Error
CVE: CVE-2002-0770
Remote: Yes
Local: No
Published: May 15 2002 12:00AM
Updated: Jul 11 2009 12:46PM
Credit: Published by Redix.
Vulnerable: id Software Quake II Server 3.21
id Software Quake II Server 3.20
Not Vulnerable:

Discussion

id Software Quake II Server Remote Information Disclosure Vulnerability

Quake II is a multiplayer game released by id Software. The source code has been made publically available, and versions are available for Windows and Linux. A vulnerability has been reported in some versions of the Quake II server.

While variable expansion is normally performed on the client side, a modified client may pass unexpanded variables such as $rcon_password to the server. The server will expand these variables within it's local context, potentially leaking sensitive information to the remote attacker.

Exploit / POC

id Software Quake II Server Remote Information Disclosure Vulnerability

Redix has contributed exploit details:

you must modify your q2 client, that the client will not replace the $... variables in says
quick hack:
in qcommon/cmd.c
change the line
Cmd_TokenizeString (text, true);
to
Cmd_TokenizeString( text, false);

Solution / Fix

id Software Quake II Server Remote Information Disclosure Vulnerability

Solution:
An unofficial patch has been contributed by Redix:

change line 481 in sv_user.c to
Cmd_TokenizeString (s, false);

Unofficial updates are also available.

Currently the SecurityFocus staff are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.


id Software Quake II Server 3.20

id Software Quake II Server 3.21

References

id Software Quake II Server Remote Information Disclosure Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report