Open hats-bug-reporter[bot] opened 2 weeks ago
This will happen in the year 2^40 / (3652460*60) + 1970 = 36835, in the meantime we will very likely have multiple versions of Proof Of Humanity (contracts are upgradable through governance).
The issue is excluded by the contest rule: Any issue that is only theoretical but can't happen in practice.
Github username: -- Twitter username: -- Submission hash (on-chain): 0x86f2a9c51c787f945bd37203e1440c61c18eff56e5fd58ea0fc597c83d0b0c3d Severity: low
Description: Description\ The
expirationTime
inrenewHumanity
will be forever true whenuint40(block.timestamp)
overflows. As a result, the functionrenewHumanity
will be callable before the desired date.Reference to same bug, different issue: https://solodit.xyz/issues/m-07-vesting-schedule-start-and-end-time-can-be-set-in-the-past-code4rena-vtvl-vtvl-contest-git
ProofOfHumanity.sol@L741-758
ProofOfHumanity.sol@L1157-1182
Cast the
block.timestamp
touint40
.ProofOfHumanity.sol@L741-758