当前位置: 首页 > 图文教程 > 网络编程 > PHP > PHP原版HTML编码器溢出问题的解决

PHP
编写自己的php扩展函数
用Socket发送电子邮件
Get或Post提交值的非法数据处理
一个可查询所有表的“通用”查询分页类
拼音码表的生成
一个odbc连mssql分页的类
用PHP动态创建Flash动画
如何使用PHP获取网络上文件
PHP中路径问题的解决方案
论坛头像随机变换代码
十天学会php(2)
十天学会php(1)
十天学会php(3)
PHP自动生成月历代码
关于PHP中的Class的几点个人看法
Win9x/ME下Apache+PHP安装配置
基于PHP+MySQL的聊天室设计
PHPlet在Windows下的安装
Search Engine Friendly的URL设计
如何给phpadmin一个保护

PHP原版HTML编码器溢出问题的解决


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-08-14   浏览: 159 ::
收藏到网摘: n/a

PHP5.1.6、4.4.4及以前版本中,在查找关于“htmlspecialchars() and htmlentities() ”相关字符编码的时候,当UTF-8编码被选择的时候可能会触发一个可能的缓冲器溢出。

“While we were searching for a hole in htmlspecialchars() and htmlentities() to bypass the encoding of certain chars to exploit a possible eval() injection hole in another application we discovered that the implementation contains a possible bufferoverflow that can be triggered when the UTF-8 charset is selected.

最新发行的PHP5版本5.2已经修正了这个错误,但是该问题仍然在PHP4.4 版本中存在。全部信息可以在the full vulnerability 查看到。