XSS Vulnerability

XSS is also known as Cross-site scripting
Cross-site scripting (also known as XSS) is a web security vulnerability that allows an attacker to compromise the interactions that users have with a vulnerable application. It allows an attacker to circumvent the same origin policy, which is designed to segregate different websites from each other. Cross-site scripting vulnerabilities normally allow an attacker to masquerade as a victim user, to carry out any actions that the user is able to perform, and to access any of the user's data. If the victim user has privileged access within the application, then the attacker might be able to gain full control over all of the application's functionality and data.
Generally there are 3 types of it.
  1. 1.
    RXSS (Reflected cross-site scripting).
  2. 2.
    SXSS (Stored cross-site scripting). [Blind XSS comes under SXSS)
  3. 3.
    DOM-XSS (Document Object Model-based cross-site scripting).