中危 PHP 5.3.8 zend_builtin_functions.c define 拒绝服务漏洞

CVE编号

CVE-2011-4153

利用情况

POC 已公开

补丁情况

官方补丁

披露时间

2012-01-19
漏洞描述
PHP是一款HTML内嵌式语言。在zend_strndup()中 -zend_alloca.c--- ZEND_API char *zend_strndup(const char *s, uint length) { char *p; p = (char *) malloc(length 1); if (UNEXPECTED(p == NULL)) { return p; <=== RETURN NULL } if (length) { memcpy(p, s, length); } p[length] = 0; return p; } -zend_alloca.c--- zend_strndup()会返回NULL.在PHP代码中,许多zend_strndup()调用没有返回值,结果类似如下函数中:-zend_builtin_functions.c--- ZEND_FUNCTION(define) { char *name; int name_len; zval *val; zval *val_free = NULL; zend_bool non_cs = 0; int case_sensitive = CONST_CS; zend_constant c; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|b",
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 php php 5.3.8 -
运行在以下环境
系统 centos_5 php-pdo * Up to
(excluding)
5.3.3-13.el5_8
运行在以下环境
系统 centos_6 php-pdo * Up to
(excluding)
5.3.3-14.el6_3
运行在以下环境
系统 opensuse_12.1 php5-openssl-debuginfo * Up to
(excluding)
5.3.8-4.9.2
运行在以下环境
系统 oracle_5 oraclelinux-release * Up to
(excluding)
5.3.3-13.el5_8
运行在以下环境
系统 oracle_6 oraclelinux-release * Up to
(excluding)
5.3.3-14.el6_3
运行在以下环境
系统 redhat_5 php * Up to
(excluding)
0:5.1.6-39.el5_8
运行在以下环境
系统 redhat_6 php * Up to
(excluding)
0:5.3.3-14.el6_3
运行在以下环境
系统 suse_12 apache2-mod_php5 * Up to
(excluding)
5.5.14-4
阿里云评分
5.4
  • 攻击路径
    远程
  • 攻击复杂度
    容易
  • 权限要求
    无需权限
  • 影响范围
    越权影响
  • EXP成熟度
    POC 已公开
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-20 输入验证不恰当
阿里云安全产品覆盖情况