VariantIncomplete

CWE-102Struts: Duplicate Validation Forms

Category: other

Description

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.

Common consequences· 1

  • Integrity — Unexpected State

Potential mitigations· 1

  • [Implementation]The DTD or schema validation will not catch the duplicate occurrence of the same form name. To find the issue in the implementation, manual checks or automated static analysis could be applied to the xml configuration files.

References

  1. https://cwe.mitre.org/data/definitions/102.html

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Struts: Incomplete validate() Method Definition
CWE
Struts: Unused Validation Form
CWE
Struts: Unvalidated Action Form
CWE
Struts: Validator Turned Off
CWE
Struts: Plug-in Framework not in Use
CWE
Struts: Validator Without Form Field
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.