首页 -> 安全研究

安全研究

安全漏洞
Integrity Protection Driver文件保护可被符号链接绕过漏洞

发布日期:2003-01-03
更新日期:2003-01-08

受影响系统:
Pedestal Software Integrity Protection Driver 1.2
Pedestal Software Integrity Protection Driver 1.3
    - Microsoft Windows NT 4.0 SP6a
    - Microsoft Windows NT 4.0 SP6
    - Microsoft Windows NT 4.0 SP5
    - Microsoft Windows NT 4.0 SP4
    - Microsoft Windows NT 4.0 SP3
    - Microsoft Windows NT 4.0 SP2
    - Microsoft Windows NT 4.0 SP1
    - Microsoft Windows NT 4.0
    - Microsoft Windows 2000 Server SP3
    - Microsoft Windows 2000 Server SP2
    - Microsoft Windows 2000 Server SP1
    - Microsoft Windows 2000 Server
    - Microsoft Windows 2000 Professional SP3
    - Microsoft Windows 2000 Professional SP2
    - Microsoft Windows 2000 Professional SP1
    - Microsoft Windows 2000 Professional
    - Microsoft Windows 2000 Datacenter Server SP3
    - Microsoft Windows 2000 Datacenter Server SP2
    - Microsoft Windows 2000 Datacenter Server SP1
    - Microsoft Windows 2000 Datacenter Server
    - Microsoft Windows 2000 Advanced Server SP3
    - Microsoft Windows 2000 Advanced Server SP2
    - Microsoft Windows 2000 Advanced Server SP1
    - Microsoft Windows 2000 Advanced Server
不受影响系统:
Pedestal Software Integrity Protection Driver 1.4
描述:
BUGTRAQ  ID: 6511

Pedestal Software的完整性保护驱动(IPD)是一款开放源代码设备驱动,设计用于禁止新服务和驱动安装,防止已经存在的驱动被篡改。

Pedestal Software IPD对符号链接处理不正确,本地攻击者可以利用这个漏洞绕过保护,使用恶意文件覆盖驱动文件。

为了防止恶意模块装载到内核中,IPD对winnt/system32/drivers目录进行保护,因此不能修改此目录中的任意文件,这通过使用ZwCreatFile()和ZwOpenFile()函数完成,并使用字符串对比检查文件路径。

但是,使用NtCreateSymbolicLinkObject()函数,攻击者可以欺骗IPD,通过建立符号链接相关某个目录到IPD保护的目录(如winnt/system32/drivers),就可以绕过IPD保护,通过新的符号链接访问驱动目录。

<*来源:crazylord (crazylord@minithins.net
  
  链接:http://marc.theaimsgroup.com/?l=bugtraq&m=104162513530880&w=2
*>

测试方法:

警 告

以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!

crazylord (crazylord@minithins.net)提供了如下测试方法:

$subst x: c:\winnt\system32\drivers

使用恶意驱动文件代替c:\winnt\system32\drivers\ipnat.sys文件:

$ copy badmodule.sys x:\ipnat.sys

然后启动恶意文件:

$ net start ipnat

建议:
厂商补丁:

Pedestal Software
-----------------
目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:

Pedestal Software Upgrade Integrity Protection Driver 1.4
http://www.pedestalsoftware.com/download/ipd.zip

浏览次数:3273
严重程度:0(网友投票)
本安全漏洞由绿盟科技翻译整理,版权所有,未经许可,不得转载
绿盟科技给您安全的保障