
by cocoruder(frankruer_at_hotmail.com)
Summary:
百度超级搜霸是百度公司出品的一款免费的浏览器工具栏,提供百度公司的诸多服务。更多信息请参考:
在百度超级搜霸中的一个ActiveX控件中存在一个远程代码执行漏洞,远程攻击者可借助此漏洞在被攻击者系统上以当前浏览器权限执行任意代码,进而可加装木马以及程序。
Affected Software Versions:
百度超级搜霸5.4(Version of "BaiduBar.dll" is 2.0.2.144)
Details:
漏洞存在于由ActiveX控件"BaiduBar.dll"导出的"DloadDS()"函数中,相关信息如下:

InprocServer32: C:/Program Files/baidu/bar/BaiduBar.dll
ClassID : A7F05EE4-0426-454F-8013-1E3596E9E9
[id(0x0000001d), helpstring("method DloadDS")]
void DloadDS(
[in] BSTR bstrUrl,
[in] BSTR bstrName,
[in] long lShow);
如果把bstrUrl设置成某个服务器上的CAB文件,DloadDS()函数会尝试下载这个文件到TEMP目录并解压,然后执行其中的以bstrName命名的文件,执行处的关键代码如下:
.text:1006F407 lea eax, [ebp-28h]

.text:1006F40A lea ecx, [ebp-10h]
.text:1006F40D push eax ; lpProcessInformation
.text:1006F40E lea eax, [ebp-6Ch]
.text:1006F411 push eax ; lpStartupInfo
.text:1006F412 push esi ; lpCurrentDirectory
.text:1006F413 push esi ; lpEnvironment
.text:1006F414 push esi ; dwCreationFlags
.text:1006F415 push esi ; bInheritHandles
.text:1006F416 push esi ; lpThreadAttributes

.text:1006F417 push esi ; lpProcessAttributes
.text:1006F418 push esi
.text:1006F419 call sub_10004147 ; get the CommandLine
.text:1006F419
.text:1006F41E push eax ; lpCommandLine
.text:1006F41F push esi ; lpApplicationName
.text:1006F420 call ds:CreateProcessA
此时lpCommandLine指向"C:/DOCUME~1/administrator/LOCALS~1/Temp/calc.exe",由于之前没有任何有效的检测机制,因此攻击者可构造包括木马或者程序的CAB文件,然后用DloadDS()函数下载并运行它。因此,有纰漏的百度搜霸相当于一个完美的后门。
How to Reproduce:

Exploit在如下URL地址:
安装百度搜霸, 用IE打开它并单击"DowndloadCalcAndRun"按纽百度超级搜霸怎么用,你会看到计数器程序(在)被下载并执行。
如果你能够找到受制约的版本百度超级搜霸怎么用,带有数字签名的百度搜霸5.4版在如下地址也可以下载到:
此文件的MD5值:7F751A157AF42E92FDD0AF3F179FE9AB
Solution:
Baidu通知将要恢复了此漏洞,但实际上,从下载的Baidu搜霸依旧得到影响(MD5值没变,不过可能是升级未顺利),强烈提议用户对此CLSID设置Killbit。
Disclosure Timeline:
2007.07.19 漏洞发现并通告厂商
2007.07.19 厂商回应
2007.07.23 厂商通知新版本发布但不公布公告
2007.07.24 新版本未公布成功
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-119854-1.html
但绝对不能剥夺公民议论社会
赚了