中危 zmartzone mod_auth_openidc 使用外部控制的格式字符串

CVE编号

CVE-2021-32785

利用情况

暂无

补丁情况

官方补丁

披露时间

2021-07-23 06:15:00
漏洞描述
mod_auth_openidc is an authentication/authorization module for the Apache 2.x HTTP server that functions as an OpenID Connect Relying Party, authenticating users against an OpenID Connect Provider. When mod_auth_openidc versions prior to 2.4.9 are configured to use an unencrypted Redis cache (`OIDCCacheEncrypt off`, `OIDCSessionType server-cache`, `OIDCCacheType redis`), `mod_auth_openidc` wrongly performed argument interpolation before passing Redis requests to `hiredis`, which would perform it again and lead to an uncontrolled format string bug. Initial assessment shows that this bug does not appear to allow gaining arbitrary code execution, but can reliably provoke a denial of service by repeatedly crashing the Apache workers. This bug has been corrected in version 2.4.9 by performing argument interpolation only once, using the `hiredis` API. As a workaround, this vulnerability can be mitigated by setting `OIDCCacheEncrypt` to `on`, as cache keys are cryptographically hashed before use when this option is enabled.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 apache http_server * From
(including)
2.0.0
Up to
(including)
2.4.48
运行在以下环境
应用 zmartzone mod_auth_openidc * Up to
(excluding)
2.4.9
运行在以下环境
系统 debian_10 apache2-mod_auth_openidc * Up to
(excluding)
2.3.10.2-1
运行在以下环境
系统 debian_11 apache2-mod_auth_openidc * Up to
(excluding)
2.4.4.1-2
运行在以下环境
系统 debian_9 apache2-mod_auth_openidc * Up to
(excluding)
2.1.6-1
运行在以下环境
系统 debian_sid apache2-mod_auth_openidc * Up to
(excluding)
2.4.4.1-2
运行在以下环境
系统 opensuse_Leap_15.2 apache2-mod_auth_openidc * Up to
(excluding)
2.3.8-lp152.5.6.1
运行在以下环境
系统 opensuse_Leap_15.3 apache2-mod_auth_openidc * Up to
(excluding)
2.3.8-3.15.1
运行在以下环境
系统 suse_12_SP5 apache2-mod_auth_openidc * Up to
(excluding)
2.4.0-3.23.1
阿里云评分
4.2
  • 攻击路径
    远程
  • 攻击复杂度
    容易
  • 权限要求
    无需权限
  • 影响范围
    有限影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    数据泄露
  • 数据完整性
    传输被破坏
  • 服务器危害
    DoS
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-134 使用外部控制的格式字符串
阿里云安全产品覆盖情况