Vulnerabilities > CVE-2008-3704 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Microsoft products

047910
CVSS 9.3 - CRITICAL
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
microsoft
CWE-119
critical
nessus
exploit available
metasploit

Summary

Heap-based buffer overflow in the MaskedEdit ActiveX control in Msmask32.ocx 6.0.81.69, and possibly other versions before 6.0.84.18, in Microsoft Visual Studio 6.0, Visual Basic 6.0, Visual Studio .NET 2002 SP1 and 2003 SP1, and Visual FoxPro 8.0 SP1 and 9.0 SP1 and SP2 allows remote attackers to execute arbitrary code via a long Mask parameter, related to not "validating property values with boundary checks," as exploited in the wild in August 2008, aka "Masked Edit Control Memory Corruption Vulnerability." Additional advisory information from Secunia: http://secunia.com/advisories/31498/ "Visual Studio 6 was last updated June 2000, a Microsoft spokeswoman told SCMagazineUS.com. The version is no longer supported. Visual Studio 2008 is the latest release and microsoft encourages users to update to the newest version." Source: http://www.scmagazineus.com/Microsoft-looks-into-Visual-Studio-bug/article/115459/

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

  • descriptionMicrosoft Visual Studio Msmask32.ocx ActiveX Buffer Overflow. CVE-2008-3704. Remote exploit for windows platform
    idEDB-ID:16507
    last seen2016-02-02
    modified2010-11-24
    published2010-11-24
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/16507/
    titleMicrosoft Visual Studio - Msmask32.ocx ActiveX Buffer Overflow
  • descriptionMicrosoft Visual Studio (Msmask32.ocx) ActiveX Remote BOF Exploit. CVE-2008-3704. Remote exploit for windows platform
    fileexploits/windows/remote/6317.html
    idEDB-ID:6317
    last seen2016-02-01
    modified2008-08-26
    platformwindows
    port
    published2008-08-26
    reporterKoshi
    sourcehttps://www.exploit-db.com/download/6317/
    titleMicrosoft Visual Studio Msmask32.ocx ActiveX Remote BoF Exploit
    typeremote
  • descriptionMicrosoft Visual Studio (Msmask32.ocx) ActiveX Remote BOF PoC. CVE-2008-3704. Dos exploit for windows platform
    fileexploits/windows/dos/6244.js
    idEDB-ID:6244
    last seen2016-02-01
    modified2008-08-14
    platformwindows
    port
    published2008-08-14
    reporterSymantec
    sourcehttps://www.exploit-db.com/download/6244/
    titleMicrosoft Visual Studio Msmask32.ocx ActiveX Remote BoF PoC
    typedos

Metasploit

descriptionThis module exploits a stack buffer overflow in Microsoft's Visual Studio 6.0. When passing a specially crafted string to the Mask parameter of the Mdmask32.ocx ActiveX Control, an attacker may be able to execute arbitrary code.
idMSF:EXPLOIT/WINDOWS/BROWSER/MS08_070_VISUAL_STUDIO_MSMASK
last seen2020-05-26
modified2017-10-05
published2010-06-15
referenceshttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-3704
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/browser/ms08_070_visual_studio_msmask.rb
titleMicrosoft Visual Studio Mdmask32.ocx ActiveX Buffer Overflow

Msbulletin

bulletin_idMS08-070
bulletin_url
date2008-12-09T00:00:00
impactRemote Code Execution
knowledgebase_id932349
knowledgebase_url
severityCritical
titleVulnerabilities in Visual Basic 6.0 Runtime Extended Files (ActiveX Controls) Could Allow Remote Code Execution

Nessus

NASL familyWindows : Microsoft Bulletins
NASL idSMB_NT_MS08-070.NASL
descriptionThe remote host contains a version of the ActiveX control for Visual Basic 6.0 Runtime Extended Files that may allow an attacker to execute arbitrary code on the remote host by constructing a malicious web page and enticing a victim to visit it. Note that this control may have been included with Visual Studio or FoxPro or as part of a third-party application created by one of those products.
last seen2020-06-01
modified2020-06-02
plugin id35069
published2008-12-10
reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/35069
titleMS08-070: Vulnerabilities in Visual Basic 6.0 ActiveX Controls Could Allow Remote Code Execution (932349)

Oval

accepted2012-11-12T04:00:33.420-05:00
classvulnerability
contributors
  • nameSudhir Gandhe
    organizationSecure Elements, Inc.
  • namePradeep R B
    organizationSecPod Technologies
  • namePradeep R B
    organizationSecPod Technologies
definition_extensions
  • commentMicrosoft Visual Studio .NET 2002 SP1 is installed
    ovaloval:org.mitre.oval:def:981
  • commentMicrosoft Visual Studio .NET 2003 SP1 is installed
    ovaloval:org.mitre.oval:def:168
  • commentMicrosoft Visual FoxPro is installed
    ovaloval:org.mitre.oval:def:14198
  • commentMicrosoft Visual Basic 6.0 is installed
    ovaloval:org.mitre.oval:def:15369
descriptionHeap-based buffer overflow in the MaskedEdit ActiveX control in Msmask32.ocx 6.0.81.69, and possibly other versions before 6.0.84.18, in Microsoft Visual Studio 6.0, Visual Basic 6.0, Visual Studio .NET 2002 SP1 and 2003 SP1, and Visual FoxPro 8.0 SP1 and 9.0 SP1 and SP2 allows remote attackers to execute arbitrary code via a long Mask parameter, related to not "validating property values with boundary checks," as exploited in the wild in August 2008, aka "Masked Edit Control Memory Corruption Vulnerability."
familywindows
idoval:org.mitre.oval:def:5794
statusaccepted
submitted2008-12-09T13:31:00
titleMasked Edit Control Memory Corruption Vulnerability
version68

Packetstorm

Saint

bid30674
descriptionMicrosoft Visual Studio MaskedEdit ActiveX buffer overflow
idmisc_vstudioaxbo
osvdb47475
titlevisual_studio_msmask
typeclient