<dd id="sga4y"><optgroup id="sga4y"></optgroup></dd>
<nav id="sga4y"><code id="sga4y"></code></nav>
  • <optgroup id="sga4y"></optgroup>

    Struts: Validator Turned Off

    ABSTRACT

    這個 action form 映射禁用了表單的 validate()方法。

    EXPLANATION

    action form 映射永遠不應該禁用驗證。禁用驗證的同時也就禁用了 Struts Validator,一并還有所有由表單執行的自定義驗證邏輯。

    示例:一個禁用了驗證的 action form 映射。


    <action path="/download"
    type="com.website.d2.action.DownloadAction"
    name="downloadForm"
    scope="request"
    input=".download"
    validate="false">
    </action>


    禁用驗證會使該操作暴露在各種攻擊之下。未經校驗的輸入是導致各種漏洞的根源,如 cross-site scripting、process control 和 SQL injection。雖然 J2EE 應用程序通常情況下不容易受到內存損壞的影響,但是如果 J2EE 應用程序連接到未執行數組邊界檢查的本地代碼,攻擊者就可能會利用 J2EE 應用程序中一個輸入校驗錯誤發起 buffer overflow 攻擊。

    REFERENCES

    [1] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A1 Unvalidated Input

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

    [3] Standards Mapping - Security Technical Implementation Guide Version 3 - (STIG 3) APP3510 CAT I

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

    [5] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 109

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

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

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

    [9] T. Husted et al. Struts in Action:Building Web Applications with the Leading Java Framework Manning Publications

    [10] The Struts project The Apache Foundation


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

    97av