Why are Websites Exploitable?

This is a more complicated answer than you would expect.