code-423n4 / 2024-07-karak-validation

0 stars 0 forks source link

The operator can still access `Core::finalizeUpdateVaultStakeInDSS()` even after unregistering from the DSS. #324

Closed c4-bot-2 closed 2 months ago

c4-bot-2 commented 2 months ago

Lines of code

https://github.com/code-423n4/2024-07-karak/blob/f5e52fdcb4c20c4318d532a9f08f7876e9afb321/src/Core.sol#L146

Vulnerability details

Impact

Proof of Concept

Tools Used

Recommended Mitigation Steps

 function finalizeUpdateVaultStakeInDSS(Operator.QueuedStakeUpdate memory queuedStake)
        external
        nonReentrant
        whenFunctionNotPaused(Constants.PAUSE_CORE_FINALIZE_STAKE_UPDATE)       
{
+        isOperatorRegisteredToDSS(queuedStake.operator, queuedStake.updateRequest.dss);

Assessed type

Access Control