Skip to content

In-depth lesson · Crypto

Root causes

Every point the Crypto reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 37 of 37
  1. SSH backends were written without a host key verification callback or known hosts handling, so the state machine went straight from connection to transfer.

    Seen in 4 reports
  2. Session cache keys omitted part of the connection identity (signature algorithms, native CA store, SSL context callback), so sessions were resumed across different trust settings.

    Seen in 3 reports
  3. Verification code checked whether a status response was present rather than whether the status inside it was good, so revoked or failed cases were never reached.

    Seen in 3 reports
  4. A flag that skipped the OpenSSL OCSP check assumed the Apple trust path enforced OCSP, but that path only sees a stapled response when one is present.

    Seen in 3 reports
  5. The encryption routine used AES in CFB mode without authentication, so ciphertext integrity was never verified.

    Seen in 2 reports
  6. The client trusted the public key supplied by the server when adding a device and never checked that the device's private key corresponded to the previously stored public key.

    Seen in 2 reports
  7. Hostname verification was guarded by a check for the presence of a server name indication, so connections by IP address skipped the certificate host check.

    Seen in 2 reports
  8. The TLS handshake logic accepted a ChangeCipherSpec message at the wrong time, causing both sides to derive an empty master key.

    Seen in 1 report
  9. OpenSSL accepted Diffie-Hellman parameters based on non-safe primes without checking the subgroup order and did not enforce single-use DH exponents.

    Seen in 1 report
  10. The padding check was rewritten to be constant-time but failed to verify that the input contained enough data for both the MAC and padding bytes.

    Seen in 1 report
  11. The application used a naive hash construction of secret concatenated with message instead of a secure HMAC, allowing length extension attacks.

    Seen in 1 report
  12. The gem library used different tar entry selection logic for verification (last entry wins) and extraction (first entry wins).

    Seen in 1 report
  13. The request signature did not include the request payload and the replay-protection cache expired before the accepted timestamp window closed.

    Seen in 1 report
  14. The client accepted a new receiver public key without first proving the sender could decrypt an encrypted acknowledgement.

    Seen in 1 report
  15. The JWE specification omitted guidance on validating elliptic curve points, allowing invalid curve attacks.

    Seen in 1 report
  16. The deployment reused a default DTLS certificate and private key published with an open-source project instead of generating a unique pair.

    Seen in 1 report
  17. The SSL module did not include the signature verification resource in the resource list passed to the crypto library, so certificate signatures were never validated.

    Seen in 1 report
  18. The code handling the rejectUnauthorized option checked only whether the value was exactly false rather than whether it was false or undefined.

    Seen in 1 report
  19. The Flask session secret key was weak or guessable, allowing an attacker to sign arbitrary session data.

    Seen in 1 report
  20. The parser applied URL decoding to cookie names, so an encoded name could normalise to a security-prefixed name and be merged with the genuine cookie.

    Seen in 1 report
  21. The validation step was placed before the character shuffle, so the checked value and the issued value were not the same string.

    Seen in 1 report
  22. The key-generation code assumed the entropy source always succeeded and always produced cryptographically strong output without verifying either condition.

    Seen in 1 report
  23. The RSA decryption implementation did not run in constant time across all padding modes, leaking timing differences.

    Seen in 1 report
  24. The data hash was computed over an unencoded concatenation of transaction bytes, so transaction boundaries were not committed to.

    Seen in 1 report
  25. The application password was compared with a strict equality operator instead of a constant-time comparison function.

    Seen in 1 report
  26. The signature extractor assumed the signature header was the last header and ended the signed block at the first blank line rather than at the end of the signature, so trailing headers were folded into the signed data.

    Seen in 1 report
  27. The legacy Apple trust path compared an OS status code against trust result enum values instead of examining the actual trust result, leaving the result as success.

    Seen in 1 report
  28. The application was deployed with a default, guessable framework secret key instead of a random one, so session cookies could be forged.

    Seen in 1 report
  29. The token generator used a pseudo-random function seeded by a low-resolution system clock, giving a small set of predictable seeds.

    Seen in 1 report
  30. The masking key was generated once at connection start and reused for every frame instead of being regenerated per frame.

    Seen in 1 report
  31. The verifier decoded the amount from the encrypted metadata and summed it without recomputing the commitment to compare against the on-chain output.

    Seen in 1 report
  32. The wallet treated a syntactically valid address as acceptable even when DNSSEC validation failed, applying it alongside a warning.

    Seen in 1 report
  33. The verifier did not pin the signing algorithm, so it accepted an HMAC token signed with the public key used as the secret.

    Seen in 1 report
  34. The signature covered only part of the request, omitting the endpoint and payload, so signed requests could be altered.

    Seen in 1 report
  35. Invitation tokens were generated with insufficient entropy, making them brute forceable by anyone who knew an invitation was pending.

    Seen in 1 report
  36. The fallback socket pair relied on a short shared secret sent over a briefly open listening socket, which a local attacker could guess or read.

    Seen in 1 report
  37. The chain was built without a requested usage constraint and without a follow-up policy check, so extended key usage was never evaluated.

    Seen in 1 report