Executive Summary

Title Microsoft Agent fails to properly handle specially crafted URLs
Name VU#716872 First vendor Publication 2007-09-11
Vendor VU-CERT Last vendor Modification 2007-09-14
Severity (Vendor) N/A Revision M

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:M/Au:N/C:C/I:C/A:C)
Cvss Base Score 9.3 Attack Range Network
Cvss Impact Score 10 Attack Complexity Medium
Cvss Expoit Score 8.6 Authentication None Required
Calculate full CVSS 2.0 Vectors scores


Vulnerability Note VU#716872

Microsoft Agent fails to properly handle specially crafted URLs


Microsoft Agent fails to properly handle specially crafted URLs, which may allow a remote, unauthenticated attacker to execute arbitrary code on a vulnerable system

I. Description

Microsoft Agent is software that provides animated characters to enhance interaction with computer systems. Microsoft Agent comes with Microsoft Windows systems. Microsoft Agent functionality is exposed as an ActiveX control that can be used by web pages. Microsoft Agent fails to properly handle specially crafted URLs, which can result in memory corruption.

According to public reports, exploit code is availabe for this vulnerability.

II. Impact

By convincing a user to view a specially crafted HTML document (e.g., a web page or an HTML email message or attachment), an attacker may be able to execute arbitrary code with the privileges of the user. The attacker could also cause the web browser to crash.

More information is available in Microsoft Security Bulletin MS07-051.

III. Solution

Apply an update

This issue is addressed in Microsoft Security Bulletin MS07-051.

Disable the Microsoft Agent ActiveX controls in Internet Explorer

The vulnerable ActiveX controls can be disabled in Internet Explorer by setting the kill bit for the following CLSIDs:

More information about how to set the kill bit is available in Microsoft Support Document 240797. Alternatively, the following text can be saved as a .REG file and imported to set the kill bit for this control:
    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerActiveX Compatibility{D45FD31B-5C6E-11D1-9EC1-00C04FD7081F}]
    "Compatibility Flags"=dword:00000400

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerActiveX Compatibility{F5BE8BD2-7DE6-11D0-91FE-00C04FD701A5}]
    "Compatibility Flags"=dword:00000400

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerActiveX Compatibility{4BAC124B-78C8-11D1-B9A8-00C04FD97575}]
    "Compatibility Flags"=dword:00000400

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerActiveX Compatibility{D45FD31D-5C6E-11D1-9EC1-00C04FD7081F}]
    "Compatibility Flags"=dword:00000400

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerActiveX Compatibility{D45FD31E-5C6E-11D1-9EC1-00C04FD7081F}]
    "Compatibility Flags"=dword:00000400
Unregister AgentSvr.exe

The Microsoft Agent ActiveX controls interact with the Microsoft Agent Server (AgentSvr.exe) to provide Agent functionality. The Microsoft Agent Server can be unregistered to mitigate this vulnerability by running the following command:
    %windir%msagentagentsvr.exe /unregserver
Disable ActiveX

Disabling ActiveX controls in the Internet Zone (or any zone used by an attacker) appears to prevent exploitation of this and other ActiveX vulnerabilities. Instructions for disabling ActiveX in the Internet Zone can be found in the "Securing Your Web Browser" document.

Systems Affected

VendorStatusDate Updated
Microsoft CorporationVulnerable11-Sep-2007




This vulnerability was publicly disclosed in Microsoft Security Bulletin MS07-051. Microsoft in turn credits the Vulnerability Research team of Assurent Secure Technologies, Yamata Li of Palo Alto Networks, and An anonymous researcher working with VeriSign iDefense VCP.

This document was written by Jeff Gennari.

Other Information

Date Public09/11/2007
Date First Published09/11/2007 02:24:53 PM
Date Last Updated09/14/2007
CERT Advisory 
CVE NameCVE-2007-3040
Document Revision13

Original Source

Url : http://www.kb.cert.org/vuls/id/716872

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-119 Failure to Constrain Operations within the Bounds of a Memory Buffer

OVAL Definitions

Definition Id: oval:org.mitre.oval:def:2116
Oval ID: oval:org.mitre.oval:def:2116
Title: Agent Remote Code Execution Vulnerability
Description: Stack-based buffer overflow in agentdpv.dll in Microsoft Agent on Windows 2000 SP4 allows remote attackers to execute arbitrary code via a crafted URL to the Agent (Agent.Control) ActiveX control, which triggers an overflow within the Agent Service (agentsrv.exe) process, a different issue than CVE-2007-1205.
Family: windows Class: vulnerability
Reference(s): CVE-2007-3040
Version: 1
Platform(s): Microsoft Windows 2000
Definition Synopsis:

CPE : Common Platform Enumeration

Os 1

SAINT Exploits

Description Link
Microsoft Agent crafted URL vulnerability More info here

Open Source Vulnerability Database (OSVDB)

Id Description
36934 Microsoft Agent URL Handling Remote Code Execution

A remote overflow exists in Microsoft Windows 2000 Agent ActiveX control. The ActiveX control fails to sanitize URLs passed as argument to a certain unspecified method, resulting in a stack-based buffer overflow. With a specially crafted request, an attacker can cause execution of arbitrary code resulting in a loss of confidentiality, integrity, and/or availability.

Information Assurance Vulnerability Management (IAVM)

Date Description
2007-09-13 IAVM : 2007-B-0027 - Microsoft Windows Agent Malformed URL Remote Code Execution Vulnerability
Severity : Category II - VMSKEY : V0015100

Snort® IPS/IDS

Date Description
2014-01-10 MS Agent File Provider ActiveX clsid unicode access
RuleID : 12453 - Revision : 7 - Type : WEB-ACTIVEX
2014-01-10 Microsoft Windows Agent File Provider ActiveX clsid access
RuleID : 12452 - Revision : 14 - Type : BROWSER-PLUGINS
2014-01-10 Microsoft Agent Control ActiveX function call unicode access
RuleID : 12451 - Revision : 8 - Type : WEB-ACTIVEX
2014-01-10 Microsoft Windows Agent Control ActiveX function call access
RuleID : 12450 - Revision : 15 - Type : BROWSER-PLUGINS
2014-01-10 Microsoft Agent Control ActiveX clsid unicode access
RuleID : 12449 - Revision : 8 - Type : WEB-ACTIVEX
2014-01-10 Microsoft Windows Agent Control ActiveX clsid access
RuleID : 12448 - Revision : 19 - Type : BROWSER-PLUGINS

Nessus® Vulnerability Scanner

Date Description
2007-09-11 Name : Arbitrary code can be executed on the remote host through the web or email cl...
File : smb_nt_ms07-051.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
Date Informations
2015-05-08 13:28:07
  • Multiple Updates
2013-05-11 12:26:42
  • Multiple Updates