Cornucopia (C3)

CORNUCOPIA
3

Andrew kan toegang krijgen tot broncode, of decompileren, of debuggen, of anderszins toegang krijgen tot bedrijfslogica om te begrijpen hoe de applicatie werkt en eventuele geheimen die erin zitten

How to play?

The key concept is that insecure source code management and lack of obfuscation can expose business logic and embedded secrets, leading to unauthorized information disclosure.

Scenario: Andrew’s Access to Source Code and Business Logic

Picture a scenario where Andrew gains access to an application’s source code or decompiles it, thereby understanding its business logic and uncovering any embedded secrets. This occurs due to:

  1. Insecure Source Code Storage: The source code is stored in locations that are not adequately secured.
  2. Lack of Obfuscation in Compiled Code: The compiled code of the application is easily decompiled, revealing the business logic.
  3. Embedded Secrets in Code: Sensitive information like passwords, encryption keys, or API keys is hard-coded into the application’s source code.

Example

Andrew targets a commercial software application used by many businesses. He accesses the application’s source code, which was inadvertently exposed in a publicly accessible repository. Andrew also decompiles the application’s executable files, which lack sufficient obfuscation, gaining a deep understanding of the application’s internal workings. He discovers embedded secrets, such as database credentials and API keys, within the source code, which he then exploits to gain unauthorized access to associated systems and data.

Threat Modeling

STRIDE

The applicable STRIDE category here is primarily Information Disclosure.

Andrew is gaining access to sensitive information (source code, embedded secrets, business logic) that he is not authorized to see. STRIDE’s Information Disclosure covers scenarios where an attacker learns secrets or confidential information without proper authorization. Accessing or decompiling source code, and uncovering embedded credentials or business logic, constitutes unauthorized exposure of sensitive data, which is exactly what Information Disclosure describes.

What can go wrong?

Such exposure of source code and business logic can lead to unauthorized access, intellectual property theft, and exploitation of hidden vulnerabilities or secrets within the application.

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. Securely store source code in access-controlled repositories.
  2. Enforce the use of signature verification for the distribution of executable code and packages.
  3. Consider using anti reverse-engineering techniques. Implement code obfuscation techniques to prevent easy decompilation and understanding of business logic in distributed binaries.
  4. Avoid embedding secrets in the source code. Instead, use secure methods for managing and accessing credentials and keys.
  5. Conduct regular security reviews and audits of source code management practices.

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): 12.1.1,12.1.2,12.1.3,12.1.4,12.1.5,12.2.1,12.2.2,12.3.1,12.3.2,12.3.3,12.3.4,12.3.5,13.3.1,13.4.1,13.4.2,13.4.5,13.4.6,13.4.7,15.2.3,16.3.3

OWASP DevGuide: SC2,SC4,SC9,SC11

STRIDE: Information Disclosure

CAPEC™: 11,65,94,188,207

SAFECode™: -

CAPEC Map

CodeTitleASVS
11Cause Web Server Misclassification
65Sniff Application Code
94Adversary in the Middle (AiTM)
188Reverse Engineering
207Removing Important Client Functionality

ASVS (5.0) Cheat Sheet Series Index

Insider Threats

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.