Property
Languageregex
Severitylow
CWECWE-798: Use of Hard-coded Credentials
OWASPA07:2021 - Identification and Authentication Failures
Confidence LevelLow
Impact LevelMedium
Likelihood LevelLow

Description#

The use of ‘sshpass’ with a hard-coded SSH password exposes sensitive credentials directly in scripts or command lines. This practice makes the password easily accessible to anyone with access to the code or system process list.

Impact#

If an attacker obtains the hard-coded SSH password, they could gain unauthorized access to remote systems, potentially leading to data breaches, system compromise, or lateral movement within your infrastructure. This undermines the security of your authentication process and can result in significant organizational risk.