Use of Same Invokable Control Element in Multiple Architectural Layers

Incomplete Base
Structure: Simple
Description

This weakness occurs when the same piece of code or control logic is duplicated across different architectural layers of an application, such as the presentation, business, and data layers.

Extended Description

Repeating the same control logic in multiple layers creates a tangled codebase that is difficult to understand and maintain. Developers must track and update the same logic in several places, which increases the chance of inconsistencies and makes changes riskier and more time-consuming. This architectural flaw indirectly harms security by obscuring the true data flow and making vulnerabilities harder to spot and fix. The resulting complexity can lead to security gaps, as developers might miss a copy of the logic when applying a critical patch, or introduce new bugs while trying to synchronize changes across layers.

Common Consequences 1
Scope: Other

Impact: Reduce Maintainability

References 1
Automated Source Code Maintainability Measure (ASCMM)
Object Management Group (OMG)
01-2016
ID: REF-960
Taxonomy Mapping
  • OMG ASCMM