Cross-site scripting (shortened to XSS), denotes the exploitation of security gaps in web applications. Harmful scripts are injected into a trusted context where they can then attack the user’s system. Scripts are programs in scripting languages such as JavaScript that are executed in the internet browser. Harmless variants involve, for example, a welcome pop-up. In worst case scenarios, attackers can gain access to confidential information or are able to access the unsuspecting user’s computer.
The danger of cross-site scripting arises when the respective web application passes user data onto the web browser without verifying it. This is how harmful scripts reach the affected clients. Once there, the infiltrated applications manipulate the server-side scripts, such as user registration forms. From the user’s point of view, the registration process looks encrypted and anonymous, but in actual fact, the data is being forwarded without being filtered.
Not all XSS attacks aim to steal sensitive data or directly harm the affected client. Just as prevalent are scripts that use the client as the initiator of phishing and malware attacks or change the content of a website in a negative way. The actual perpetrators usually stay anonymous.