SiteShadow
Back to vulnerability library
Detected byCWE-aware static analysis

CWE-256 Plaintext Storage of a Password

Coverage: 26 rules in the SiteShadow rule registry target this CWE (registry v2.0.0). Regex 26 Also: Taint and heuristic analyzers may also detect related flows (see coverage for the authoritative list) Registry tagging shows intent, for sample-level behaviour and benchmarked gaps see known gaps.

What this means

SiteShadow flagged a password being stored or handled without proper one-way password hashing (plaintext storage, reversible "encryption," or weak hashing).

Why it matters

If a database or log is leaked, plaintext passwords are immediately usable.

Safer examples

1) Hash passwords with Argon2id/scrypt/bcrypt

from argon2 import PasswordHasher
ph = PasswordHasher()
stored_hash = ph.hash(password)

2) Verify using the hashing library (constant time)

ph.verify(stored_hash, password_attempt)

3) Never "decrypt passwords"

Passwords are verified, not decrypted. If you need a recoverable secret, store a separate secret with separate protection.

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Catch this in your code with SiteShadow.

Every released SiteShadow scanner is free, including full project analysis, reports, patterns, dashboard access, and configured organization SSO.