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

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

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

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

            Poor Condition Handling: Ignored Condition

            ABSTRACT

            忽略條件會導致程序無法發現意外狀況和錯誤。

            EXPLANATION

            幾乎每一個對軟件系統的嚴重攻擊都是從違反程序員的假設開始的。攻擊后,程序員的假設看起來既脆弱又拙劣,但攻擊前,許多程序員會在午休時間為自己的種種假設做很好的辯護。

            在代碼中,很容易發現兩個令人懷疑的假設:“一是這個函數調用不可能出錯;二是即使出錯了,也不會對系統造成什么重要影響。”因此當程序員忽略條件時,這其實就表明了他們是基于上述假設進行的操作。

            例 1:下列摘錄的代碼會忽略 CICS 事務期間可能發生的錯誤情況。


            ...
            EXEC CICS
            INGNORE CONDITION ERROR
            END-EXEC.
            ...


            如果事務因為此錯誤情況而失敗,程序會繼續執行,就像什么都沒有發生一樣。程序不會記錄任何有關這一特殊情況的依據,因而事后再查找這一異常就可能很困難。

            REFERENCES

            [1] Standards Mapping - OWASP Top 10 2007 - (OWASP 2007) A6 Information Leakage and Improper Error Handling

            [2] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A7 Improper Error Handling

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

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

            [5] Standards Mapping - FIPS200 - (FISMA) AU

            [6] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 391

            [7] Standards Mapping - Payment Card Industry Data Security Standard Version 1.2 - (PCI 1.2) Requirement 6.3.1.2, Requirement 6.5.6

            [8] Standards Mapping - Payment Card Industry Data Security Standard Version 2.0 - (PCI 2.0) Requirement 6.5.5

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


            Copyright 2013 Fortify Software - All rights reserved.
            (Generated from version 2013.1.1.0008 of the Fortify Secure Coding Rulepacks)
            desc.semantic.cobol.poor_condition_handling_ignored_condition

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

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

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

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

                      亚洲欧美在线