ActionClass-validation.xml 中引用的驗證器未在 validators.xml 中聲明
Struts2 要求先在 validators.xml 中定義自定義的驗證器,然后才能在 Action 驗證器定義中使用它。缺少驗證器定義,將表示該驗證不是最新的。
例如: 下列 Action 驗證器未在 validators.xml 中定義。
<validators>
<validator name="required" class="com.opensymphony.xwork2.validator.validators.RequiredFieldValidator"/>
</validators>
[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 101
[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 Struts2 Validation Framework The Apache Foundation