BaseIncomplete
CWE-766Critical Data Element Declared Public
Category: other
Description
The product declares a critical variable, field, or member to be public when intended security policy requires it to be private.
Common consequences· 2
- Integrity / Confidentiality — Read Application Data, Modify Application DataMaking a critical variable public allows anyone with access to the object in which the variable is contained to alter or read the value.
- Other — Reduce Maintainability
Potential mitigations· 1
- [Implementation]Data should be private, static, and final whenever possible. This will assure that your code is protected by instantiating early, preventing access, and preventing tampering.
References
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.