<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 Encryption: Inadequate RSA Padding

            ABSTRACT

            RSA 算法在沒有 OAEP 填充模式下使用,因此加密機制比較脆弱。

            EXPLANATION

            在實踐中使用時,RSA 通常會與某些填充模式結合使用。該填充模式的目的在于防止一些潛在的針對不帶填充模式的 RSA 發動的攻擊。

            例 1:下列代碼使用不帶適當填充模式的 RSA 加密算法。


            function encrypt($input, $key) {
            $output='';
            openssl_public_encrypt($input, $output, $key, OPENSSL_NO_PADDING);
            return $output;
            }

            REFERENCES

            [1] Standards Mapping - OWASP Top 10 2010 - (OWASP 2010) A7 Insecure Cryptographic Storage

            [2] Standards Mapping - OWASP Top 10 2007 - (OWASP 2007) A8 Insecure Cryptographic Storage

            [3] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A8 Insecure Storage

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

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

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

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

            [8] Standards Mapping - FIPS200 - (FISMA) MP

            [9] OPENSSL Documentation

            [10] PKCS #1 v2.1:RSA Cryptography Standard

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

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

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

            [14] Wikipedia


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

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

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

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

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

                      亚洲欧美在线