CWE一覧に戻る
CWE-211

機密情報を含む外部生成エラーメッセージ

Externally-Generated Error Message Containing Sensitive Information
脆弱性 作成中
JA

ソフトウェア・アプリケーションが使用するプログラミング言語インタプリタによって生成されたエラーなど、製品が直接生成または制御していない外部の診断またはエラー・メッセージをトリガーする操作を実行した場合。エラーには、機密性の高いシステム情報が含まれている可能性があります。

EN

The product performs an operation that triggers an external diagnostic or error message that is not directly generated or controlled by the product, such as an error generated by the programming language interpreter that a software application uses. The error can contain sensitive system information.

Scope: Confidentiality / Impact: Read Application Data
Configure the application's environment in a way that prevents errors from being generated. For example, in PHP, disable display_errors.
Debugging information should not make its way into a production release.
Debugging information should not make its way into a production release.
Handle exceptions internally and do not display errors containing potentially sensitive information to a user. Create default error pages if necessary.
The best way to prevent this weakness during implementation is to avoid any bugs that could trigger the external error message. This typically happens when the program encounters fatal errors, such as a divide-by-zero. You will not always be able to control the use of error pages, and you might not be using a language that handles exceptions.
MITRE公式ページ — CWE-211