Hunt prep
Before you test Amphora Protocol
What 6 disclosed reports say about Amphora Protocol: 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 | 3 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 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.
-
Reentrancy issue with the withdraw method of USDC. All tokens could be drained.
The tokens should be burned before the transfer, or a re-entrancy guard such as OpenZeppelin's should be used.
Disclosed
-
When Convex pool is shut down while collateral type is CurveLPStakedOnConvex , users unable to deposit that asset and protocol lose the ability to accept the asset as collateral further
The report recommends allowing the owner to update the collateral type to Single and pool id to 0 when the pool or booster is shut down, and resetting the isTokenStaked flag when all of the asset is withdrawn.
Disclosed
-
Reorg attack on user’s Vault deployment and deposit may lead to theft of funds
Vault instances should be deployed using create2 with a salt derived from the id, minter and msg.sender.
Disclosed
-
Vault.claimRewards can break if Convex changes the operator
The Vault should check its CVX balance before and after the claim to ensure the correct amount was minted.
Disclosed
-
Rounding error in WUSDA can result in loss of user funds, especially when manipulated by an attacker
The code should revert if the conversion returns zero and should use a scalar precision multiplier; protections against single-block manipulation of the total supply, such as a multi-block delay, should also be considered.
Disclosed
-
crvRewardsContract getReward can be called directly, breaking vaults claimRewards functionallity
The Vault should be changed to claim AMPH using the CVX and CRV balances already held by the contract, rather than relying on triggering getReward itself.
Disclosed