CWE一覧に戻る
CWE-608

Struts:ActionFormクラスの非プライベートフィールド

Struts: Non-private Field in ActionForm Class
脆弱性 レビュー中
JA

ActionForm クラスには、private と宣言されていないフィールドがあり、セッターやゲッターを使わずにアクセスすることができます。

EN

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

Scope: Integrity, Confidentiality / Impact: Modify Application Data; Read Application Data
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.
MITRE公式ページ — CWE-608