A brief about Cross-Site Scripting (XSS), what it is, how it is caused, types, and a few ways of preventing it. — Introduction Cross-Site Scripting (XSS) is a web security vulnerability, where an attacker injects inserts malicious scripts into legitimate websites. It is a client-side code injection and can exist wherever there is a user input to the website. What? A successful XSS can be carried out when there are flaws in the written…