Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Valid

Wrong use of negation in TimelockController::scheduleBatch

Vulnerability Details

This line is supposed to check if the predecessor is executed or not, but the wrong use of negation will make the function revert even if the predecessor is executed.

Impact

scheduleBatch function will revert even if the predecessor is executed.

Tools Used

Manual Review

Recommendations

--- if (!isOperationDone(predecessor) && !isOperationPending(predecessor)) {
+++ if (!isOperationDone(predecessor) && isOperationPending(predecessor)) {
Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

TimelockController::scheduleBatch checks if predecessor is pending OR executed rather than requiring execution as per comment, allowing scheduling before predecessor executes

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

TimelockController::scheduleBatch checks if predecessor is pending OR executed rather than requiring execution as per comment, allowing scheduling before predecessor executes

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.