GCIH Exam QuestionsBrowse all questions from this exam

GCIH Exam - Question 132


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

Show Answer
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

1 comment
Sign in to comment
RezaeeOption: D
Jan 31, 2024

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