220-1102 · Question #353
Which of the following common security vulnerabilities can be mitigated by using put validation?
The correct answer is C. SQL injection. Input validation is a crucial security measure that helps prevent vulnerabilities like SQL injection by sanitizing or rejecting malformed user input.
Question
Which of the following common security vulnerabilities can be mitigated by using put validation?
Options
- ABrute-force attack
- BCross-site scripting
- CSQL injection
- DCross-site request forgery
How the community answered
(19 responses)- B5% (1)
- C89% (17)
- D5% (1)
Why each option
Input validation is a crucial security measure that helps prevent vulnerabilities like SQL injection by sanitizing or rejecting malformed user input.
A brute-force attack involves systematically trying many passwords and is mitigated by account lockout policies or multi-factor authentication, not input validation.
Cross-site scripting (XSS) is mitigated by output encoding to prevent malicious scripts from executing in a user's browser, not primarily by input validation (though input validation is still good practice).
Input validation directly mitigates SQL injection by ensuring that any data submitted by a user does not contain malicious SQL commands, thereby preventing them from being executed on the database.
Cross-site request forgery (CSRF) is mitigated by using anti-CSRF tokens to ensure requests originate from the legitimate web application, not by input validation.
Concept tested: Input validation for security
Source: https://owasp.org/www-community/vulnerabilities/SQL_Injection
Topics
Community Discussion
No community discussion yet for this question.