C#


ROSLYN.SECURITY.CA5368 : Set ViewStateUserKey For Classes Derived From Page (C#)

See Roslyn-Detected C# Warning Classes for more information.

要旨

Setting the ViewStateUserKey property can help you prevent attacks on your application by allowing you to assign an identifier to the view-state variable for individual users so that they cannot use the variable to generate an attack. Otherwise, there will be cross-site request forgery vulnerabilities.

この指摘はRoslynのCA5368に該当します。ルール詳細につい ては、下記リンクを参照してください。 CA5368

プロパティ

クラス名 Set ViewStateUserKey For Classes Derived From Page (C#)
日本語クラス名 Set ViewStateUserKey For Classes Derived From Page (C#)
クラス分類 セキュリティ (security)
ニーモニック ROSLYN.SECURITY.CA5368
カテゴリー なし
対応言語 C# で利用可能です。
有効/無効設定 このワーニングクラスのチェックはデフォルトで有効になっています。チェックを無効にするにはプロジェクト設定ファイル (configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += discard class="Set ViewStateUserKey For Classes Derived From Page (C#)"

関連のある設定ファイルパラメータ

設定ファイルの以下のパラメータがこのワーニングクラスのチェックに影響します。