Pcornel
Security · OWASP

Cryptographic Failures

Cheat sheet · https://pcornel.dk/topic.php?topic=4768

Back to the Topic

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.

Remember

  • Use TLS everywhere.
  • Use modern algorithms and modes.
  • Hash passwords with Argon2/bcrypt.

First checks

  • testssl.sh <site> — TLS
  • Data at rest encryption review — sensitive data
  • Password hashing algorithm — Argon2id/bcrypt

Verify in this order

sensitive data → strong crypto → protected

Where it usually breaks

First mismatch in asset/subject identity → trust/authentication → authorization/policy → enforcement/control → telemetry/detection → protected outcome/response; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4768

Confirmation

Confirm action

Continue?