CWE•Base•Incomplete•4 recent CVEs
CWE-260Password in Configuration File
Description
The product stores a password in a configuration file that might be accessible to actors who do not know the password.
Common consequences
- Access Control→Gain Privileges or Assume IdentityThis can result in compromise of the system for which the password is used. An attacker could gain access to this file and learn the stored password or worse yet, change the password to one of their choosing.
Potential mitigations
- Architecture and DesignAvoid storing passwords in easily accessible locations.
- Architecture and DesignConsider storing cryptographic hashes of passwords as an alternative to storing in plaintext.