CWE-107: Struts: Unused Validation Form

VariantDraft

An unused validation form indicates that validation logic is not up-to-date.

View on MITRE
Back to CWE Lookup

Extended Description

It is easy for developers to forget to update validation logic when they remove or rename action form mappings. One indication that validation logic is not being properly maintained is the presence of an unused validation form.

Technical Details

Structure
Simple

Applicable To

Languages
Java
Platforms

Frequently Asked Questions

What is CWE-107: Struts: Unused Validation Form?+

CWE-107: Struts: Unused Validation Form is a Common Weakness Enumeration (CWE) entry maintained by MITRE. An unused validation form indicates that validation logic is not up-to-date. It is easy for developers to forget to update validation logic when they remove or rename action form mappings. One indication that validation logic is not being properly maintained is the presence of an unused validation form.

What are the security consequences of Struts: Unused Validation Form?+

If exploited, CWE-107 (Struts: Unused Validation Form) it can compromise Other, leading to outcomes such as Quality Degradation.

How do you prevent or mitigate Struts: Unused Validation Form?+

Recommended mitigations for CWE-107 include: Remove the unused Validation Form from the validation.xml file.

Which programming languages are affected by Struts: Unused Validation Form?+

CWE-107 commonly affects Java. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-107 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More