130 likes | 141 Views
In today's presentation on cross site scripting explained, we are going to explain what is cross site scripting attack and why it's considered one of the riskiest web attacks in the world. From it's basic explanation to it's working, categories and preventive measures, our lesson is all that one needs to learn about cross site scripting. We have a live demonstration at the end of our lesson where we solve 6 levels of cross site scripting challenges while following methodologies of an ethical hacker. The topics covered in this slide are:<br>
E N D
What Are We Learning Today? What Is Cross-Site Scripting? Working of Cross-Site Scripting Categories of Attacks Preventive Measures Live Demonstration
What Is Cross-Site Scripting? • Malicious code execution, run on victim’s browser • Steals user cookies, data and private information stored in the browser • Mostly performed using JavaScript and HTML, among other client-side languages • Can be simple media being displayed or harmful malware being installed
Working of Cross-Site Scripting Server Website Hacker Victim
Categories of Attacks Reflective XSS – Harmful Script is not saved on servers Persistent XSS – Malicious code and script is saved on the servers DOM Based XSS – Modifies Document Object Model of the website
Preventive Measures • Third party frameworks like Acunetix • Sanitize & validate input/HTML code • Escape rules for URLs • Encode JavaScript • Implement CSP • Using HTTPOnly flag