Slackware Linux 3.4 - 'netconfig' Temporary File
Author: neonhaze
type: local
platform: linux
port:
date_added: 1998-04-06
date_updated: 2012-06-11
verified: 1
codes: OSVDB-82887
tags:
aliases:
screenshot_url:
application_url:
source: https://www.securityfocus.com/bid/81/info
netconfig creates the file /tmp/tmpmsg insecurely and follows symbolic links. An attacker can create a symbolic link from /tmp/tmpmsg to any file and wait for root to run the program. This will clober the target file. The file created has permissions -rw-r--r--.
$ ln -s /tmp/tmpmsg /etc/passwd
< wait for root to run netconfig >