Smart Contract Security Risks in DeFi Portfolio Management