CWE-261: Weak Encoding for Password

BaseIncomplete

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

View on MITRE
Back to CWE Lookup

Extended Description

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.

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Frequently Asked Questions

What is CWE-261: Weak Encoding for Password?+

CWE-261: Weak Encoding for Password is a Common Weakness Enumeration (CWE) entry maintained by MITRE. 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.

What are the security consequences of Weak Encoding for Password?+

If exploited, CWE-261 (Weak Encoding for Password) it can compromise Access Control, leading to outcomes such as Gain Privileges or Assume Identity.

How do you prevent or mitigate Weak Encoding for Password?+

Recommended mitigations for CWE-261 include: Passwords should be encrypted with keys that are at least 128 bits in length for adequate security.

Which programming languages are affected by Weak Encoding for Password?+

CWE-261 commonly affects Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-261 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More