关联漏洞
标题:
GNU glibc 基于堆的缓冲区错误漏洞
(CVE-2015-0235)
描述:GNU glibc(又名GNU C Library,libc6)是一种按照LGPL许可协议发布的开源免费的C语言编译程序。 GNU glibc 2.2版本和2.18之前2.x版本中的‘__nss_hostname_digits_dots’函数存在基于堆的缓冲区溢出漏洞。本地和远程攻击者都可通过调用‘ gethostbyname*()’函数利用该漏洞以运行应用程序的用户权限执行任意代码,控制系统。
描述
A shared library wrapper with additional checks for vulnerable functions gethostbyname2_r gethostbyname_r (GHOST vulnerability)
介绍
# CVE-2015-0235-workaround
aka GHOST glibc vulnerability
A shared library wrapper with additional checks for the vulnerable functions gethostbyname2_r and gethostbyname_r .
The proper solution for CVE-2015-0235 is to upgrade glibc to at least glibc-2.18.
In some cases, an immediate glibc upgrade is not possible, for example in custom production embedded systems, because such an upgrade requires a validation of the whole system.
In such cases, this workaround provides a hot fix solution, which is easier to validate.
Usage:
Compile, install and add gethostbyname_wrap.so /etc/ld.so.preload
文件快照
[4.0K] /data/pocs/98f47d66dfd24893ac9435af098a88df41c45596
├── [2.1K] gethostbyname_wrap.c
├── [ 58] gethostbyname_wrap_test.sh
├── [1.9K] GHOST2.c
├── [ 322] Makefile
└── [ 600] README.md
0 directories, 5 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。