Input Validation
Input Validation
1.Abdullah Asif
2.Muhammad Hamza
3.Mahad Asif
4.Ali Fakhar
Introduction
• Input validation in web systems refers to the process
of verifying and sanitizing user input to ensure that it
meets the expected criteria in terms of format, length,
type, and range. It involves implementing checks and
rules to validate user-submitted data, preventing
security vulnerabilities and ensuring the integrity and
reliability of the application. Proper input validation
helps protect against various malicious attacks, such
as cross-site scripting (XSS), SQL injections, and
command injections, while maintaining the overall
security and functionality of the web system.
Input validation Responsibility
• Here are some important responsibilities related
to input validation:
• Data type validation: Verifying that the data
entered matches the expected data type, such as
numbers, strings, dates, or email addresses.
• Length and size validation: Validating that
input falls within acceptable length or size limits.
• Required field validation: ensure that all
necessary input fields are filled out or provided by the
user
• SQL injection prevention: Protecting
against malicious SQL queries that could
manipulate or compromise the database.
• Whitelisting and blacklisting:
Implementing lists of allowed or
disallowed characters, words, or patterns
for input validation.
Why we use input validation