Quiz Yourself on Common Vulnerabilities, Attacks, and Preventions

Test yourself about XSS, React escape hatches, input validation, eval, SQL injection, and vulnerable and outdated components.

1

(Select all that apply.) What are some ways that we can run JavaScript code?

A)

A script tag with an src attribute to make a request for an external JavaScript file.

B)

A string can be passed to eval and executed as JavaScript.

C)

A p tag with an onhover attribute.

D)

An img tag with an onerror attribute.

Question 1 of 150 attempted

Get hands-on with 1400+ tech skills courses.