What is XSS?: When an attacker can trick the web application to insert an arbitrary Javascript code and execute it, the attack is known as Cross Site Scripting or XSS in short. Types of XSS: Reflected XSS: Input gets reflected on the page Stored XSS: Input gets stored in the server DOM XSS: Input gets stored in the DOM i.e goes from the source and gets out from the sink How XSS works? Attacker sends a link to the victim Victim authenticates with the server Attacker gets the cookie Reflected XSS Method Check for input if it gets reflected in Page Source, Body or URL If input gets reflected we can hunt for RXSS Send a simple alert box to execute and prove XSS It happens due to no proper validation or sanitization of inputs XSS Payloads: A list of XSS Payloads can be downloaded from : https://github.com/payloadbox/xss-payload-list Balancing: Sometimes the payload gets injected in between certain tags and hence cannot get executed. Inorder for it to get executed we need to break the tag out.This is called as balancing. Limited Input’s: Sometimes