Closed code423n4 closed 1 year ago
0xSorryNotSorry marked the issue as primary issue
Sidu28 marked the issue as sponsor disputed
withdrawalDelayBlocks
is adjustable. MAX_WITHDRAWAL_DELAY_BLOCKS
is a non-adjustable constant. I'm confused where "It is stated that at the moment MAX_WITHDRAWAL_DELAY_BLOCKS is 50400 and it is adjustable"
GalloDaSballo marked the issue as unsatisfactory: Invalid
MAX_WITHDRAWAL_DELAY_BLOCKS is the cap withdrawalDelayBlocks can be changed
Finding is invalid
Lines of code
https://github.com/Layr-Labs/eigenlayer-contracts/blob/dbeb85bcd0476e06b8feebf07e33f8a53d54c029/src/contracts/core/StrategyManagerStorage.sol#L46
Vulnerability details
Impact
The value of
MAX_WITHDRAWAL_DELAY_BLOCKS
is constant which shouldn't be. It is stated that at the momentMAX_WITHDRAWAL_DELAY_BLOCKS
is50400
and it is adjustable, but it isn't in this case as it isconstant
and once deployed it can't be changeProof of Concept
As it is stated that
MAX_WITHDRAWAL_DELAY_BLOCKS
could change according to the time but according to the code it isn't possible as theconstant
keyword is used and once deployed it can not be changedTools Used
Manual review
Recommended Mitigation Steps
Don't make it constant, remove the constant word
Assessed type
Timing