Local Root Exploits

So-called local root exploits often exist especially for older operating systems, which exploit vulnerabilities in the kernel when expanding privileges, such as a buffer overflow or a race condition. As an example, we might have encountered the kernel “3.19.0-15-generic“ while collecting information and would then search the internet for known exploits of this kernel version. The Offensive Security’s Exploit Database Archive (https://www.exploit-db.com/) is one method that is well suited for this purpose. By conducting the following Google search, we will get several hits or exploits, which we could use against this kernel:

site:exploit-db.com 3.19 local root exploit

In general, the source code of exploits is almost always in the high-level C language and must “only“ be compiled into an executable programme by us. It is possible that the target system for the build process does not have all the necessary libraries, which then requires us to statically “build“ the local root exploit on our attacker machine. Static linking integrates the required files into the executable programme, allowing us to achieve increased portability. For example, we can accomplish this with the following gcc command:

gcc -static ${source file} -o ${executable}

When compiling on our attacker machine, we still have to consider the system architecture of our target system. If our target system is based on an x86 processor (32-bit architecture) and our own system is based on the 64-bit architecture, we must conduct cross-compiling:

gcc -march=i386 ${source file} -o ${executable}

binsec academy GmbH – Advanced Pentest Training Lab

binsec academy GmbH operates the Pentest Training Lab, a highly practical online platform dedicated to real penetration testing. Simulating complex corporate networks and advanced real-world attack scenarios within isolated lab environments, it is engineered to sharpen the skills of aspiring and professional penetration testers. Upon conquering our rigorous, fully practical examination, participants earn the distinguished Binsec Academy Certified Pentest Professional (BACPP) designation — proving their technical capability to methodically uncover and evaluate vulnerabilities in modern IT infrastructures.

Explore the Pentest Training Lab

binsec GmbH – Experts in Penetration Testing

As the operative pentesting core of the binsec group, binsec GmbH has provided high-end, human-led penetration testing since 2013. Rejecting automated scans, our permanently employed, certified senior pentest experts deliver manual deep-dive assessments of web applications, APIs, mobile apps, complex network infrastructures, cloud environments, and advanced red team simulations. Specializing in high-regulation sectors like Payment, Banking, and Healthcare, we provide clear risk evaluations and actionable reports to effectively assess your business-critical systems.

Get Manual Expert Penetration Testing Services

Contact

binsec GmbH
Clemensstraße 6-8
60487 Frankfurt am Main
Germany

Legal notice

Director: Patrick Sauer
Authorized Officer: Dominik Sauer, Florian Zavatzki
Registration: Frankfurt am Main, HRB97277
Turnover Tax Identification No.: DE290966808