Attackers can claim for past epochs... Leading to lose of funds from the contract.
Again, here is the claim
function in the DAIGold.sol
contract:
The ability to successfully claim tokens can be called by anyone. Even though the developers assume this will be called by honest users, attackers can exploit this function.
There are 3 checks above: 2 for timing, and 1 against 0 amounts. But none is against those who have never deposited, but want to claim.
Logically, this line templeGold.safeTransfer(msg.sender, claimAmount);
will also work for attackers.
Loss of funds.
Manual review.
Checkmate against the possibility of those who never deposited from claiming.
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.