vendor:
chkrootkit
by:
Anonymous
7,2
CVSS
HIGH
Local Privilege Escalation
264
CWE
Product Name: chkrootkit
Affected Version From: N/A
Affected Version To: N/A
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: Linux
2020
Vulnerability in chkrootkit Package
A vulnerability in the chkrootkit package may allow local attackers to gain root access to a box in certain configurations (/tmp not mounted noexec). The vulnerability is located in the function slapper() in the shellscript chkrootkit, where the line 'file_port=$file_port $i' will execute all files specified in $SLAPPER_FILES as the user chkrootkit is running (usually root), if $file_port is empty, because of missing quotation marks around the variable assignment. An attacker with write access to /tmp (not mounted noexec) may take advantage of this.
Mitigation:
Put quotation marks around the assignment.