CWE一覧に戻る
CWE-112

XMLバリデーションの欠落

Missing XML Validation
脆弱性 レビュー中
JA

この製品は、信頼できないソースからのXMLを受け入れますが、適切なスキーマに対してXMLを検証しません。

成功する攻撃のほとんどは、プログラマの仮定違反から始まる。DTDやXMLスキーマに照らし合わせて検証することなくXML文書を受け入れることで、プログラマは攻撃者が予期しない、不合理な、あるいは悪意のある入力を提供するための扉を開いておくことになる。

EN

The product accepts XML from an untrusted source but does not validate the XML against the proper schema.

Most successful attacks begin with a violation of the programmer's assumptions. By accepting an XML document without validating it against a DTD or XML schema, the programmer leaves a door open for attackers to provide unexpected, unreasonable, or malicious input.

Scope: Integrity / Impact: Unexpected State
Always validate XML input against a known XML Schema or DTD.

It is not possible for an XML parser to validate all aspects of a document's content because a parser cannot understand the complete semantics of the data. However, a parser can do a complete and thorough job of checking the document's structure and therefore guarantee to the code that processes the document that the content is well-formed.
MITRE公式ページ — CWE-112