CWE-102Struts: Duplicate Validation Forms

PUBLISHEDweakness record
released 2006-07-19 · last modified 2024-02-29

Metadata

CWE ID:
CWE-102
摘要:
Variant
结构:
Simple
状态:
Incomplete
发布日期:
2006-07-19
更新日期:
2024-02-29

名称

Struts: Duplicate Validation Forms

描述

The product uses multiple validation forms with the same name, which might cause the Struts Validator to validate a form that the programmer does not expect.

If two validation forms have the same name, the Struts Validator arbitrarily chooses one of the forms to use for input validation and discards the other. This decision might not correspond to the programmer's expectations, possibly leading to resultant weaknesses. Moreover, it indicates that the validation logic is not up-to-date, and can indicate that other, more subtle validation errors are present.

常见后果

范围:
Integrity
影响:
Unexpected State

相关 CWE