ICT Mock Interview

Practice 25 ICT interview questions covering infrastructure, security, and technical problem-solving.

Question 19 of 25

What is a cross-site scripting attack, and how do you defend against it?

  • Experienced

  • How to Answer

  • Example Answer

  • Community Answers

William Swansen
William Swansen

William Swansen has worked in the employment assistance realm since 2007. He is an author, job search strategist, and career advisor who helps individuals worldwide and in various professions to find their ideal careers.

"A cross-site scripting attack or XSS is a type of injection, in which malicious scripts are injected into the otherwise benign and trusted website. It is typically in the form of a message sent to a legitimate user of the site. Inside the message is a malicious script which then infects the system and provides access to the hacker. These types of attacks can be addressed using techniques including escaping, validating the input, and sanitizing anything a user inputs into the system."

Unlock All 25 ICT Questions

Unlock expert responses to technical and scenario-based ICT interview questions.

Get Started