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

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

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

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

            Denial of Service

            ABSTRACT

            攻擊者可以造成程序崩潰或使合法用戶無法進行使用。

            EXPLANATION

            攻擊者可能通過對應用程序發送大量請求,而使它拒絕對合法用戶的服務,但是這種攻擊形式經常會在網絡層就被排除掉了。更加嚴重的是那些只需要使用少量請求就可以使得攻擊者讓應用程序過載的 bug。這種 bug 允許攻擊者去指定請求使用系統資源的數量,或者是持續使用這些系統資源的時間。

            例 1:以下代碼允許用戶指定線程進入休眠狀態的時間。通過指定一個較大的時間,攻擊者便可以無限期地阻礙線程。因此,只需少量的請求,攻擊者就能耗盡應用程序的線程池。


            int usrSleepTime = Int32.Parse(usrInput);
            Thread.Sleep(usrSleepTime);


            例 2:以下代碼從一個 zip 文件中讀取字符串。因為它使用 readLine() 方法,所以可以讀取一批極大量的輸入。攻擊者能夠利用該代碼引發一個 OutOfMemoryException 異常,或者消耗大量的內存,從而致使程序需要更多的時間去執行垃圾信息的收集,或在隨后的操作過程中用完內存資源。


            using (StreamReader sr = new StreamReader("file.zip"))
            {
            String line;
            line = sr.ReadLine();
            ...
            }

            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] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 730

            [5] Standards Mapping - Web Application Security Consortium 24 + 2 - (WASC 24 + 2) Denial of Service

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


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

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

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

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

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

                      亚洲欧美在线