SQL Injection is a type of attack where malicious SQL statements are inserted into an entry field for execution, leading to unauthorized access to the database.
3.
Which PHP function is commonly used to sanitize input data from a form to prevent SQL injection?
The mysqli_real_escape_string() function in PHP escapes special characters in a string to prevent SQL injection attacks when inserting data into a MySQL database.
4.
What does XSS stand for in the context of web security?
CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) presents challenges that are easy for humans to solve but difficult for bots, preventing automated form submissions.
7.
Which of the following is NOT a common input validation technique for form data?
Prepared statements in PHP prevent SQL Injection by separating SQL logic from user input, ensuring that input data is treated as data and not executable code.
9.
Which of the following is a secure method for storing passwords in a database?
CSRF Tokens are unique tokens generated for each session or form submission, ensuring that the request originates from the intended user and not an attacker.