<span id="7ztzv"></span>
<sub id="7ztzv"></sub>

<span id="7ztzv"></span><form id="7ztzv"></form>

<span id="7ztzv"></span>

        <address id="7ztzv"></address>

            Weak XML Schema: Unbounded Occurrences

            ABSTRACT

            maxOccurs 值設為 unbounded,會導致資源耗盡,并最終發生 denial of service。

            EXPLANATION

            處理 XML 文檔的成本會非常高。攻擊者可以利用允許無限制元素的架構,為應用程序提供數值特別大的元素,導致應用程序耗盡系統資源。

            下面是一個架構示例,它允許存在無限制的 bar 元素。


            <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >
            <xs:element name="foo" >
            <xs:complexType>
            <xs:sequence>
            <xs:element name="bar" maxOccurs="unbounded" />
            </xs:sequence>
            </xs:complexType>
            </xs:element>
            </xs:schema>

            REFERENCES

            [1] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A9 Application Denial of Service

            [2] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP6080 CAT II

            [3] Standards Mapping - Security Technical Implementation Guide Version 3.4 - (STIG 3.4) APP6080 CAT II

            [4] Roger L. Costello Constrain the Number of Occurrences of Elements in your XML Schema

            [5] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 400, CWE ID 770

            [6] Standards Mapping - Payment Card Industry Data Security Standard Version 1.1 - (PCI 1.1) Requirement 6.5.9

            [7] Standards Mapping - SANS Top 25 2010 - (SANS 2010) Risky Resource Management - CWE ID 770

            [8] XML Schema Part 1:Structures Second Edition W3C


            Copyright 2013 Fortify Software - All rights reserved.
            (Generated from version 2013.1.1.0008 of the Fortify Secure Coding Rulepacks)
            desc.config.xml.weak_xml_schema_unbounded_occurrences

            <span id="7ztzv"></span>
            <sub id="7ztzv"></sub>

            <span id="7ztzv"></span><form id="7ztzv"></form>

            <span id="7ztzv"></span>

                  <address id="7ztzv"></address>

                      亚洲欧美在线