CWE-493: Critical Public Variable Without Final Modifier

VariantDraftExploit Likelihood: High

The product has a critical public variable that is not final, which allows the variable to be modified to contain unexpected values.

View on MITRE
Back to CWE Lookup

Extended Description

If a field is non-final and public, it can be changed once the value is set by any function that has access to the class which contains the field. This could lead to a vulnerability if other parts of the program make assumptions about the contents of that field.

Technical Details

Structure
Simple

Applicable To

Languages
JavaC++
Platforms

Learn More