Cryptography (CR7)

CRYPTOGRAPHY
7

Gunter consegue interceptar ou modificar dados criptografados em trânsito porque o protocolo está mal implantado, ou configurado de forma fraca, ou os certificados estão inválidos, ou os certificados não são confiáveis, ou a conexão pode ser deteriorada para uma comunicação mais fraca ou descriptografada

How to play?

The card is related to weak configuration rather than missing encryption.

Scenario: Gunter's Exploitation of Flaws in Encryption Protocols

Imagine a scenario where Gunter intercepts or modifies encrypted data in transit, taking advantage of weak deployment or configuration of encryption protocols. This occurs due to:

  1. Poor Deployment of Encryption Protocols: The application’s encrypted communication protocols are implemented improperly.
  2. Weak Configuration: The settings for encrypted communications are not optimized, leaving vulnerabilities.
  3. Invalid or Untrusted Certificates: The application uses certificates that are either invalid or not trusted by client systems.
  4. Degradation of Communication Security: The system allows the encryption level to be downgraded to weaker or unencrypted states.

Example

Gunter targets an online service that uses encryption for data transmission. However, he discovers that the service’s SSL/TLS configuration is outdated, allowing him to exploit known vulnerabilities. Additionally, the service uses self-signed certificates, which are not properly validated, increasing the risk of man-in-the-middle attacks. Gunter leverages these weaknesses to intercept and decrypt the data being transmitted, modifying it before re-encryption and forwarding.

Threat Modeling

STRIDE

The primary applicable STRIDE categories for this scenario is Information Disclosure and Tampering.

Because Gunter can intercept and decrypt the data in transit due to weak protocol deployment, misconfigured SSL/TLS, or untrusted/invalid certificates. This is a confidentiality failure, but as he can also modify the encrypted data (MITM style, degrade the connection, or re-encrypt altered content), it also falls into Tampering, finally, if cryptographic signatures is used and can be faked, the Tampering can also lead to Spoofing.

What can go wrong?

Such vulnerabilities can lead to data interception, unauthorized access, and information tampering, potentially compromising user privacy and data integrity.

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?

Configuration best practice guidance needs to be reviewed periodically, vulnerability announcements monitored, and configuration standards updated.

  1. Ensure proper deployment and configuration of encryption protocols, adhering to current best practices and standards.
  2. Use valid and trusted certificates for encrypted communications to prevent man-in-the-middle attacks.
  3. Prevent the possibility of downgrading encrypted connections to weaker or unencrypted states.
  4. Regularly review and update the cryptographic setup to address new vulnerabilities and maintain strong security.

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 (v4.0): 1.9.2,6.2.7,9.1.1,9.2.1,9.2.4,14.4.5

OWASP DevGuide: SM15,PDT4,PDT5,PDT6,PDT7,PDT8

STRIDE: Tampering,Information Disclosure

OWASP SCP: 75,144,145,148

OWASP AppSensor: IE4

CAPEC™: 39,94,114,145,157,216,218,220,272,594,620

SAFECode™: 14,29,30

ASVS (4.0.3) Cheat Sheet Series Index

Command Injection

Password Guessing/Brute Force Attacks

Weak Authentication Protocols

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.