Rule Definition
When a form validation file is unused, this indicate that the validation logic is not properly maintained and can result in a weakness.
Input validation is required to secure an application. Moreover, the web interface is exposed to anyone. Non validating input may allow injecting arbitrary web script, HTML, SQL... Consequences can be severe, like erasing the content of a database.
Remediation
Update the validation.xml's entries according to the form used in your application.
Violation Code Sample
User-validation.xml file is in a folder where no User.java file is existing
Fixed Code Sample
Remove User-validation.xml file or move it in a location where the User.java file exist if it has a meaning.
Reference
http://cwe.mitre.org/data/definitions/107.html
Related Technologies
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.