同名的多個 validation form 暗示著驗證邏輯已經過時。
如果兩個 validation form 具有相同的名稱,Struts Validator 會任意選擇一個來進行輸入驗證,而放棄另外一個。這一決策可能不是程序員所期望的。而且,它也暗示著驗證邏輯沒有得到維護,并暗示著存在其他更難察覺的驗證錯誤。
示例:同名的兩個 validation form。
<form-validation>
<formset>
<form name="ProjectForm">
...
</form>
<form name="ProjectForm">
...
</form>
</formset>
</form-validation>
[1] Standards Mapping - OWASP Top 10 2004 - (OWASP 2004) A10 Insecure Configuration Management
[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 - FIPS200 - (FISMA) CM
[6] Standards Mapping - Common Weakness Enumeration - (CWE) CWE ID 102
[7] Standards Mapping - Payment Card Industry Data Security Standard Version 1.1 - (PCI 1.1) Requirement 6.5.10
[8] T. Husted et al. Struts in Action:Building Web Applications with the Leading Java Framework Manning Publications
[9] The Struts project The Apache Foundation