Stader OPERATOR is a single point of failure
The OPERATOR role in Stader's node registry contracts can arbitrarily mark validator keys as invalid or ignore them, and can authorise invalid keys without any on-chain verification. This undermines the permissionless nature of the pool and could allow a compromised operator to harm the system.
Submitted by JGcarv
https://github.com/code-423n4/2023-06-stader/blob/main/contracts/PermissionlessNodeRegistry.sol#L183 https://github.com/code-423n4/2023-06-stader/blob/main/contracts/PermissionedNodeRegistry.sol#L254
The OPERATOR role holds a lot of power within the system, which can compromise both the system integrity and it’s permission-less nature.
Proof of Concept
The OPERATOR key is responsible for confirming the marking of each validator submitted key as either valid or invalid, without any assurance to validators.
- Arbitrary negation of participation makes permissionless pool permissioned.
The documentation states:
Any validator in permissionless pool can run a node with 4 ETH + 0.4 ETH worth of SD token.
Which is not strictly true, since any participant in the system must be vetted by the OPERATOR, which can arbitrarily mark as invalid or frontrun the key without the need to provide justification or having an appeal system. Alternatively, the OPERATOR can simply ignore the added key and never mark it as ready to deposit.
Therefore, the pool can’t be considered permissionless, since participants must rely on the benevolence of the OPERATOR to participate.
- Authorization of invalid keys
There is no way for the smart contract system to check or confirm that a given public key is really legit. This could generate income to ETHx holders, so the system relies solely on the OPERATOR to make that distinction, rendering the system vulnerable in case of a comprised wallet.
Recommended Mitigation Steps
There is no simple fix for the issue, but at minimum, the protocol shouldn’t be advertised as permissionless.
Assessed type
Rug-Pull
Picodes (judge) decreased severity to Medium
manoj9april (Stader) confirmed and commented:
Thank you for pointing it out. We will move this logic to oracle.
Keeping Medium severity considering this could be an instance of “function of the protocol or its availability could be impacted”.
sanjay-staderlabs (Stader) commented:
This is fixed.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the design relies on a single privileged OPERATOR role to validate and approve validator keys without any on-chain checks or appeal mechanism.
Impact
A malicious or compromised OPERATOR could arbitrarily deny participation or approve invalid keys, potentially impacting the protocol's availability and integrity.
What the attacker needed
Compromised or malicious OPERATOR key
The fix
The logic was moved to an oracle and the issue was fixed, though the report suggests at minimum not advertising the protocol as permissionless.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In this system, a special account called OPERATOR decides which validators are allowed to join. The report says this account has too much power: it can reject anyone without explanation, or approve fake validators. That means the system is not truly open to everyone as advertised, and if the OPERATOR account is stolen, the whole system could be harmed.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.