Hunt prep
Before you test Sentiment Update #3
What 38 disclosed reports say about Sentiment Update #3: 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 | 27 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
| Race condition 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.
-
GMX Reward Router's claimForAccount() can be abused to incorrectly add WETH to tokensIn
The fix should be in AccountManager.sol#_updateTokensIn() to only add a token to the asset list if the account has a positive balance, and move the call to after the function execution.
Disclosed
-
No check if Arbitrum L2 sequencer is down in Chainlink feeds
The oracle should follow Chainlink's documented example and check the L2 sequencer uptime feed before accepting a price; the discussion states a fix was confirmed.
Disclosed
-
All Rage Trade functions allow sending tokens to a different address, leading to incorrect tokensIn
The controller should confirm that the receiver address equals the calling account when decoding the call data.
Disclosed
-
`PreviewRedeem` may under-price the value of the asset
The function should use the actual account address to determine the fee instead of the zero address.
Disclosed
-
Using one controller for two addresses could risk signature collisions
The controller should be split into two files, one per contract, and the practice of one controller per contract should be maintained.
Disclosed
-
Tokens not owned by an account can be added as an asset to the account
No particular recommendation was provided; the issue should be fixed by ensuring tokensIn only includes tokens actually received by the account.
Disclosed
-
H-01 wstETH-ETH Curve LP Token Price can be manipulated to Cause Unexpected Liquidations
The recommendation is to avoid using the ETH-stETH LP token as collateral because its price is manipulable, unless a reliable oracle (e.g., Chainlink virtual_price oracle or a TWAP) is available.
Disclosed
-
[WP-M1] getRewards() can be triggered by external parties which will result in the rewards not be tracking properly by the system
The reward tokens should be added to the account's asset list when the deposit is first made, rather than waiting for a claim.
Disclosed
-
No check for active Arbitrum Sequencer in WSTETH Oracle
The same sequencer uptime check used in the other Arbitrum oracle should be added to the WSTETH oracle, and a fix pull request was confirmed.
Disclosed
-
Curve LP Controller withdraw and claim function uses wrong signature
The function selector in the Balancer controller was changed to match the correct withdraw signature, and the fix was confirmed.
Disclosed
-
User can trade away an asset using Balancer batchSwap without removing it from account
The issue was fixed by blocking all trades where an intermediate amount is greater than zero, rather than adopting the suggested asset-delta approach.
Disclosed
-
Non terminal tokens received via Balancer batchSwap are not accounted for
The issue was fixed by blocking all trades with intermediate amounts greater than zero.
Disclosed
-
Curve LP staking allows adding false tokensIn to account by setting _claim_rewards to false
The controller should decode the calldata to check the `_claim_rewards` boolean and call the non-claim version of the function when it is false; the text confirms a fix was made.
Disclosed
-
`ERC4626Oracle` Price will be wrong when the ERC4626's `decimals` is different from the underlying token’s decimals
The fix was to use the underlying token's decimals instead of the vault's decimals in the price calculation, and this was implemented and confirmed.
Disclosed
-
`originationFee` may result in the borrower account becoming liquidatable immediately
The borrow function was changed to check account health after the borrow, and the redundant pre-check was removed.
Disclosed