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

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

点击次数:25 次 发布日期:2008-11-22 11:55:23 作者:源代码网
源代码网推荐

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 查看到

源代码网供稿.
网友评论 (0)
会员中心
网络编程
本站推荐
网络编程之精华