We've built a big mud-pie with gaping holes everywhere it seems. Initially getting things working and networked was the goal I guess; security wasn't something people had really worried about (look at earlier network protocols - a lot of trusted stuff just by virtue of being on the same lan/wan). Mitigating timing attacks and branch prediction attacks over a network etc I don't think had even been heard of.
The virus maker/anti-virus vendor self-feeding thing/arms-race is another crackup.