字号·· | 护眼
漏洞档案 · 严重

Grandstream UCM6200 SQL注入(CVE-2020-5722)

CVE-2020-5722
CVSS 9.8 / 3.1 EPSS 84.3% CISA KEV 在野利用 公开 PoC · 1 Nuclei 模板
综合风险93/ 100
CVSS9.8严重
EPSS84.3%30 天利用概率
机构收录时间2020-03-24更新 2026-12-01

研判简报

概述

Grandstream UCM6200 系列 HTTP 接口的「Forgot Password」功能接收 user_name 参数,并用它在 SQLite 用户表中查询用户是否存在,该查询存在 SQL 注入(CWE-89)。攻击者无需认证,通过构造 HTTP 请求即可注入:在 1.0.19.20 之前版本中经 sendMail.py 的 popen 调用执行 root shell 命令;在 1.0.20.17 之前版本中向密码找回邮件注入任意 HTML。由于利用无需凭据、可直达设备完全控制,且该产品为 IP PBX 类面向公网设备,暴露在互联网上的实例应优先关注。

严重性

CVSS 3.1 评分 9.8(AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H),综合风险分 93.06/100,评级 critical。EPSS 30 天利用概率 84.3%(百分位 99.7%,数据日期 2026-11-23)。攻击面是面向网络的 HTTP 管理接口,无需认证、单请求即可触发(Nuclei 模板 max-request: 1)。

利用状态

CISA KEV 已收录(收录日期 2022-01-28,要求动作期限 2022-07-28,动作:Apply updates per vendor instructions.)。已存在公开 Nuclei 检测模板(http/cves/2020/CVE-2020-5722.yaml),Exploit-DB 有 1 条公开 PoC(48247),并存在 Rapid7 Metasploit 模块(grandstream_ucm62xx_sendemail_rce)。CISA SSVC 判定:automatable=yes、exploitation=active、technical_impact=total。以上状态核查日期为 2026-11-24。

受影响产品

Grandstream UCM6200 Series,受影响版本为 Before 1.0.20.17。细分来看:1.0.19.20 之前版本可被用于以 root 执行 shell 命令;1.0.20.17 之前版本可被用于向密码找回邮件注入 HTML。涉及组件为 HTTP 接口的密码找回/发送邮件流程(sendPasswordEmail、sendMail.py、SQLite 用户表查询)。部署形态为 IP PBX 设备;Nuclei 模板给出的指纹查询为 ssl:"Grandstream" "Set-Cookie: TRACKID"。

修复版本

官方修复版本为 UCM62xx 1.0.20.17 或更新版本。需要说明一处材料出入:Nuclei 模板的 remediation 描述称 1.0.19.20 修复 root 命令执行、1.0.20.17 修复邮件 HTML 注入,Tenable 通告亦记录 1.0.19.20 因阻断 shell 元字符而无意间堵住命令执行路径、SQL 注入本身在 1.0.20.17 才修复;官方受影响版本记录为 Before 1.0.20.17,以官方记录为准,即升级到 1.0.20.17 及以上。

缓解措施

材料未给出除升级外的厂商官方缓解措施。KEV 要求动作为按厂商说明应用更新。在无法立即升级时,材料未给出具体替代控制项。

响应步骤

  1. 资产排查:按 Grandstream UCM6200 系列及 HTTP 接口指纹(如 ssl:"Grandstream" "Set-Cookie: TRACKID")清点暴露实例,确认固件版本是否低于 1.0.20.17。
  2. 收敛暴露面:核查这些 HTTP 管理接口是否可从互联网访问,作为优先处置对象。
  3. 升级处置:将设备升级至 1.0.20.17 或更新版本,并核对升级后版本号。
  4. 检测验证:使用公开 Nuclei 模板(http/cves/2020/CVE-2020-5722.yaml)在授权范围内自查,关注 sendPasswordEmail 请求中 user_name 携带的 shell 元字符或 SQL 片段。
  5. 日志回溯:排查 HTTP 访问日志中针对密码找回接口的可疑请求,以及设备上异常的外连与命令执行迹象(参考 ATT&CK T1190、T1005)。
  6. 追踪状态:以 KEV 与厂商通告为准复核修复情况,本记录核查日期为 2026-11-24。

参考来源

  1. https://nvd.nist.gov/vuln/detail/CVE-2020-5722kev
  2. https://www.exploit-db.com/exploits/48247exploit,exploitdb
  3. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-5722.yamlexploit,nuclei
  4. https://www.tenable.com/security/research/tra-2020-15x_refsource_MISC,x_refsource_MISC,x_transferred
  5. http://packetstormsecurity.com/files/156876/UCM6202-1.0.18.13-Remote-Command-Injection.htmlx_refsource_MISC,x_refsource_MISC,x_transferred
  6. http://packetstormsecurity.com/files/165708/Grandstream-UCM62xx-IP-PBX-sendPasswordEmail-Remote-Code-Execution.htmlx_refsource_MISC,x_refsource_MISC,x_transferred
  7. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-5722government-resource
  8. https://github.com/rapid7/metasploit-framework/tree/master/modules/exploit_linux/http/grandstream_ucm62xx_sendemail_rceexploit,metasploit
  9. https://unit42.paloaltonetworks.com/new-hoaxcalls-ddos-botnet/kev
  10. https://www.radware.com/security/ddos-threats-attacks/threat-advisories-attack-reports/hoaxcalls-evolution/kev
  11. https://blog.radware.com/security/botnets/2020/05/whos-viktor-tracking-down-the-xtc-polaris-botnets/kev
  12. https://blog.radware.com/security/botnets/2020/05/ghosting-bots-the-story-of-hoaxcalls-failures/kev
  13. https://blog.netlab.360.com/ddos-botnet-moobot-en/kev
  14. https://unit42.paloaltonetworks.com/iot-vulnerabilities-mirai-payloads/kev
  15. https://euvd.enisa.europa.eu/enisa/EUVD-2020-26881kev
  16. https://www.cisa.gov/known-exploited-vulnerabilities-catalogkev