Example of input sanitization
Question:
Which of these is an example of input sanitization?
- Removing characters such a ', ;, and -- to prevent them from impacting a query
- Cleaning out sensitive user data from requests
- Programming a firewall to drop network packets containing potential SQL injection attacks
- Passing user input as parameters to a pre-prepared statement
Answer:
A - is the correct answer. That’s right! Input sanitization removes characters that have the ability to manipulate SQL queries from the frontend user input