vendor:
bash, tcsh, cash, ksh and sh
by:
proton
7.2
CVSS
HIGH
Arbitrary File Write
264
CWE
Product Name: bash, tcsh, cash, ksh and sh
Affected Version From: All
Affected Version To: All
Patch Exists: YES
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: Unix and Unix clone operating systems
2001
Vulnerability in Unix Shells
A vulnerability has been discovered in a number of Unix shells which may allow a local attacker to corrupt files or potentially elevate privileges. Scripts and command line operations using << as a redirection operator create files in the /tmp directory with a predictable naming convention. Additionally, files are created in the /tmp directory without first checking if the file already exists. This could result in a symbolic link attack that could be used to corrupt any file that the owner of the redirecting shell has access to write to.
Mitigation:
Ensure that all scripts and command line operations using << as a redirection operator are properly secured and that files are checked for existence before being created in the /tmp directory.