1.To defeat XSS attacks, a developer decides to implement filtering on the browser side. Basically, the developer plans to add JavaScript code on each page, so before data are sent to the server, it filters out any JavaScript code contained inside the data. Let’s assume that the filtering logic can be made perfect. Can this approach prevent XSS attacks? 2.What are the differences between XSS and CSRF attacks? 3.Can the secret token countermeasure be used to defeat XSS attacks? 4.Can the same-site cookie countermeasure for CSRF attacks be used to defeat XSS at- tacks? 5.To filter out JavaScript code from user input, can we just look for script tags, and remove them? If you can modify browser’s behavior, what would you add to browser, so you can help reduce the risks of XSS attacks?

Microsoft Windows 10 Comprehensive 2019
1st Edition
ISBN:9780357392607
Author:FREUND
Publisher:FREUND
Chapter7: Microsoft Edge
Section: Chapter Questions
Problem 3EYK
icon
Related questions
Question
100%

1.To defeat XSS attacks, a developer decides to implement filtering on the browser side. Basically, the developer plans to add JavaScript code on each page, so before data are sent to the server, it filters out any JavaScript code contained inside the data. Let’s assume that the filtering logic can be made perfect. Can this approach prevent XSS attacks?

 

2.What are the differences between XSS and CSRF attacks?

 

3.Can the secret token countermeasure be used to defeat XSS attacks?

 

4.Can the same-site cookie countermeasure for CSRF attacks be used to defeat XSS at- tacks?

 

5.To filter out JavaScript code from user input, can we just look for script tags, and remove them?

 

If you can modify browser’s behavior, what would you add to browser, so you can help reduce the risks of XSS attacks?

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Device network connection
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Windows 10 Comprehensive 2019
Microsoft Windows 10 Comprehensive 2019
Computer Science
ISBN:
9780357392607
Author:
FREUND
Publisher:
Cengage