Web Security · Senior · Question 68 of 75

A React Server Component fetches a user record and passes the whole object to a Client Component. What's the risk?

Explanation

Use a data access layer that returns DTOs with only the needed fields. React's taint APIs can mark values that must never be passed to the client.

Further reading

Problem with a question

Web Security · Senior · question 68

Test yourself

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

Take this quiz