In-depth lesson · Crypto
Typical fixes
Every point the Crypto reports back under this heading, best-backed first, each with the reports it is seen in.
-
Disable deprecated protocols such as SSLv2, SSLv3 and TLS 1.0 and enable only modern TLS versions.
Seen in 10 reports
-
Use a constant-time comparison function for API token and HMAC verification.
Seen in 8 reports
-
Disable 64-bit block ciphers such as 3DES.
Seen in 6 reports
-
Verify the certificate hostname in all TLS clients.
Seen in 6 reports
-
Use an authenticated encryption mode and return uniform error messages for decryption failures.
Seen in 5 reports
-
Set a Strict-Transport-Security header with a sufficiently long max-age on all HTTPS responses.
Seen in 5 reports
-
Use a cryptographically secure random number generator for authentication tokens.
Seen in 5 reports
-
Use short nonces or ensure nonces are never reused with ChaCha20-Poly1305.
Seen in 4 reports
-
Raise an exception when the server's response to STARTTLS is unexpected and do not fall back to cleartext.
Seen in 4 reports
-
Check the actual certificate status inside an OCSP response, not merely that a response is present, and enforce it on every backend and trust path.
Seen in 4 reports
-
Normalise host names before deciding whether they are IP addresses, and always set the hostname for verification even for IP endpoints.
Seen in 4 reports
-
Serve the login form over HTTPS and redirect HTTP requests to HTTPS.
Seen in 3 reports
-
Publish an SPF record that covers all sending hosts.
Seen in 3 reports
-
Disable HTTP compression on responses that reflect user input or use a mitigation against BREACH.
Seen in 3 reports
-
Verify that the device's private key matches the previously stored public key when adding a device.
Seen in 3 reports
-
Use a unique nonce for each ECDSA signature.
Seen in 3 reports
-
Include the full connection identity (signature algorithms, CA store, SSL context callback) in the session cache key.
Seen in 3 reports
-
Implement a host key verification callback and known hosts handling in every SSH backend.
Seen in 3 reports
-
Publish a Certificate Authority Authorization rule for the domain.
-
Implement certificate pinning in mobile and desktop apps.
Seen in 2 reports
-
Implement rate limiting, account lockout or delays on the login page.
-
Replace MD5 with a strong hash or HMAC for key-auth signatures.
Seen in 2 reports
-
Use an authenticated encryption mode or add an HMAC to verify ciphertext integrity.
Seen in 2 reports
-
Replace SHA-1 with a stronger signature algorithm.
-
Do not reuse TLS sessions across different hostnames.
-
Validate the IMAP and SMTP server certificate.
Seen in 2 reports
-
Verify SSH signatures correctly.
Seen in 2 reports
-
Use CONNECT and validate upstream HTTPS certificates when using a proxy.
Seen in 2 reports
-
Do not read openssl.cnf from an unexpected path on startup.
-
Normalise the hostname before applying HSTS so trailing dots and IDN variants are covered.
Seen in 1 report
-
Encrypt stored passwords with a key that is not recoverable by an attacker.
Seen in 1 report
-
Use a secure TLS configuration with modern protocols and ciphers.
Seen in 1 report
-
Apply HSTS on every request, not just the first.
Seen in 1 report
-
Include an anti-CSRF token in all state-changing HTML forms and validate it on the server.
Seen in 1 report
-
Disable TLS-level compression to prevent the CRIME attack.
-
Use an RSA key of at least 2048 bits.
Seen in 1 report
-
Use a secure HMAC instead of a naive hash construction for redirect signatures.
Seen in 1 report
-
Set cache-control headers that prevent caching of sensitive HTTPS pages.
Seen in 1 report
-
Require email verification before activating an account.
Seen in 1 report
-
Medium
-
-
Disable vulnerable or deprecated SSH algorithms.
Seen in 1 report
-
Use consistent tar entry selection logic for verification and extraction.
Seen in 1 report
-
$1,000 Medium
-
-
Generate TOTP secrets of at least 128 bits as recommended by RFC 4226.
Seen in 1 report
-
Include the request payload in the signature and ensure the replay cache outlives the accepted timestamp window.
-
Include the endpoint and the full payload in the signed data.
-
Use a DKIM key of adequate size.
Seen in 1 report
-
Do not send request data over an unencrypted connection when the CONNECT request fails.
-
Validate elliptic curve points in JWE implementations.
Seen in 1 report
-
Require proof that the sender can decrypt an encrypted acknowledgement before accepting a new public key.
Seen in 1 report
-
Generate a unique DTLS certificate and private key instead of reusing a public one.
Seen in 1 report
-
Generate unpredictable download cookies and validate them on the server.