8

Input Validation and Sanitization

Input validation and sanitization are critical security measures used in software development to protect applications from a wide range of security vulnerabilities, particularly those related to malicious input or user data. These practices help ensure that the data received by an application is safe, reliable, and free from vulnerabilities that attackers could exploit.

In this chapter, we’re going to cover input validation and sanitization by looking at the following main topics:

  • Input validation
  • Input sanitization
  • Language-specific defenses
  • Buffer overflows
  • Example of enterprise input validation and sanitization

By the end of this chapter, the reader will have a good grasp of how vital validation and sanitation ...

Get Security-Driven Software Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.