セキュリティ アナリストは、会社の Web サイトがクロスサイト スクリプティングに対して脆弱であることを発見しました。次の解決策のうち、脆弱性を修正するのに最も適しているのはどれですか?
正解:B
Server-side input validation is a solution that can prevent cross-site scripting (XSS) vulnerabilities by checking and filtering any user input that is sent to the server before rendering it on a web page. Server-side input validation can help to ensure that the user input conforms to the expected format, length and type, and does not contain any malicious characters or syntax that may alter the logic or behavior of the web page. Server-side input validation can also reject or sanitize any input that does not meet the validation criteria .