Cornucopia (CX)

CORNUCOPIA
10

Spyros peut contourner les contrôles de l'application car les frameworks, les bibliothèques et les composants applicatifs contiennent du code malveillant ou des vulnérabilités (par exemple: interne, sur étagère, externalisé, open source, externe)

How to play?

The key concept for this card is software hardening, configuration and patching. See Cornucopia 8 (C8) instead for host/network environment hardening, configuration and patching.

Scenario: Spyros’s Exploitation of Vulnerable Code Libraries and Frameworks

Imagine a situation where Spyros circumvents an application's controls by exploiting vulnerabilities or malicious code within its frameworks, libraries, and components. This can occur in various types of software, including:

  1. In-House Developed Software: Custom code developed internally may contain vulnerabilities or insufficiently reviewed segments.
  2. Commercial Off-The-Shelf (COTS) Products: Commercially available software might have undisclosed vulnerabilities.
  3. Outsourced Software Components: Externally developed components may not adhere to strict security standards.
  4. Open Source Libraries: Open source code might contain vulnerabilities or, in rare cases, malicious components.
  5. Externally-Located Code: Software components hosted externally may be compromised or altered without the knowledge of the primary application developers.

Example

Spyros identifies that a financial application uses a popular open-source library, which recently disclosed a vulnerability. However, the application’s developers have not yet updated the library to the patched version. Exploiting this known vulnerability, Spyros gains unauthorized access to the application, allowing him to manipulate transactions and access sensitive customer data. Additionally, Spyros finds that an outsourced module in the application contains poorly written code, which he exploits to bypass the application’s primary security controls.

Threat Modeling

STRIDE

The STRIDE category applicable here is Tampering.

The scenario describes circumventing application controls via vulnerable or malicious code in frameworks, libraries, or components. The primary impact is that an attacker can modify, manipulate, or exploit the application’s behavior through weaknesses in these components. The core issue in the context of vulnerable/malicious components is that the attacker can alter execution or manipulate application operations, which aligns with Tampering.

What can go wrong?

The use of vulnerable or compromised software components can lead to significant security breaches, unauthorized data access, and potential system compromises.

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?

  1. Regularly update all frameworks, libraries, and components to their latest, secure versions.
  2. Conduct thorough security reviews and vulnerability assessments of all in-house, outsourced, and open-source code used within the application.
  3. Monitor security advisories for any components used within the application and respond swiftly to vulnerability disclosures.
  4. Establish a robust security protocol for integrating and maintaining external software components.

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.14.3,10.1.1,10.2.3,10.2.4,10.2.5,10.2.6,14.2.1

OWASP DevGuide: SC4,SFL1,SFL2,SFL10,SFL11,SFL12,SFL13,SFL14,SFL15

STRIDE: Tampering

OWASP SCP: 57,151,152,204,205,213,214

OWASP AppSensor: -

CAPEC™: 68,159,206,442,446,523,538,673,691

SAFECode™: 15

ASVS (4.0.3) Cheat Sheet Series Index

Cross-Site Scripting (XSS)

Command Injection

Privilege escalation

Insider Threats

Session Hijacking (Man-in-the-Middle)

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.