Katalog CWE

CWE-637 · Słabość

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

Abstrakcja
Klasa
Status
Szkic
Dodano
18 stycznia 2008
Ostatnia zmiana
3 kwietnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

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.

Inne nazwy

Unnecessary Complexity

Skutki

  • Other

    Other

Zapobieganie

  • 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.

Przykłady podatności

Słabość nadrzędna

Kiedy powstaje

Dotyczy

Not Language-Specific

Źródła

  1. The Protection of Information in Computer Systems — Jerome H. Saltzer, Michael D. Schroeder, Proceedings of the IEEE 63, 1975
  2. Economy of Mechanism — Sean Barnum, Michael Gegick, 2005

Wpis z katalogu CWE 4.20.