Cryptography (CR5)

CRYPTOGRAPHY
5

Kyle puede eludir los controles criptográficos porque no fallan de forma segura (es decir, por defecto no protegen)

How to play?

Unlike other cards in this suit, Cryptography 5 assumes that cryptographic functions are in place, however they do not correctly respond to errors.

Scenario: Kyle's Bypassing of Non-Secure Cryptographic Failures

Envision a scenario where Kyle exploits cryptographic systems that default to an unprotected state when they fail. This vulnerability arises from:

  1. Non-Secure Default in Failure Scenarios: In case of a failure in the cryptographic process, the system defaults to allowing access or processing data without encryption, rather than ensuring protection.

Example

Kyle targets an application that handles sensitive data encryption. He observes that when there’s a failure in the encryption process, perhaps due to configuration errors or system issues, the application continues to process and transmit data in an unencrypted state. Exploiting this, Kyle induces failures in the cryptographic system, causing the application to revert to its non-secure default state. This allows him to access sensitive data that should have been encrypted.

Threat Modeling

STRIDE

The applicable STRIDE category for this scenario is Information Disclosure or Tampering depending on the context.

Kyle may be able to access sensitive data because the cryptographic controls fail insecurely (defaulting to unprotected). The main impact than is that confidential information is exposed, rather than modified (Tampering) or misused to gain higher privileges (Elevation of Privilege), but if the scenario involves cryptographic integrity mechanisms, like digital signatures or message authentication codes (MACs), then a failure could allow Kyle to modify data undetected. In that case, the primary impact would be Tampering rather than Information Disclosure.

What can go wrong?

Such a vulnerability can lead to data exposure and breaches, as it allows sensitive information to be processed or transmitted without the intended cryptographic protection.

For more things that can go wrong, see the Common Attack Patterns related to this card in the table below.

What are we going to do about it?

Cryptographic function errors always need to result in rejection. It is also useful to log (associated with the user's identity if possible) and flag these as possibly malicious activity for further analysis, or as input for application intrusion detection systems.

  1. Design cryptographic systems to fail securely, ensuring that in the event of a failure, data remains protected or access is restricted.
  2. Implement robust error handling that maintains security standards even when cryptographic processes encounter issues.
  3. Regularly test and audit cryptographic systems to ensure they respond securely to failures and do not expose sensitive data.

For detailed advice on how to mitigate threats related to the card, see the ASVS and OWASP Developer Guide requirements in the table below.

Mappings

OWASP ASVS (v5.0): 11.2.5,12.2.1,16.3.3,16.3.4

OWASP DevGuide: CP3,PDT4

STRIDE: Tampering,Information Disclosure

CAPEC™: 24,620

SAFECode™: 21,29

CAPEC Map

CodeTitleASVS
24Filter Failure through Buffer Overflow
620Drop Encryption Level

ASVS (5.0) Cheat Sheet Series Index

Password Guessing/Brute Force Attacks

OWASP Cornucopia

OWASP Cornucopia is a mechanism in the form of a card game to assist software development teams identify security requirements in Agile, conventional and formal development processes. It is language, platform and technology-agnostic, and is free to use. OWASP Cornucopia is licensed under the Creative Commons Attribution-ShareAlike 4.0 license, so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar licence to this one.

© 2012-2025 OWASP Foundation. The Open Worldwide Application Security Project (OWASP) is a nonprofit foundation that works to improve the security of software.