The reward distribution logic updates a global index based on the current total balance, so a user who suddenly increases their balance can capture a disproportionate share of rewards. An attacker could flashloan or buy a large amount of wormhole ETH, convert it to bEth, trigger a reward update, claim rewards, and then convert back, gaining rewards without contributing to the system.
The collector contract allows anyone to call a sweep function that swaps asset tokens to ANC through Astroport without setting a belief price or ensuring a maximum spread. An attacker could sandwich this trade to profit at the protocol's expense, causing the protocol to receive fewer tokens than at a fair market price.
The contract's reward and borrow limit calculations rely on configuration values that are updated without recalculating the epoch operations, leaving stale data. An attacker could potentially exploit this to obtain incorrect rewards or borrow limits.
The staking contract calculates shares to burn when withdrawing tokens by rounding down, allowing an attacker to withdraw more tokens than the shares they burn. An attacker can repeatedly exploit this rounding error to make a small profit.
The reward contract updates a user's balance without first settling pending rewards, so a new depositor's larger balance is multiplied by rewards that belong to existing users. An attacker could bond a large amount, trigger a global index update, and claim a disproportionate share of pending yield, potentially amplified with a flash loan.
The hub contract allows the admin to update the token contract address, which can cause incorrect undelegation amounts because the amount of unbonded tokens is stored as requested_with_fee. An attacker with admin privileges could change the token contract and cause users to receive wrong amounts during undelegation.
The contract functions for fabricating MIR and ANC claims lack caller restrictions, allowing anyone to submit these messages. The report does not specify what an attacker could achieve by doing so.
The unbonding function chose which validator to unstake from using a random number seeded only by the block height, which is predictable. An attacker could repeatedly bond to their own validator and unbond when the predictable choice favoured them, eventually capturing all Anchor bond stake and rewards.
The custody contract's swap function only handles the reply when the last sub-message succeeds, so if that swap fails, the swapped rewards remain stuck in the contract. An attacker could not directly exploit this, but users may be unable to receive rewards during periods when the last swap consistently fails.
The market contract's claim_rewards function asks the distributor contract to spend the reward amount, but the distributor rejects any spend above its configured spend_limit. Once a user's accumulated rewards exceed that limit, their claim transaction reverts and they cannot withdraw the rewards.
The oracle contract's feed_prices function sets the last_updated_time to the current block time, so a delayed transaction with an old price can be accepted as fresh. An attacker could exploit this to cause wrongful liquidations and fund loss.
The owner's spend limit in the distributor and community contracts was never reduced after a spend, so the limit was not enforced. An owner could call the spend function repeatedly, each time for the full limit, and move far more than intended.
The bridge contract's token whitelist checks were commented out, so users could deposit non-whitelisted tokens. Those tokens cannot be processed on the Terra side, so the funds may become frozen on the bridge or on Terra.
The governance contract's poll snapshot records only the total staked amount at snapshot time, not individual user balances. An attacker could stake tokens after the snapshot and then vote, gaining disproportionate influence over the poll outcome.
The borrow interest was calculated using a simple interest formula rather than compound interest, so the actual rate depended on how often the market was updated. In low-activity markets, this could lead to a lower borrow rate and suppliers losing out on interest.
AC
Anchor contest
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.