Exam GCIH All QuestionsBrowse all questions from this exam
Question 132

An organization needs to protect its PHP web applications from Cross-Site Scripting attacks. Which action should they take?

    Correct Answer: D

    Cross-Site Scripting (XSS) attacks occur when malicious scripts are injected into web applications, and these scripts are then executed in the context of the user's browser. To mitigate XSS attacks, it is essential to properly filter and sanitize user inputs to prevent the injection of malicious scripts. Using a third-party library to filter input to the application is a common and effective measure to address this threat, as such libraries are specifically designed to identify and neutralize potentially harmful inputs.

Discussion
RezaeeOption: D

D. Use a third party library to filter input to the application.