CWE-109: Struts: Validator Turned Off
Automatic filtering via a Struts bean has been turned off, which disables the Struts Validator and custom validation logic. This exposes the application to other weaknesses related to insufficient input validation.
Last updated
Overview
CWE-109 (Struts: Validator Turned Off) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Common consequences
What can happen when CWE-109 is exploited.
Bypass Protection Mechanism
Affects: Access Control
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-109, grouped by where in the lifecycle they apply.
Ensure that an action form mapping enables validation. Set the validate field to true.
How to detect it
Automated Static Analysis
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Effectiveness: High
Code examples
MITRE examples of the weakness in code.
This mapping defines an action for a download form:
Vulnerable example
<action path="/download"
type="com.website.d2.action.DownloadAction"
name="downloadForm"
scope="request"
input=".download"
validate="false">
</action>This mapping has disabled validation. Disabling validation exposes this action to numerous types of attacks.
Terminology & mappings
Mapped taxonomies
- 7 Pernicious Kingdoms: Struts: Validator Turned Off
- Software Fault Patterns: Tainted input to command (SFP24)
Frequently asked questions
Common questions about CWE-109.
- What is CWE-109?
- Automatic filtering via a Struts bean has been turned off, which disables the Struts Validator and custom validation logic. This exposes the application to other weaknesses related to insufficient input validation.
- How do you prevent CWE-109?
- Ensure that an action form mapping enables validation. Set the validate field to true.
- How is CWE-109 detected?
- Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
- What are the consequences of CWE-109?
- Exploiting CWE-109 can lead to: Bypass Protection Mechanism.
Sources
References
- MITRE CWE definition (CWE-109) (opens in a new tab)
- CWE-109 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Track CWE-109 CVEs
Get an alert when a new CWE-109 CVE affects your products, with AI-written analysis and remediation steps.