Web Security · Middle · Question 66 of 75

What is prototype pollution?

Explanation

A polluted prototype can change checks like if (user.isAdmin) everywhere. Use safe merge functions, Object.create(null) or Map, and schema validation.

Further reading

Problem with a question

Web Security · Middle · question 66

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