DeFi platform Cork Protocol suffered an attack due to a smart contract vulnerability, resulting in a loss of 12 million USD.