Platform: Code4rena
Start Date: 06/06/2023
Pot Size: $60,500 USDC
Total HM: 5
Participants: 50
Period: 8 days
Judge: gzeon
Id: 246
League: ETH
Rank: 13/50
Findings: 1
Award: $446.81
🌟 Selected for report: 0
🚀 Solo Findings: 0
446.8103 USDC - $446.81
"_assertNoActionCreationsAtCurrentTimestamp" can be used to DOS "revokeExpiredRole"
If someone tries to revoke an expired role, they will need to call "revokeExpiredRole". But the role holder can frontrun "createAction" at the same timestamp to make that call revert.
function _assertNoActionCreationsAtCurrentTimestamp() internal view { if (llamaExecutor == address(0)) return; // Skip check during initialization. address llamaCore = LlamaExecutor(llamaExecutor).LLAMA_CORE(); uint256 lastActionCreation = LlamaCore(llamaCore).getLastActionTimestamp(); if (lastActionCreation == block.timestamp) revert ActionCreationAtSameTimestamp(); }
Manual
Don't use "_assertNoActionCreationsAtCurrentTimestamp"
DoS
#0 - c4-pre-sort
2023-06-19T11:45:51Z
0xSorryNotSorry marked the issue as duplicate of #209
#1 - c4-judge
2023-07-02T11:13:39Z
gzeon-c4 marked the issue as satisfactory