Xss
-
Cross-Site Scripting (XSS) Attacks Explained
Read Protocol >>Cross-Site Scripting (XSS) is one of the most prevalent web application vulnerabilities. Let’s dive into what XSS is, the different types, and how to defend against them.
What is XSS?
XSS attacks occur when an attacker injects malicious scripts (usually JavaScript) into web pages viewed by other users. These scripts execute in the victim’s browser context, potentially stealing data, hijacking sessions, or defacing websites.
Types of XSS
1. Reflected XSS (Non-Persistent)
The malicious script comes from the current HTTP request. It’s “reflected” back to the user.