CWE-312

Cleartext Storage of Sensitive Information

Medium

Description

The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.

Potential Impact

How to Fix

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.

Detection Methods

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-312 vulnerabilities in your codebase.

Get Security Assessment