Vulnerabilities > CVE-2007-3896 - Improper Input Validation vulnerability in Microsoft Internet Explorer 7.0
Summary
The URL handling in Shell32.dll in the Windows shell in Microsoft Windows XP and Server 2003, with Internet Explorer 7 installed, allows remote attackers to execute arbitrary programs via invalid "%" sequences in a mailto: or other URI handler, as demonstrated using mIRC, Outlook, Firefox, Adobe Reader, Skype, and other applications. NOTE: this issue might be related to other issues involving URL handlers in Windows systems, such as CVE-2007-3845. There also might be separate but closely related issues in the applications that are invoked by the handlers.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
OS | 9 | |
Application | 1 |
Common Weakness Enumeration (CWE)
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.
- Server Side Include (SSI) Injection An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
- Cross Zone Scripting An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
- Cross Site Scripting through Log Files An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
- Command Line Execution through SQL Injection An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
Exploit-Db
description | Microsoft Windows URI Handler Command Execution Vulnerability. CVE-2007-3896. Remote exploit for windows platform |
id | EDB-ID:30645 |
last seen | 2016-02-03 |
modified | 2007-10-05 |
published | 2007-10-05 |
reporter | Billy Rios |
source | https://www.exploit-db.com/download/30645/ |
title | Microsoft Windows URI Handler Command Execution Vulnerability |
Nessus
NASL family | Windows : Microsoft Bulletins |
NASL id | SMB_NT_MS07-061.NASL |
description | The remote version of Windows contains a version of the Windows Shell that contains a vulnerability in the way it handles URI. An attacker might use this flaw to execute arbitrary commands on the remote host using attack vectors such as IE or other tools. |
last seen | 2020-06-01 |
modified | 2020-06-02 |
plugin id | 28183 |
published | 2007-11-13 |
reporter | This script is Copyright (C) 2007-2018 Tenable Network Security, Inc. |
source | https://www.tenable.com/plugins/nessus/28183 |
title | MS07-061: Vulnerability in Windows URI Handling Could Allow Remote Code Execution (943460) |
code |
|
Oval
accepted | 2007-12-24T04:06:44.987-05:00 | ||||||||||||||||||||||||||||
class | vulnerability | ||||||||||||||||||||||||||||
contributors |
| ||||||||||||||||||||||||||||
definition_extensions |
| ||||||||||||||||||||||||||||
description | The URL handling in Shell32.dll in the Windows shell in Microsoft Windows XP and Server 2003, with Internet Explorer 7 installed, allows remote attackers to execute arbitrary programs via invalid "%" sequences in a mailto: or other URI handler, as demonstrated using mIRC, Outlook, Firefox, Adobe Reader, Skype, and other applications. NOTE: this issue might be related to other issues involving URL handlers in Windows systems, such as CVE-2007-3845. There also might be separate but closely related issues in the applications that are invoked by the handlers. | ||||||||||||||||||||||||||||
family | windows | ||||||||||||||||||||||||||||
id | oval:org.mitre.oval:def:4581 | ||||||||||||||||||||||||||||
status | accepted | ||||||||||||||||||||||||||||
submitted | 2007-11-15T15:56:12 | ||||||||||||||||||||||||||||
title | Windows URI Handling Vulnerability | ||||||||||||||||||||||||||||
version | 70 |
Saint
bid | 25945 |
description | Windows IE7 URI Handler command execution through Firefox |
id | win_patch_ie_v7 |
osvdb | 41090 |
title | windows_ie7_uri_firefox |
type | client |
Seebug
bulletinFamily | exploit |
description | BUGTRAQ ID: 25945 CVE(CAN) ID: CVE-2007-3896 Microsoft Windows是微软发布的非常流行的操作系统。 Windows shell(shell32.dll)在使用所注册的URI处理器(如mailto、news、nntp、snews、telnet、http等)处理特制URI时存在输入验证错误,远程攻击者可能利用此漏洞诱使用户运行程序。 如果用户使用Windows上所安装的IE 7访问了恶意站点,或点击了包含有“%”字符且以某些扩展名(如.bat或.cmd)结束的特制URI的话,就可能导致启动任意程序。 Microsoft Internet Explorer 7.0 - Microsoft Windows XP SP2 - Microsoft Windows XP Professional x64 Edition - Microsoft Windows Server 2003 SP2 - Microsoft Windows Server 2003 SP1 Microsoft已经为此发布了一个安全公告(MS07-061)以及相应补丁: MS07-061:Vulnerability in Windows URI Handling Could Allow Remote Code Execution (943460) 链接:<a href="http://www.microsoft.com/technet/security/Bulletin/MS07-061.mspx?pf=true" target="_blank">http://www.microsoft.com/technet/security/Bulletin/MS07-061.mspx?pf=true</a> |
id | SSV:2423 |
last seen | 2017-11-19 |
modified | 2007-11-15 |
published | 2007-11-15 |
reporter | Root |
source | https://www.seebug.org/vuldb/ssvid-2423 |
title | Microsoft Windows URI处理器命令注入漏洞(MS07-061) |
References
- http://blogs.zdnet.com/security/?p=577
- http://www.heise-security.co.uk/news/96982
- http://xs-sniper.com/blog/remote-command-exec-firefox-2005/
- http://marc.info/?l=bugtraq&m=119143780202107&w=2
- http://marc.info/?l=bugtraq&m=119144449915918&w=2
- http://marc.info/?l=bugtraq&m=119159924712561&w=2
- http://marc.info/?l=bugtraq&m=119168062128026&w=2
- http://marc.info/?l=bugtraq&m=119195904813505&w=2
- http://marc.info/?l=bugtraq&m=119194714125580&w=2
- http://marc.info/?l=full-disclosure&m=119171444628628&w=2
- http://marc.info/?l=full-disclosure&m=119159477404263&w=2
- http://marc.info/?l=full-disclosure&m=119168727402084&w=2
- http://marc.info/?l=full-disclosure&m=119170531020020&w=2
- http://marc.info/?l=full-disclosure&m=119175323322021&w=2
- http://marc.info/?l=full-disclosure&m=119180333805950&w=2
- http://www.microsoft.com/technet/security/advisory/943521.mspx
- http://www.kb.cert.org/vuls/id/403150
- http://secunia.com/advisories/26201
- http://www.us-cert.gov/cas/techalerts/TA07-317A.html
- http://www.securityfocus.com/bid/25945
- http://www.securitytracker.com/id?1018822
- http://securitytracker.com/id?1018831
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A4581
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2007/ms07-061
- http://www.securityfocus.com/archive/1/484186/100/0/threaded
- http://www.securityfocus.com/archive/1/482437/100/0/threaded
- http://www.securityfocus.com/archive/1/482292/100/0/threaded
- http://www.securityfocus.com/archive/1/482090/100/0/threaded
- http://www.securityfocus.com/archive/1/481887/100/0/threaded
- http://www.securityfocus.com/archive/1/481881/100/0/threaded
- http://www.securityfocus.com/archive/1/481871/100/0/threaded
- http://www.securityfocus.com/archive/1/481867/100/0/threaded
- http://www.securityfocus.com/archive/1/481846/100/0/threaded
- http://www.securityfocus.com/archive/1/481839/100/0/threaded
- http://www.securityfocus.com/archive/1/481680/100/0/threaded
- http://www.securityfocus.com/archive/1/481671/100/0/threaded
- http://www.securityfocus.com/archive/1/481664/100/0/threaded
- http://www.securityfocus.com/archive/1/481624/100/0/threaded
- http://www.securityfocus.com/archive/1/481505/100/0/threaded
- http://www.securityfocus.com/archive/1/481493/100/100/threaded