CWE-312 — Cleartext Storage of Sensitive Information
CWE-312: Cleartext Storage of Sensitive Information
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Base |
| Status | Draft |
| Likelihood of exploit | — |
Description
The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.
Common consequences
- Confidentiality: Read Application Data
Mitigations
Implementation — When storing data in the cloud (e.g., S3 buckets, Azure blobs, Google Cloud Storage, etc.), use the provider's controls to encrypt the data at rest. [REF-1297] [REF-1299] [REF-1301]
Implementation — In some systems/environments such as cloud, the use of "double encryption" (at both the software and hardware layer) might be required, and the developer might be solely responsible for both layers, instead of shared responsibility with the administrator of the broader system/environment.
References
- CWE page: https://cwe.mitre.org/data/definitions/312.html
- CWE list: https://cwe.mitre.org/data/index.html