Web Security · Middle · Question 2 of 75

Which of these is a DOM XSS sink?

Explanation

Sinks parse strings as HTML or code: innerHTML, outerHTML, insertAdjacentHTML, document.write, eval, setTimeout(string) and URL properties that accept javascript:.

Further reading

Problem with a question

Web Security · Middle · question 2

Test yourself

Take the Web Security · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz