AXSS 脆弱性が、ある企業の機密性やミッションクリティカル性に欠ける公開 Web サイトの 1 つで報告されました。セキュリティ部門は発見を確認し、アプリケーション所有者に推奨事項を提供する必要があります。次の推奨事項のうち、この脆弱性の悪用を最も効果的に防止できるのはどれですか (2 つ選択してください)。
正解:D,F
The best recommendations to prevent an XSS vulnerability from being exploited are to implement a compensating control in the source code and to fix the vulnerability using a virtual patch at the WAF. A compensating control is a technique that mitigates the risk of a vulnerability by adding additional security measures, such as input validation, output encoding, or HTML sanitization. A virtual patch is a rule that blocks or modifies malicious requests or responses at the WAF level, without modifying the application code.
These recommendations are effective, efficient, and less disruptive than the other options. References:
CompTIA CySA+ Study Guide: Exam CS0-003, 3rd Edition, Chapter 4: Security Operations and Monitoring, page 156; Cross Site Scripting Prevention Cheat Sheet, Section: XSS Defense Philosophy.