VariantDraft
CWE-500Public Static Field Not Marked Final
Category: other
Description
An object contains a public static field that is not marked final, which might allow it to be modified in unexpected ways.
Public static variables can be read without an accessor and changed without a mutator by any classes in the application.
Common consequences· 2
- Integrity — Modify Application DataThe object could potentially be tampered with.
- Confidentiality — Read Application DataThe object could potentially allow the object to be read.
Potential mitigations· 2
- [Architecture and Design]Clearly identify the scope for all critical data elements, including whether they should be regarded as static.
- [Implementation]
References
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.