vendor:
Enterprise Linux
by:
Tlabs
7,2
CVSS
HIGH
Privilege Escalation
264
CWE
Product Name: Enterprise Linux
Affected Version From: Redhat 6.2
Affected Version To: FreeBSD 4.1 Stable
Patch Exists: No
Related CWE: N/A
CPE: o:redhat:enterprise_linux:6.2
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Linux
2000
Exploiting SUID Privileges on RCP
This exploit takes advantage of the SUID privileges of the rcp command to gain root access. The exploit creates a shell script in the /tmp directory and then uses rcp to copy it to the localhost. The shell script is then compiled and given root privileges. Finally, the shell script is executed to gain root access.
Mitigation:
Remove the SUID bit from the rcp command.