Submitted by cccz, also found by hyh, Kenshin, pedroais, and TrungOre
In the mint function of the IndexLogic contract, users are required to transfer assets to vToken in advance, and then call the mint function to mint tokens.
The attacker can monitor the asset balance in the vToken contract. When the balance is greater than lastBalance, the attacker can call the mint function to mint tokens for himself.
IndexLogic.sol#L48
Call the transferfrom function in the mint function of the IndexLogic contract to transfer the users assets.
olivermehr (Phuture Finance) disputed
jn-lp (Phuture Finance) commented:
moose-code (judge) commented:
