XSS interview questions

XSS interview questions

Take as many assements as you can to improve your validate your skill rating

Total Questions: 5

1. What defense will best help stop Cross Site Scripting (XSS)?

Correct Answer is : Output Encoding

2. For which input validation needs are regular expressions not enough?

Correct Answer is : File upload input

3. Which JavaScript functions are so dangerous that they will automatically execute untrusted data as JavaScript code?

Correct Answer is : SetTimeout()

4. What is the best way to parse JSON in the browser?

Correct Answer is : JavaScript: JSON.parse

5. What is the best design for input validation?

Correct Answer is : Setting a policy for good input and rejecting everything else.

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon