cvekit
LIVE
All CWEs

CWE-102

Struts: Duplicate Validation Forms

VariantIncompleteSimple1 CVE
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.

Extended description

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 consequences1

  • IntegrityUnexpected State

Potential mitigations1

  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.

Relationships3

CVEs referencing this CWE1

CVEDescriptionSeverityEPSSFlagsModified
CVE-2022-20520

In onCreate of various files, there is a possible tapjacking/overlay attack. This could lead to local escalation of privilege or denial of server with User execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-13Android ID: A-227203202

HIGH7.8
0.19%p9
2025-04-18