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

PHP
建立文件交换功能的脚本(三)
聊天室php&mysql(一)
聊天室php&mysql(二)
留言板翻页的实现详解
做一个有下拉功能的留言版
Access数据库导入Mysql的方法之一
PHP4 与 MySQL 交互使用
php的控制语句
PHP学习之PHP变量
PHP学习之PHP运算符
聊天室php&mysql(三)
PHP学习之PHP表达式
一个简单的PHP入门源程序
聊天室php&mysql(四)
聊天室php&mysql(五)
改进的IP计数器
图书管理程序(二)
图书管理程序(一)
一个PHP+MSSQL分页的例子
一个从别的网站抓取信息的例子(域名查询)

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


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