C#


ROSLYN.SECURITY.CA3075 : Insecure DTD processing in XML (C#)

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

要旨

Using XmlTextReader.Load(), creating an insecure XmlReaderSettings instance when invoking XmlReader.Create(), setting the InnerXml property of the XmlDocument and enabling DTD processing using XmlUrlResolver insecurely can lead to information disclosure. Replace it with a call to the Load() method overload that takes an XmlReader instance, use XmlReader.Create() to accept XmlReaderSettings arguments or consider explicitly setting secure values. The DataViewSettingCollectionString property of DataViewManager should always be assigned from a trusted source, the DtdProcessing property should be set to false, and the XmlResolver property should be changed to XmlSecureResolver or null.

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

プロパティ

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

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

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