Umbra Wiki weakness weakness/CWE-261
Back to wiki

CWE-261 — Weak Encoding for Password

provenance: imported · CWE: CWE-261

CWE-261: Weak Encoding for Password

MITRE CWE weakness

Kind Weakness
Abstraction Base
Status Incomplete
Likelihood of exploit

Description

Obscuring a password with a trivial encoding does not protect the password.

Password management issues occur when a password is stored in plaintext in an application's properties or configuration file. A programmer can 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.

Common consequences

  • Access Control: Gain Privileges or Assume Identity

Mitigations

General — Passwords should be encrypted with keys that are at least 128 bits in length for adequate security.

References

  • CWE page: https://cwe.mitre.org/data/definitions/261.html
  • CWE list: https://cwe.mitre.org/data/index.html