header-logo
Suggest Exploit
vendor:
makebootdisk
by:
SecurityFocus
7.2
CVSS
HIGH
Symlink Attack
N/A
CWE
Product Name: makebootdisk
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2002

makebootdisk creates the file /tmp/return insecurely

makebootdisk creates the file /tmp/return insecurely and follows symbolic links. An attacker can create a symbolic link from /tmp/return to any file and wait for root to run the program. This will clober the target file.

Mitigation:

Ensure that the program does not follow symbolic links.
Source

Exploit-DB raw data:

source: https://www.securityfocus.com/bid/78/info

makebootdisk creates the file /tmp/return insecurely and follows symbolic links. An attacker can create a symbolic link from /tmp/return 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/return /etc/passwd
< wait for root to run makebootdisk >