Web Security · Middle · Question 32 of 75

A server allows any origin that ends with example.com. What's the flaw?

Explanation

Loose string checks and broken regexes are common CORS bugs. Parse the origin and compare the full host against a list.

Further reading

Problem with a question

Web Security · Middle · question 32

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