CWE-1061 · Słabość
Insufficient Encapsulation
- Abstrakcja
- Klasa
- Status
- Niekompletny
- Dodano
- 29 lipca 2018
- Ostatnia zmiana
- 11 grudnia 2025
Opis
The product does not sufficiently hide the internal representation and implementation details of data or methods, which might allow external components or modules to modify data unexpectedly, invoke unexpected functionality, or introduce dependencies that the programmer did not intend.
Skutki
Access Control
Varies by Context; Bypass Protection Mechanism
An attacker can access data or methods that were not intended to be accessible.
Other
Reduce Maintainability; Increase Analytical Complexity
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.
Przykłady podatności
- CVE-2010-3860 variables declared public allow remote read of system properties such as user name and home directory.
Słabość nadrzędna
Słabości podrzędne
- CWE-766 Critical Data Element Declared Public
- CWE-1054 Invocation of a Control Element at an Unnecessarily Deep Horizontal Layer
- CWE-1057 Data Access Operations Outside of Expected Data Manager Component
- CWE-1062 Parent Class with References to Child Class
- CWE-1083 Data Access from Outside Expected Data Manager Component
- CWE-1090 Method Containing Access of a Member Element from Another Class
- CWE-1100 Insufficient Isolation of System-Dependent Functions
- CWE-1105 Insufficient Encapsulation of Machine-Dependent Functionality
Kiedy powstaje
- Implementation
Dotyczy
Not Language-Specific
Źródła
- Encapsulation (computer programming) — Wikipedia
Wpis z katalogu CWE 4.20.