Skip to content

Code4rena

Amphora Protocol

Every publicly disclosed report for Amphora Protocol and what kind of bugs they were.

disclosed reports
6
most reported class
Business logic
bug classes found
3
first disclosure
2024
Find Amphora Protocol on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Amphora Protocol chose to make public.

Smart contracts

Reentrancy issue with the withdraw method of USDC. All tokens could be drained.

The withdraw function transfers the underlying token before burning the user's balance, so a malicious contract can re-enter withdraw from its fallback and repeat until the protocol's tokens are drained. An attacker could therefore steal all USDC held by the contract.

Amphora Protocol

High
Business logic

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

When a Convex pool for a collateral asset is shut down, the vault's deposit function always reverts because it tries to stake the LP token on Convex, so users can no longer deposit that asset and the protocol cannot accept it as collateral. Existing users may also face liquidation risk if the staking flag is not reset.

Amphora Protocol

Medium
Race condition

Reorg attack on user’s Vault deployment and deposit may lead to theft of funds

The Vault contract is deployed using CREATE, so its address depends on the deployer's nonce. If a chain reorganisation removes the victim's deployment and deposit, an attacker can front-run the deployment to take control of the Vault at that address, then steal the victim's deposit.

Amphora Protocol

Medium
Business logic

Vault.claimRewards can break if Convex changes the operator

The Vault.claimRewards function assumes CVX tokens are always minted when claiming CRV rewards, but if Convex changes its operator, no CVX is minted and the claim reverts, blocking users from receiving their CRV and extra rewards.

Amphora Protocol

Medium
Smart contracts

Rounding error in WUSDA can result in loss of user funds, especially when manipulated by an attacker

A rounding error in the WUSDA contract's conversion from USDA to WUSDA can cause depositors to receive zero or fewer WUSDA tokens than expected. An attacker could exploit this by using a flash loan to inflate the total USDA supply, front-running a victim's deposit so it mints little or no WUSDA, and then withdrawing the inflated supply to profit at the victim's expense.

Amphora Protocol

High