CWE-555 — J2EE Misconfiguration: Plaintext Password in Configuration File
CWE-555: J2EE Misconfiguration: Plaintext Password in Configuration File
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Variant |
| Status | Draft |
| Likelihood of exploit | — |
Description
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.
Common consequences
- Access Control: Bypass Protection Mechanism
Mitigations
Architecture and Design — Do not hardwire passwords into your software.
Architecture and Design — Use industry standard libraries to encrypt passwords before storage in configuration files.
References
- CWE page: https://cwe.mitre.org/data/definitions/555.html
- CWE list: https://cwe.mitre.org/data/index.html