Input validation

Cards (2)

  • The purpose of input validation is to ensure that user-provided input conforms to expected formats, ranges, or other constraints.
  • Input validation helps prevent security vulnerabilities such as buffer overflows, SQL injection attacks, cross-site scripting (XSS), and command injection attacks.