CWE-607 · Słabość
Public Static Final Field References Mutable Object
- Abstrakcja
- Wariant
- Status
- Szkic
- Dodano
- 7 maja 2007
- Ostatnia zmiana
- 11 grudnia 2025
Opis
A public or protected static final field references a mutable object, which allows the object to be changed by malicious code, or accidentally from another package.
Skutki
Integrity
Modify Application Data
Zapobieganie
Implementation
Protect mutable objects by making them private. Restrict access to the getter and setter as well.
Słabość nadrzędna
Kiedy powstaje
- Implementation
Dotyczy
Java
Wpis z katalogu CWE 4.20.