Submitted by jonah1005
Theres a permissionless function veCRVlock in MochiTreasury. Since everyone can trigger this function, the attacker can launch a sandwich attack with flashloan to steal the funds.
MochiTreasuryV0.sol#L73-L94
Attackers can possibly steal all the funds in the treasury. I consider this is a high-risk issue.
MochiTreasuryV0.sol#L73-L94
Heres an exploit pattern
Recommend to add onlyOwner modifier.
ryuheimat (Mochi) confirmed
