CWE一覧に戻る
CWE-1042

シングルトン・クラス要素外の静的メンバー・データ要素

Static Member Data Element outside of a Singleton Class Element
脆弱性 作成中
JA

このコードには、static(ただしfinalではない)と宣言されたメンバ・エレメントが含まれています。
その親クラス要素
はシングルトン・クラスではありません。
つまり、Create アクションの 'to' 関連で一度だけ使用できるクラス要素です。

EN

The code contains a member element that is declared as static (but not final), in which
its parent class element
is not a singleton class - that is, a class element that can be used only once in
the 'to' association of a Create action.

Scope: Other / Impact: Reduce Performance
MITRE公式ページ — CWE-1042