Vulnerabilities > CVE-2007-4776 - Buffer Errors vulnerability in Microsoft Visual Basic 6.0

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
exploit available
metasploit

Summary

Buffer overflow in Microsoft Visual Basic 6.0 and Enterprise Edition 6.0 SP6 allows user-assisted remote attackers to execute arbitrary code via a Visual Basic project (vbp) file containing a long Reference line, related to VBP_Open and OLE. NOTE: there are limited usage scenarios under which this would be a vulnerability.

Vulnerable Configurations

Part Description Count
Application
Microsoft
2

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 Basic VBP Buffer Overflow. CVE-2007-4776. Local exploit for windows platform
    idEDB-ID:16680
    last seen2016-02-02
    modified2010-09-25
    published2010-09-25
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/16680/
    titleMicrosoft Visual Basic VBP Buffer Overflow
  • descriptionMicrosoft Visual Basic 6.0 VBP_Open OLE Local CodeExec Exploit. CVE-2007-4776. Local exploit for windows platform
    fileexploits/windows/local/4361.pl
    idEDB-ID:4361
    last seen2016-01-31
    modified2007-09-04
    platformwindows
    port
    published2007-09-04
    reporterKoshi
    sourcehttps://www.exploit-db.com/download/4361/
    titleMicrosoft Visual Basic 6.0 VBP_Open OLE Local CodeExec Exploit
    typelocal
  • idEDB-ID:4431

Metasploit

descriptionThis module exploits a stack overflow in Microsoft Visual Basic 6.0. When a specially crafted vbp file containing a long reference line, an attacker may be able to execute arbitrary code.
idMSF:EXPLOIT/WINDOWS/FILEFORMAT/MS_VISUAL_BASIC_VBP
last seen2020-01-16
modified2020-01-15
published2009-10-19
referenceshttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4776
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/fileformat/ms_visual_basic_vbp.rb
titleMicrosoft Visual Basic VBP Buffer Overflow

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/82998/ms_visual_basic_vbp.rb.txt
idPACKETSTORM:82998
last seen2016-12-05
published2009-11-26
reporterMC
sourcehttps://packetstormsecurity.com/files/82998/Microsoft-Visual-Basic-VBP-Buffer-Overflow.html
titleMicrosoft Visual Basic VBP Buffer Overflow

Saint

bid25629
descriptionMicrosoft Visual Basic VBP file buffer overflow
idmisc_vb6vbpbo
osvdb36936
titlevisual_basic_vbp
typeclient