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

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

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

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

            Insecure SSL: Android Hostname Verification Disabled

            ABSTRACT

            當進行 SSL 連接時,主機名驗證功能被禁用。

            EXPLANATION

            采用 SSL 連接時,使用 AllowAllHostnameVerifier()SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER 會完全關閉主機名驗證功能。這相當于信任所有證書。

            例 1:應用程序設置以下主機名驗證程序。


            ...
            SSLSocketFactory sf = new CustomSSLSocketFactory(trustStore);
            sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
            ...


            當試著連接 https://safesecureserver.banking.com 時,該應用程序會隨時接受給 https://hackedserver.banking.com 簽發的證書。此時,當服務器被黑客攻擊發生 SSL 連接中斷時,應用程序可能會泄漏用戶敏感信息。

            REFERENCES

            [1] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A3 Broken Authentication and Session Management

            [2] Standards Mapping - OWASP Top 10 2007 - (OWASP 2007) A9 Insecure Communications

            [3] Standards Mapping - OWASP Top 10 2010 - (OWASP 2010) A9 Insufficient Transport Layer Protection

            [4] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP3250.1 CAT I, APP3250.2 CAT I, APP3250.3 CAT II, APP3250.4 CAT II

            [5] Standards Mapping - Security Technical Implementation Guide Version 3.4 - (STIG 3.4) APP3250.1 CAT I, APP3250.2 CAT I, APP3250.3 CAT II, APP3250.4 CAT II

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

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

            [8] Designing for Security Android

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

            [10] OWASP Top 10 Mobile Risks OWASP

            [11] Standards Mapping - Payment Card Industry Data Security Standard Version 1.2 - (PCI 1.2) Requirement 4.1, Requirement 6.3.1.4, Requirement 6.5.9

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

            [13] Standards Mapping - Payment Card Industry Data Security Standard Version 2.0 - (PCI 2.0) Requirement 4.1, Requirement 6.5.4

            [14] S. Fahl, M. Harbach, T. Muders, M. Smith, L. Baumgartner, B. Friesleben Why Eve and Mallory Love Android:An Analysis of Android SSL (In)Security


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

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

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

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

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

                      亚洲欧美在线