Skip to content

Code4rena

Angle Protocol - Invitational

Every publicly disclosed report for Angle Protocol - Invitational and what kind of bugs they were.

disclosed reports
10
most reported class
Business logic
bug classes found
3
first disclosure
2023
Find Angle Protocol - Invitational on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Angle Protocol - Invitational chose to make public.

Smart contracts

Possible reentrancy during redemption/swap

The redemption function transfers collateral tokens before finishing its state updates, so a recipient of an ERC777 collateral could re-enter redeem and receive more collateral than entitled. An attacker could steal collateral from the contract.

Angle Protocol - Invitational

High
DoS

LibHelpers.piecewiseLinear will revert when the value is less than the first element of the array

The piecewise linear interpolation helper reverts when the input value is below the first element of the x-array, and since the redemption curve's first x-value is not enforced to be zero, a collateral ratio below that first value causes redemptions to revert. An attacker could not directly exploit this, but the protocol could become unable to process redemptions under certain under-collateralised conditions.

Angle Protocol - Invitational

Medium
DoS

uint128 changeAmount might overflow

The report claims that a uint128 variable in the swap function could overflow if the amount swapped is extremely large, causing the transaction to revert. The attacker could not exploit this for gain, but it could make the protocol unusable for certain large swaps.

Angle Protocol - Invitational

Medium
Business logic

estimatedAPR() might return the wrong APR

The estimatedAPR() function in SavingsVest returns a stale APR after the vesting period ends because it uses the stored vestingProfit without checking whether any profit remains locked. Users could see an incorrect, non-zero APR when the true APR should be zero.

Angle Protocol - Invitational

Medium
Smart contracts

Read-only reentrancy is possible

The transmuter contract's swap and redeem functions lack reentrancy guards, allowing an attacker with an ERC777 collateral token to reenter during a swap before the agToken is minted. This causes the collateral ratio to be misreported, leading to incorrect minting of agToken rewards in SavingsVest.

Angle Protocol - Invitational

Medium
Smart contracts

Unsafe cast in getCollateralRatio()

The getCollateralRatio() function casts a computed collateral ratio to uint64 without checking for overflow, so the ratio can wrap to an incorrect value when the true ratio exceeds the maximum uint64. An attacker could manipulate the collateral balance to make the view function return a wrong ratio, potentially affecting protocol decisions.

Angle Protocol - Invitational

Medium
Business logic

Poor detection of disputed trees allows claiming tokens from a disputed tree

The contract's getMerkleRoot function returns the current Merkle root if the dispute period has ended, even if the tree is still disputed (disputer address set). A malicious trusted EOA could add a fraudulent tree and claim the entire contract balance if the dispute is not resolved quickly.

Angle Protocol - Invitational

High
Business logic

The first disputer might lose funds although his dispute is valid

The disputeTree function allows a new dispute to be created even when one is already active, and resolveDispute refunds only the most recent disputer. A malicious user could front-run the resolution of a valid dispute, causing the original disputer to lose their deposit.

Angle Protocol - Invitational

High
Business logic

Interest is not accrued before parameters are updated in SavingsVest

The SavingsVest contract did not accrue interest before updating the protocol safety fee and vesting period, so depositors could lose earned yield or have it locked longer. An attacker could sandwich the parameter update to profit from a jump in locked profit.

Angle Protocol - Invitational

Medium
Business logic

User may get less tokens than expected when collateral list order changes

The order of the collateral list can change when a collateral is revoked, but the redeem function expects the user's minimum output amounts to be in that same order. This can cause a user's redemption to succeed even if they receive less of a token than they intended.

Angle Protocol - Invitational

Medium