Rule Definition
				When several validation form have the same name, the Struts Validator framework will choose one of the form validation to check input values. This means that the behavior is not controlled and that wrong input pass the validation check. This may lead to SQL injection, cross-site scripting...				
								
				
				Remediation
				Find the right validator and remove the others.				
												
				 Violation Code Sample
				
				----> validation.xml:
<form-validation>
  <formset>
    <form name="logonBean">
    ...
    </form>
    <form name="logonBean"> // VIOLATION
    ...
    </form>
  </formset>
</form-validation>
				 
												 Fixed Code Sample
				
				----> validation.xml:
<form-validation>
  <formset>
    <form name="logonBean"> // FIXED
    ...
    </form>
  </formset>
</form-validation>
				 
												
				Reference
				http://cwe.mitre.org/data/definitions/102.html
http://www.owasp.org/index.php/Struts:_Duplicate_Validation_Forms
								
				 Related Technologies
								JEE
								
				
				
				
				Technical Criterion
				Secure Coding - Input Validation
				
				
				
				
				
					
				
				
				
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.