A miner (bad actor) can influence the value of block.timestamp
so that they can pass the conditional statement block.timestamp < CHRISTMAS_2023_BLOCK_TIME
.
For this vulnerability, a miner (bad actor) can influence the value of block.timestamp
so that they can pass the conditional statement block.timestamp < CHRISTMAS_2023_BLOCK_TIME
and further more, collectPresent before due date (CHRISTMAS), if other conditions are passed.
The time check gets bypassed, hence anyone can collectPresent
once they have Status
value set appropriately.
TEST
RESULT
Running the command below:
gives
Forge Framework
Manual Review
By using a trusted Oracle (Chainlink Oracles), you can mitigate the risk of timestamp manipulation by miners.
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.