Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Cryptographic Failures

Direct answer

Cryptographic failures (OWASP A02) expose sensitive data through missing or weak encryption, such as plain HTTP, outdated algorithms or unsalted password hashes. Use TLS, AES-GCM and Argon2 or bcrypt.

When to use this

Use this when sensitive data lacks proper encryption (OWASP A02).

First 30 seconds

1. Cryptographic failures: weak/no encryption, poor key management, weak hashing.

2. Classify data.

3. Encrypt in transit and at rest.

4. Modern algorithms.

5. Don't roll your own.

Operational verification

sensitive data → strong crypto → protected

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Security architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformSecurity architecture and operations
Scope / prerequisiteUse this when sensitive data lacks proper encryption (OWASP A02).
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Quick checks Verify boundary
  • nmap --script ssl-enum-ciphers -p 443 host — no TLS 1.0/1.1, no CBC-only or RC4 suites.
  • Passwords stored with Argon2id/bcrypt/scrypt, not MD5/SHA-1/SHA-256.
  • No secrets or keys in source code (gitleaks detect).
  • Sensitive fields encrypted at rest with keys in a KMS.
  • Random values from a CSPRNG (secrets, random_bytes), not rand().
Step 2 Common mistakes Narrow the fault
  • Weak or custom crypto; secrets in code.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Use TLS everywhere.
  • Use modern algorithms and modes.
  • Hash passwords with Argon2/bcrypt.
Key checks
  • testssl.sh <site> — TLS
  • Data at rest encryption review — sensitive data
  • Password hashing algorithm — Argon2id/bcrypt
ReferenceWhy it matters1 section · depth on demand

Checklist

  • Classify data and encrypt sensitive data in transit (TLS 1.2+) and at rest.
  • Store passwords with Argon2id/bcrypt/scrypt.
  • No MD5/SHA-1 for security, no ECB, no hard-coded keys.
  • Keys in a KMS/vault, rotated, with access logged.
  • Do not keep sensitive data longer than needed.
ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Cryptographic failures cover sensitive data exposed due to missing or weak cryptography: data sent without TLS, passwords stored with fast hashes, outdated algorithms, hard-coded keys or disabled certificate validation.

Common failures and fixes:

FailureFix
Plain HTTP or internal unencrypted APIsTLS everywhere, HSTS
Passwords hashed with MD5/SHA-1Argon2id, scrypt, bcrypt
Hard-coded keys in codeKey management service, secret store
ECB mode, home-made cryptoVetted libraries with AEAD
Certificate validation disabledProper trust stores
Sensitive data stored unnecessarilyData minimisation

Start by classifying data and identifying where sensitive data is stored and transmitted, then apply protection accordingly.

Examples

  • Passwords hashed with MD5 or unsalted SHA-1.
  • Sensitive data sent over HTTP or old TLS.
  • Encryption keys in source code or config files in Git.
  • Predictable tokens from non-cryptographic random functions.
  • Certificates not validated in API clients (verify=False).
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docSecurity architecture and operations current

Authoritative/upstream documentation reviewed for bounded claims in OWASP → Cryptographic Failures. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://owasp.org/www-project-application-security-verification-standard/ · confidence 94%
Confirmation

Confirm action

Continue?