Microsoft Visual Studio time functions denial of service

visualstudio-time-dos (32454) The risk level is classified as LowLow Risk

Description:

Microsoft Visual Studio is vulnerable to a denial of service caused by an error in the Microsoft Visual C++ standard library time functions. By sending an overly long time_t argument, a remote attacker could exploit this vulnerability to cause an application using the Microsoft Visual C++ standard library time functions to crash.

Platforms Affected:

  • Microsoft, Visual C++ 8.0
  • Microsoft, Visual Studio 2005

Remedy:

No remedy available as of July 4, 2009.

Consequences:

Denial of Service

References:

  • Full-Disclosure Mailing List, Mon Feb 12 2007 - 16:46:42 CST, SecurityVulns.com: Microsoft Visual C++ 8.0 standard library time functions invalid assertion DoS (Problem 3000). at http://archives.neohapsis.com/archives/fulldisclosure/2007-02/0267.html.
  • Microsoft Visual C++ Web site, Visual C++ Developer Center at http://msdn2.microsoft.com/en-us/visualc/default.aspx.
  • CVE-2007-0842: The 64-bit versions of Microsoft Visual C++ 8.0 standard library (MSVCR80.DLL) time functions, including (1) localtime, (2) localtime_s, (3) gmtime, (4) gmtime_s, (5) ctime, (6) ctime_s, (7) wctime, (8) wctime_s, and (9) fstat, trigger an assertion error instead of a NULL pointer or EINVAL when processing a time argument later than Jan 1, 3000, which might allow context-dependent attackers to cause a denial of service (application exit) via large time values. NOTE: it could be argued that this is a design limitation of the functions, and the vulnerability lies with any application that does not validate arguments to these functions. However, this behavior is inconsistent with documentation, which does not list assertions as a possible result of an error condition.

Reported:

Feb 12, 2007

The information within this database may change without notice. 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. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page