CWE一覧に戻る
CWE-575

EJBのバッド・プラクティス:AWT Swingの使用

EJB Bad Practices: Use of AWT Swing
脆弱性 レビュー中
JA

この製品は、AWT/Swingを使用することで、Enterprise JavaBeans(EJB)仕様に違反している。

EnterpriseJavaBeans仕様は,すべてのBean提供者が,どのEJBコンテナでもBeanが移植可能で一貫した振る舞いをすることを確実にするために設計されたプログラミング指針の集合に従うことを要求する。この場合,この製品は,次のEJB指針に違反する:"エンタプライズBeanは,AWT機能を使用して,情報をディスプレイに出力したり,キーボードから情報を入力したりしてはならない。"仕様書は,この要件を次のように正当化する:"ほとんどのサーバは,アプリケーションプログラムとサーバシステムに接続されたキーボード/ディスプレイとの間の直接的な相互作用を許可しない。"

EN

The product violates the Enterprise JavaBeans (EJB) specification by using AWT/Swing.

The Enterprise JavaBeans specification requires that every bean provider follow a set of programming guidelines designed to ensure that the bean will be portable and behave consistently in any EJB container. In this case, the product violates the following EJB guideline: "An enterprise bean must not use the AWT functionality to attempt to output information to a display, or to input information from a keyboard." The specification justifies this requirement in the following way: "Most servers do not allow direct interaction between an application program and a keyboard/display attached to the server system."

Scope: Other / Impact: Quality Degradation
Do not use AWT/Swing when writing EJBs.
MITRE公式ページ — CWE-575