Centralization Risk: Funds can be frozen when critical key holders lose access to their keys
The contract requires trusted key holders to call a function to initiate withdrawals from EthAnchor, so if those key holders lose access to their keys, user funds invested in EthAnchor become frozen. An attacker cannot directly exploit this, but the centralization risk means funds could be permanently locked under certain conditions.
Submitted by WatchPug
The current implementation requires trusted key holders (isTrusted[msg.sender]) to send transactions (initRedeemStable()) to initialize withdrawals from EthAnchor before the users can withdraw funds from the contract.
- https://github.com/code-423n4/2022-01-sandclock/blob/a90ad3824955327597be00bb0bd183a9c228a4fb/sandclock/contracts/strategy/BaseStrategy.sol#L214-L223
- https://github.com/code-423n4/2022-01-sandclock/blob/a90ad3824955327597be00bb0bd183a9c228a4fb/sandclock/contracts/strategy/BaseStrategy.sol#L163-L170
This introduces a high centralization risk, which can cause funds to be frozen in the contract if the key holders lose access to their keys.
Proof of Concept
Given:
investPerc= 80%- 1,000 users deposited 1M UST in total ($1000 each user in avg), 800k invested into AUST (
EthAnchor)
If the key holders lose access to their keys (“hit by a bus”). The 800k will be frozen in EthAnchor as no one can initRedeemStable().
Recommendation
See the recommendation on issue #157.
CrisBRM (Sandclock) confirmed and disagreed with severity:
Agree that there should be a way for users to call the uninvest functions themselves, subject to certain rules. Again, not sure I agree with the severity given the likelihood of the event transpiring.
Consensus is for UST vaults, allow depositors to call uninvest. For nonUST vaults that pay per curve swap, add trusted multisig instead of just the backend’s EOA.
dmvt (judge) changed severity and commented:
This issue requires external factors to align in a very negative way, but it would result in a potentially significant loss of funds. Because there is no direct attack path, it doesn’t qualify as a high risk issue, but a medium risk per Code4rena definitions.
2 — Med: Assets not at direct risk, but the function of the protocol or its availability could be impacted, or leak value with a hypothetical attack path with stated assumptions, but external requirements.
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 withdrawal initiation function is restricted to trusted addresses, with no alternative path for users to trigger it.
Impact
If key holders lose access, the invested portion of funds (e.g., 800k UST out of 1M) could be frozen in EthAnchor, but this requires a negative external event and is not a direct attack path.
What the attacker needed
Key holders lose access to keys
The fix
The recommendation is to allow users to call the uninvest functions themselves under certain rules, and for non-UST vaults to use a trusted multisig instead of a single backend key.
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.
This is a smart contract design issue: only certain trusted people (key holders) can start the process to move invested funds out of a third-party service. If those people lose their keys, nobody can start that process, so the money stays stuck. It is not a bug that an attacker can trigger, but a risk from too much control in a few hands.
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.