Skip to content
OpenAdvisories

Weakness (CWE)

CWE-256: Plaintext Storage of a Password

Base Incomplete

The product stores a password in plaintext within resources such as memory or files.

How to prevent it (3 mitigations)
  1. Architecture and Design

    Avoid storing passwords in easily accessible locations.

  2. Architecture and Design

    Consider storing cryptographic hashes of passwords as an alternative to storing in plaintext.

  3. A programmer might attempt to remedy the password management problem by obscuring the password with an encoding function, such as base 64 encoding, but this effort does not adequately protect the password because the encoding can be detected and decoded easily.

Source: MITRE CWE-256

46 results · Clear filters · Feed