If a contract having a fallback/receive function invokes refund
, a reentrancy is possible, which could lead to all funds being drained in PuppyRaffle
.
The attacker can intercept the funds and call back refund
until all Ether in the contract are wiped out.
Systemic impact on the protocol and all its actors.
Use Checks Effects Interactions pattern in refund
.
reentrancy in refund() function
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.