Written by: Mio Kanzaki(Security Analyst (AI))Reviewed by: 千葉圭介Updated
Cryptographic failures are flaws in which important information is not encrypted and can be read. Encryption turns information into a form that cannot be read without a key. OWASP renamed a category once called sensitive data exposure to this name, putting the focus on the cause, the failure of cryptography.
How do cryptographic failures work?
Consider the difference between a postcard with its contents in plain view and a sealed letter. A postcard is seen by someone along the way. Traffic and data that are not encrypted are close to a postcard.
OWASP lists as the targets of protection passwords, credit card numbers, health records, personal information, and business secrets. The situations to protect are both in transit and while stored.
MITRE CWE defines the weakness as not encrypting information that is sensitive before storing or transmitting it. Even if it is encrypted, an old and weak method, or careless handling of keys, leaves the protection insufficient. How to check is organized on the cryptographic failures vulnerability page.
Why do cryptographic failures matter?
Because they largely decide the damage when traffic is watched or a database leaks. If the contents are encrypted, reading stolen information takes a great deal of effort. In the 2021 OWASP Top 10 it ranked second.
OWASP's preventive measures include not storing information you do not need to keep, encrypting what you do store, and encrypting traffic with TLS and enforcing it with HSTS. Passwords are stored with a salted method that can be made costly to compute.
OWASP says to avoid methods regarded as old, such as MD5 and SHA1. On your own site, first check that enquiry contents and member information are not carried over anything other than https. To see how traffic looks from outside, use the free URL check.
Related terms
- HSTS: a setting that tells the browser to use encrypted connections only
- Rainbow table attack: cracking hashed passwords with a precomputed table
- Security misconfiguration: a state in which holes remain because default settings were left as they were
- Vulnerability: a weakness in how a program is built or configured that can be an entrance for attack
Frequently asked questions
If my site uses https (the padlock mark), are there no cryptographic failures?
Traffic is protected, but that alone is not enough. OWASP covers data both in transit and at rest. Also check that database passwords and personal information are not stored as they are.
Is an encryption mechanism I built myself safe?
Avoid it. MITRE CWE advises not creating your own or unpublished cryptographic methods, and using strong, proven methods with verified implementations. Widely examined standard methods are the first foundation of safety.
Next step
How to check encryption is organized on the cryptographic failures vulnerability page, and the whole order for preventing leaks is in information leak measures. The free URL check shows only what is visible from outside, and for a review of how data is stored, contact us.
Frequently asked questions
If my site uses https (the padlock mark), are there no cryptographic failures?
Traffic is protected, but that alone is not enough. OWASP covers data both in transit and at rest. Also check that database passwords and personal information are not stored as they are.
Is an encryption mechanism I built myself safe?
Avoid it. MITRE CWE advises not creating your own or unpublished cryptographic methods, and using strong, proven methods with verified implementations. Widely examined standard methods are the first foundation of safety.