Rule Definition
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.
Remediation
Set the validate field to true
Violation Code Sample
<action-mappings>
<action path="/address"
type="com.action.MainAction"
name="myForm"
scope="request"
input="/addressInput.jsp"
validate="false">
<forward name="success" path="/addressInput.jsp"/>
</action>
</action-mappings>
Fixed Code Sample
<action-mappings>
<action path="/address"
type="com.action.MainAction"
name="myForm"
scope="request"
input="/addressInput.jsp"
validate="true">
<forward name="success" path="/addressInput.jsp"/>
</action>
</action-mappings>
Reference
https://www.owasp.org/index.php/Improper_Data_Validation#Struts:_Validator_Turned_Off
https://cwe.mitre.org/data/definitions/109.html
Related Technologies
Technical Criterion
PCI-DSS4-Requirement-2.2.6 - System security parameters are configured to prevent misuse
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.