ペネトレーション テスターが Web アプリケーションのフォームにデータを送信すると、ペネトレーション テスターはユーザーの資格情報を取得できるようになります。このアプリケーションの脆弱性を修正するには、次のうちどれを推奨しますか?
正解:C
Performing input validation before allowing submission is the best recommendation for remediation of this application vulnerability. Input validation is a technique that checks the data entered by users or attackers against a set of rules or constraints, such as data type, length, format, or range. Input validation can prevent common web application attacks such as SQL injection, cross-site scripting (XSS), or command injection, which exploit the lack of input validation to execute malicious code or commands on the server or the client side. By validating the input before allowing submission, the web application can reject or sanitize any malicious or unexpected input, and protect the user credentials and other sensitive data from being compromised12. Reference: Input Validation - OWASP, 4 Most Common Application Vulnerabilities and Possible Remediation