Vulnerability
CVE-2018-1000001
Vulnerability details
- Score
- 7.8
- Severity
- high
CVSS 3.0 · NVD
Vector string
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDescription
In glibc 2.26 and earlier there is confusion in the usage of getcwd() by realpath() which can be used to write before the destination buffer leading to a buffer underflow and potential code execution.
CVE ProgramExploit source choices
11 sourcesThis module attempts to gain root privileges on Linux systems by abusing a vulnerability in GNU C Library (glibc) version 2.26 and prior. This module uses halfdog's RationalLove exploit to exploit a buffer underflow in glibc realpath() and create a SUID root shell. The exploit has offsets for glibc versions 2.23-0ubuntu9 and 2.24-11+deb9u1. The target system must have unprivileged user namespaces enabled. This module has been tested successfully on Ubuntu Linux 16.04.3 (x86_64) with glibc version 2.23-0ubuntu9; and Debian 9.0 (x86_64) with glibc version 2.24-11+deb9u1.
Linux Eelvation(持续更新)
glibc getcwd() local privilege escalation compiled binaries
Localroot Compile
a-roshbaik/linux-privilege-escalation-exploits source repository
albinjoshy03/linux-kernel-exploits source repository
0xto/linux-kernel-exploits source repository
alian87/linux-kernel-exploits source repository
HCTF 2018 - PWN - easyexp