CWE-108: Struts: Unvalidated Action Form
Every Action Form must have a corresponding validation form.
Last updated
Overview
If a Struts Action Form Mapping specifies a form, it must have a validation form defined under the Struts Validator.
Common consequences
What can happen when CWE-108 is exploited.
Other
Affects: Other
If an action form mapping does not have a validation form defined, it may be vulnerable to a number of attacks that rely on unchecked input. Unchecked input is the root cause of some of today's worst and most common software security problems. Cross-site scripting, SQL injection, and process control vulnerabilities all stem from incomplete or absent input validation.
Other
Affects: Confidentiality, Integrity, Availability, Other
Although J2EE applications are not generally susceptible to memory corruption attacks, if a J2EE application interfaces with native code that does not perform array bounds checking, an attacker may be able to use an input validation mistake in the J2EE application to launch a buffer overflow attack.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
Applies to
Languages
How to prevent it
Practical mitigations for CWE-108, grouped by where in the lifecycle they apply.
Map every Action Form to a corresponding validation form.
An action or a form may perform validation in other ways, but the Struts Validator provides an excellent way to verify that all input receives at least a basic level of validation. Without this approach, it is difficult, and often impossible, to establish with a high level of confidence that all input is validated.
Terminology & mappings
Mapped taxonomies
- 7 Pernicious Kingdoms: Struts: Unvalidated Action Form
- Software Fault Patterns: Tainted input to command (SFP24)
Frequently asked questions
Common questions about CWE-108.
- What is CWE-108?
- Every Action Form must have a corresponding validation form.
- How do you prevent CWE-108?
- Map every Action Form to a corresponding validation form.
- What are the consequences of CWE-108?
- Exploiting CWE-108 can lead to: Other.
References
- MITRE CWE definition (CWE-108) (opens in a new tab)
- CWE-108 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.20). CVE associations are aggregated and kept current by RadicalNotion.AI.
Stay ahead of CWE-108
Get alerted the moment a new CWE-108 vulnerability affects your stack, with AI-written analysis, severity context, and remediation guidance.