The Dussehra::killRavana
function should be allowed to be called only once but it can be called multiple times by anyone because of improper checks which sends the whole reward pot to the organiser
leaving no rewards for selectedRam
The Dussehra::killRavana
function doesn't have any checks that check if Ravan is already killed allowing anyone to call it a second time and withdraw the whole reward pot to the organiser
Anyone can call Dussehra::killRavana
a second time which would make the contract balance empty and the actual selectedRam
will not be able to withdraw
his rewards
Manual Review
Foundry
Adding a new Modifier to check RavanNotKilled
in Dussehra::killRavana
to check that the function can only be called if Ravan is not killed
make the following changes in Dussehra.sol
Add the modifier
In the Dussehra::killRavana
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.