How do DeFi protocols get hacked?

An analysis of several dozen hacks identifies the main vectors and typical vulnerabilities in the decentralized finance sector.