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

PHP
为php4加入动态flash文件的生成的支持
一个oracle+PHP的查询的例子
第十节 抽象方法和抽象类 [10]
第九节 绑定 [9]
第八节 访问方式 [8]
第六节 访问属性和方法 [6]
第五节 克隆 [5]
Zend引擎的发展 [15]
第三节 定义一个类 [3]
第二节 对象模型 [2]
Classes and Objects in PHP5-面向对象编程 [1]
PHP5 安装方法
第四节 构造函数和析构函数 [4]
php中数据的批量导入(csv文件)
一个ftp类(ini.php)
example1.php
VML绘图板②脚本--VMLgraph.js、XMLtool.js
如何获得PHP相关资料
PHP 和 COM
编译问题

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-08-14   浏览: 143 ::
收藏到网摘: 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 查看到。