Web Security · Middle · Question 74 of 75

A login page redirects to ?next= after success. How can that be abused?

Explanation

Allow only relative paths or an allowlist of destinations, and watch out for tricks like //evil.com or /\evil.com.

Further reading

Problem with a question

Web Security · Middle · question 74

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