Web Security · Middle · Question 30 of 75

Why should CSRF tokens not be put in URLs (for example ?csrf=...)?

Explanation

Keep tokens in hidden form fields or custom headers, where they don't end up in server logs or third-party referrers.

Further reading

Problem with a question

Web Security · Middle · question 30

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