MoneyShelf::depositUSDC
function, it is used an arbitrary from
passed to transferFrom
and thhe to
address is not the msg.sender
Description: An attacker can call the function just when another user has already approved the contract, and receive all the minted tokens.
Impact: User's funds can be stolen.
Proof of Concept: Paste the next test
Recommended Mitigation: account
and to
should be msg.sender
. Also can be used a mapping to store the approved accounts.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.