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

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

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

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

            J2EE Misconfiguration: Debug Information

            ABSTRACT

            當 Tomcat 調試級別在 3 級或以上時,可能會把敏感數據(包括密碼)寫入日志文件。

            EXPLANATION

            如果您正在使用 Tomcat 執行 authentication,Tomcat 部署描述符文件會指定一個 "Realm" 用于 authentication。如下所示:

            例:


            <Realm className="org.apache.catalina.realm.JAASRealm"
            appName="SRN"
            userClassNames="com.srn.security.UserPrincipal"
            roleClassNames="com.srn.security.RolePrincipal"/>


            Realm 標簽具有一個名為 debug 的屬性,為可選項,用來指明日志級別。數值越大,記錄的日志信息越冗長。如果調試級別設置得過高,Tomcat 會將所有的用戶名和密碼以明文形式寫入日志文件中。Tomcat JAASRealm 的相關調試信息的臨界值為 3(3 或者更高表示有問題,2 或者更低表示正常),但是這個臨界值會因 Tomcat 提供的 Realm 類型的不同而有所不同。

            REFERENCES

            [1] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A10 Insecure Configuration Management

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

            [3] Standards Mapping - OWASP Top 10 2010 - (OWASP 2010) A6 Security Misconfiguration

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

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

            [6] Standards Mapping - FIPS200 - (FISMA) CM

            [7] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 215

            [8] Standards Mapping - Web Application Security Consortium 24 + 2 - (WASC 24 + 2) Information Leakage

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

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

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


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

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

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

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

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

                      亚洲欧美在线