Katalog CWE

CWE-608 · Słabość

Struts: Non-private Field in ActionForm Class

Abstrakcja
Wariant
Status
Szkic
Dodano
7 maja 2007
Ostatnia zmiana
11 grudnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

An ActionForm class contains a field that has not been declared private, which can be accessed without using a setter or getter.

Skutki

  • Integrity, Confidentiality

    Modify Application Data; Read Application Data

Zapobieganie

  • Implementation

    Make all fields private. Use getter to get the value of the field. Setter should be used only by the framework; setting an action form field from other actions is bad practice and should be avoided.

Słabość nadrzędna

Kiedy powstaje

Dotyczy

Java

Wpis z katalogu CWE 4.20.