Denial of Service when Delegated Address Wants to Reject a Previously Confirmed Delegation. #5
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
🤖_05_group
AI based duplicate group recommendation
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2024-11-ethena-labs/blob/main/contracts/ustb/UStbMinting.sol#L468
https://github.com/code-423n4/2024-11-ethena-labs/blob/main/contracts/ustb/UStbMinting.sol#L321
Vulnerability details
Finding impact
Denial of Service when Delegated address wants to reject a previously confirmed delegation which would allow delegation execution that delegate is not willing to carry out for the delegator as noted in Order verification in the UStbMinting contract
Description and Proof of Concept
The code above shows how Order is verified in the UStbMinting contract, as noted in the pointer above, verification would go through if DelegatedSignerStatus is accepted. It can be noted in contract implementation that when delegated Signer is being set it takes the agreement of both the delegator and delegate in a two step process for the delegated Signer to be set in setDelegatedSigner(…) and confirmDelegatedSigner(…) function by the delegator and delegate respectively, however when delegated signer is to be removed only one party (the delegator) has the power to reverse delegation which would cause denial of service to a delegate who wants to also remove delegation.
The code above shows how a Delegated address accepts delegation smart contracts following a two step process by both delegator and delegate from pending status to confirmation status. Then in the situation of undelegating, it can be noted at L326 that a smart contract can undelegated an address for signing. However there is no implementation in situation when a delegate wants to undelegate a contracts when it does not want to perform signing for it
Recommended mitigation steps
As provided below Ethena protocol should add the rejectDelegatedSigner to the UStbMinting.sol contract to ensure delegate can reject delegatation when necessary
The text was updated successfully, but these errors were encountered: