结构: Simple
Abstraction: Variant
状态: Draft
被利用可能性: unkown
The J2EE application stores a plaintext password in a configuration file.
Storing a plaintext password in a configuration file allows anyone who can read the file to access the password-protected resource, making it an easy target for attackers.
范围 | 影响 | 注释 |
---|---|---|
Access Control | Bypass Protection Mechanism |
策略:
Do not hardwire passwords into your software.
策略:
Use industry standard libraries to encrypt passwords before storage in configuration files.
Below is a snippet from a Java properties file in which the LDAP server password is stored in plaintext.
bad Java