2 matches found
the unbounded approve function allows a front-running vulnerability due to setting unlimited allowance.
Lines of code Vulnerability details Impact if approve is called with a very high allowance, the spender can drain the owner's entire balance. Proof of Concept approve allows setting an allowance to any arbitrary uint256 value, including typeuint.max. This effectively gives unlimited approval to t...
6.8AI score
SaveExploits0
approve() can be front-run
Lines of code Vulnerability details Impact In MToken.sol we have approve function: function approveaddress spender, uint256 amount override external returns bool address src = msg.sender; transferAllowancessrcspender = amount; emit Approvalsrc, spender, amount; ...
6.7AI score
SaveExploits0
20