CWE-1061: Insufficient Encapsulation
The product does not sufficiently hide the internal representation and implementation details of data or methods.
Last updated
Overview
CWE-1061 (Insufficient Encapsulation) is a class-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Common consequences
What can happen when CWE-1061 is exploited.
Varies by Context, Bypass Protection Mechanism, Modify Application Data
Affects: Access Control
An attacker might be able to use external components or modules to modify data unexpectedly, invoke unexpected functionality, introduce dependencies that the programmer did not intend, or access data or methods that were not intended to be accessible.
Reduce Maintainability, Increase Analytical Complexity
Affects: Other
This issue makes it more difficult to maintain the product, which indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities. It also might make it easier to introduce vulnerabilities.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.