README states that: "killRavana: ... this function will only work after 12th October 2024 and before 13th October 2024."
The Dussehra
contract should revert with error Dussehra__MahuratIsNotStart
before Oct 12th. However, the timestamp is set at 1728691069
, which is Fri Oct 11 2024 23:57:49 GMT+0000
, which is roughly 2 minutes before Oct 12th midnight.
The contract then should revert with error Dussehra__MahuratIsFinished
after Oct 13th. However, the timestamp is set at 1728777669
, which is Sun Oct 13 2024 00:01:09 GMT+0000
, which is roughly 9 hours after Oct 13th midnight.
PoC only proves that Ravana can be killed before Oct 12th.
Not a whole lot, especially with the current implementation where users cannot set isRamSelected
in the ChoosingRam
contract to true
, only organiser can select Ram. If anything, there is a 9 hour buffer given to the organiser should they forget to killRavana in time.
The problem is mostly that it does not match the description of the function in README.
Manual Review
Set Revert values to 1728691200 and 1728777600 respectively.
Better, set immutable variables to prevent issues of magic numbers.
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.