ClassDraft

CWE-637Unnecessary Complexity in Protection Mechanism (Not Using 'Economy of Mechanism')

Category: other

Description

The product uses a more complex mechanism than necessary, which could lead to resultant weaknesses when the mechanism is not correctly understood, modeled, configured, implemented, or used. Security mechanisms should be as simple as possible. Complex security mechanisms may engender partial implementations and compatibility problems, with resulting mismatches in assumptions and implemented security. A corollary of this principle is that data specifications should be as simple as possible, because complex data specifications result in complex validation code. Complex tasks and systems may also need to be guarded by complex security checks, so simple systems should be preferred.

Common consequences· 1

  • Other — Other

Potential mitigations· 1

  • [Architecture and Design]Avoid complex security mechanisms when simpler ones would meet requirements. Avoid complex data models, and unnecessarily complex operations. Adopt architectures that provide guarantees, simplify understanding through elegance and abstraction, and that can be implemented similarly. Modularize, isolate and do not trust complex code, and apply other secure programming principles on these modules (e.g., least privilege) to mitigate vulnerabilities.

References

  1. https://cwe.mitre.org/data/definitions/637.html

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Violation of Secure Design Principles
CWE
Improperly Implemented Security Check for Standard
CWE
Use of a Cryptographic Primitive with a Risky Implementation
CWE
Protection Mechanism Failure
CWE
Reliance on Security Through Obscurity
CWE
Missing Critical Step in Authentication
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.