中危 OpenSSH xauth命令注入漏洞

CVE编号

CVE-2016-3115

利用情况

POC 已公开

补丁情况

官方补丁

披露时间

2016-03-22
漏洞描述
OpenSSH是一套用于安全访问远程计算机的连接工具。
OpenSSH 7.2p1及之前版本的session.c文件中存在CRLF注入漏洞。远程攻击者可利用该漏洞绕过既定的shell-command限制。
解决建议
目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:
http://www.openssh.com/txt/x11fwd.adv
参考链接
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/session.c
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/session.c.diff?r1=1....
http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183101.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183122.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178838.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-March/179924.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-March/180491.html
http://lists.fedoraproject.org/pipermail/package-announce/2016-May/184264.html
http://packetstormsecurity.com/files/136234/OpenSSH-7.2p1-xauth-Command-Injec...
http://rhn.redhat.com/errata/RHSA-2016-0465.html
http://rhn.redhat.com/errata/RHSA-2016-0466.html
http://seclists.org/fulldisclosure/2016/Mar/46
http://seclists.org/fulldisclosure/2016/Mar/47
http://www.openssh.com/txt/x11fwd.adv
http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html
http://www.securityfocus.com/bid/84314
http://www.securitytracker.com/id/1035249
https://bto.bluecoat.com/security-advisory/sa121
https://github.com/tintinweb/pub/tree/master/pocs/cve-2016-3115
https://lists.debian.org/debian-lts-announce/2018/09/msg00010.html
https://security.gentoo.org/glsa/201612-18
https://www.exploit-db.com/exploits/39569/
https://www.freebsd.org/security/advisories/FreeBSD-SA-16:14.openssh.asc
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 openbsd openssh * Up to
(including)
7.2
运行在以下环境
系统 amazon_AMI openssh * Up to
(excluding)
6.6.1p1-23.60.amzn1
运行在以下环境
系统 centos_6 openssh-server * Up to
(excluding)
5.3p1-114.el6_7
运行在以下环境
系统 centos_7 openssh * Up to
(excluding)
6.6.1p1-25.el7_2
运行在以下环境
系统 debian DPKG * Up to
(excluding)
1:7.2p2-1
运行在以下环境
系统 debian_10 openssh * Up to
(excluding)
1:7.2p2-1
运行在以下环境
系统 debian_11 openssh * Up to
(excluding)
1:7.2p2-1
运行在以下环境
系统 debian_12 openssh * Up to
(excluding)
1:7.2p2-1
运行在以下环境
系统 fedora_22 gsi-openssh * Up to
(excluding)
6.9p1-11.fc22
运行在以下环境
系统 fedora_23 gsi-openssh * Up to
(excluding)
7.2p2-1.fc23
运行在以下环境
系统 fedora_24 gsi-openssh * Up to
(excluding)
7.2p2-1.fc24
运行在以下环境
系统 fedora_EPEL_6 gsi-openssh * Up to
(excluding)
5.3p1-13.el6
运行在以下环境
系统 fedora_EPEL_7 gsi-openssh * Up to
(excluding)
6.6.1p1-4.el7
运行在以下环境
系统 opensuse_Leap_42.1 openssh-fips * Up to
(excluding)
6.6p1-11.1
运行在以下环境
系统 oracle_5 oraclelinux-release * Up to
(excluding)
4.3p2-82.0.2.el5
运行在以下环境
系统 oracle_6 oraclelinux-release * Up to
(excluding)
5.3p1-114.el6_7
运行在以下环境
系统 oracle_7 oraclelinux-release * Up to
(excluding)
6.6.1p1-25.el7_2
运行在以下环境
系统 redhat_6 openssh * Up to
(excluding)
0:5.3p1-114.el6_7
运行在以下环境
系统 redhat_7 openssh * Up to
(excluding)
6.6.1p1-25.el7_2
运行在以下环境
系统 suse_11_SP4 openssh * Up to
(excluding)
6.6p1-21.1
运行在以下环境
系统 suse_12 openssh * Up to
(excluding)
6.6p1-42.1
运行在以下环境
系统 suse_12_SP1 openssh * Up to
(excluding)
6.6p1-42.1
运行在以下环境
系统 ubuntu_12.04.5_lts openssh * Up to
(excluding)
1:5.9p1-5ubuntu1.9
运行在以下环境
系统 ubuntu_14.04 openssh * Up to
(excluding)
1:6.6p1-2ubuntu2.7
运行在以下环境
系统 ubuntu_14.04.6_lts openssh * Up to
(excluding)
1:6.6p1-2ubuntu2.7
运行在以下环境
系统 ubuntu_16.04.7_lts openssh * Up to
(excluding)
1:7.2p2-4
阿里云评分
4.5
  • 攻击路径
    远程
  • 攻击复杂度
    复杂
  • 权限要求
    普通权限
  • 影响范围
    越权影响
  • EXP成熟度
    POC 已公开
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    100
CWE-ID 漏洞类型
NVD-CWE-Other
阿里云安全产品覆盖情况