Cornucopia - Ecommerce Website - VE 3
Robert can input malicious data because the allowed protocol format is not being checked, or duplicates are accepted, or the structure is not being verified, or the individual data elements are not being validated for format, type, range, length and a whitelist of allowed characters or formats.
A lack of input validation is often the root cause of many security issues. Since the validation needs to be context specific, generic sanitisation routines will not suffice and the developer needs to understand how data are formatted/composed, why the data is being sent, what it is used for and the meaning of the values. This input validation should ensure that
- Only the permitted inputs (field/parameter names) are supplied.
- All the mandatory inputs are supplied.
- The values associated with the field/parameter name are of the expected format, type, range, length, etc.
NB: This card relates to generic input validation. See VE 4 for the similar additional context-specific checks.
|OWASP SCP||OWASP ASVS||OWASP AppSensor||CAPEC||SAFECODE|