Hunt prep
Before you test Sandclock contest
What 19 disclosed reports say about Sandclock contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 10 | 0 | – | – | $0 |
| Smart contracts lesson | 6 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Vault can’t receive deposits if underlying token charges fees on transfer
The vault should either reject fee-on-transfer tokens explicitly or measure the actual balance change instead of assuming an exact amount.
Disclosed
-
A Single Malicious Trusted Account Can Takeover Parent Contract
The fix is to use an updated Auth.sol contract that gives an owner account authority over trusted accounts, preventing any single account from taking over the trusted group.
Disclosed
-
Changing a strategy can be bricked
The strategy should keep an internal aUST balance updated upon deposit and redeem, and use that instead of the raw aUST balance to check if it holds no funds; alternatively, the strategy could be allowed to send the aUST to the vault.
Disclosed
-
unsponsor, claimYield and withdraw might fail unexpectedly
The reporter suggested withdrawing from the strategy when the balance is short, but the project said redeeming from the strategy is asynchronous and would not fix it, pointing to the investment percentage instead.
Disclosed
-
Centralization Risk: Funds can be frozen when critical key holders lose access to their keys
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.
Disclosed
-
NonUSTStrategy.sol Improper handling of swap fees allows attacker to steal funds from other users
The depositor should pay the swap fee and slippage by swapping to UST first and then issuing shares based on the UST amount received.
Disclosed
-
Late users will take more losses than expected when the underlying contract ( EthAnchor ) suffers investment losses
The recommendation is to add a `totalLoss` variable to maintain a stable share-to-underlying ratio, adjusting the underlying value by adding total losses.
Disclosed
-
sponsor() function in open to reentrancy attacks
A reentrancy guard modifier should be added to the sponsor() function, and the report states it was fixed.
Disclosed
-
deposit() function is open to reentrancy attacks
Reentrancy guard modifiers should be placed on deposit(), withdraw() and all other important protocol functions.
Disclosed
-
Vaults with non-UST underlying asset vulnerable to flash loan attack on curve pool
The strategy should use a secure oracle instead of the Curve pool's spot rate.
Disclosed
-
Withdrawers can get more value returned than expected with reentrant call
The vulnerability was fixed by adding reentrancy guards and simplifying the shares logic.
Disclosed
-
forceUnsponsor() may open a window for attackers to manipulate the _totalShares and freeze users’ funds at a certain deposit amount
The recommendation is to add a minimum balance reserve (e.g., 1e18 Wei) that cannot be withdrawn by anyone, transferred in by the deployer at deployment.
Disclosed
-
Incompatibility With Rebasing/Deflationary/Inflationary tokens
The contracts should check the vault balance before and after transfers and account for any rebasing, inflation, or deflation before accepting user-supplied tokens.
Disclosed
-
no use of safeMint() as safe guard for users
The Claimers contract should use the safe mint function and the deposit flow should add reentrancy guards; the text does not say a fix was deployed.
Disclosed
-
Medium: Consider alternative price feed + ensure _minLockPeriod > 0 to prevent flash loan attacks
The minimum lock period should be required to be greater than zero in the constructor, and an alternative price feed should be considered.
Disclosed