Skip to content

Sherlock

Napier

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

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

Disclosed reports

Newest first. Only what Napier chose to make public.

Business logic

YT holder are unable to claim their interest

A malicious user could manipulate the maximum scale value by making a tiny initial deposit and then donating a large amount of assets, causing the scale to spike. This locks the max scale at a high value, so YT holders' interest accrual remains zero and they cannot claim their earned interest.

Napier

High
Business logic

LP Tokens always valued at 3 PTs

The Napier AMM pool incorrectly values Curve LP tokens at a constant 3 PTs, while their actual value grows over time due to accrued fees. This discrepancy allows arbitrageurs to profit by buying LP tokens cheaply from the Napier pool and redeeming them at a higher value, causing losses for the pool's liquidity providers.

Napier

High
Access control

Users are unable to collect their yield if tranche is paused

The Tranche contract's collect function is restricted by a whenNotPaused modifier, so if the admin pauses the contract, users cannot collect their yield. A malicious admin could pause the contract and prevent users from accessing their earned yield, causing a loss of assets.

Napier

Medium
Audit finding

`withdraw` function does not comply with ERC5095

The withdraw function of the Tranche/PT contract does not return the exact amount of underlying assets requested by the user, because the share calculation rounds down. An attacker could receive slightly less than the requested amount, violating the ERC5095 specification.

Napier

Medium
DoS

SFrxETHAdapter redemptionQueue waiting period can DOS adapter functions

The SFrxETHAdapter's bufferEth can be depleted by redemptions, and the 15-day waiting period for withdrawal requests from FraxEtherRedemptionQueue means the buffer cannot be replenished quickly, potentially causing a denial of service for prefundedRedeem and reducing yield for depositors.

Napier

Medium
Business logic

Benign esfrxETH holders incur more loss than expected

A malicious holder of esfrxETH can front-run a rebalancer's withdrawal request to exit before the FRAX withdrawal fee is applied, then re-deposit afterwards, leaving the remaining holders to bear the entire fee. This causes the other holders to incur more loss than if the attacker had not acted.

Napier

Medium
Smart contracts

Victim's fund can be stolen due to rounding error and exchange rate manipulation

The vault's share calculation is vulnerable to a rounding error and exchange rate manipulation, allowing an attacker to steal a victim's deposit. By front-running the victim's deposit with a tiny deposit and a direct transfer to inflate the share price, the attacker can cause the victim to receive almost no shares and then redeem a disproportionate amount of the pooled assets.

Napier

High
Business logic

Lack of slippage control for `issue` function

The `issue` function in the Tranche contract lacks slippage control, so users cannot specify a minimum amount of PT/YT to receive. If the adaptor's scale changes between simulation and execution, users may receive fewer PT/YT than expected, leading to asset loss.

Napier

Medium
Business logic

Anyone can convert someone's unclaimed yield to PT + YT

The issue function allows anyone to convert another user's unclaimed yield into PT and YT tokens, which the victim may not want and which incurs an issuance fee, causing a loss. An attacker can call issue with the victim's address and zero underlying amount to trigger this conversion.

Napier

Medium
Access control

Permissioned rebalancing functions leading to loss of assets

The admin can set the rebalancer to a controlled address, lower the target buffer percentage to 1%, then set the rebalancer to address(0), preventing anyone from calling requestWithdrawal to replenish the ETH buffer, causing user withdrawals to revert and assets to be stuck.

Napier

Medium
Audit finding

`swapUnderlyingForYt` revert due to rounding issues

The swapUnderlyingForYt function in the Napier Router can revert due to rounding errors when calculating the required underlying deposit, preventing users from swapping underlying assets for YT tokens. The buffer added to mitigate rounding is insufficient, leading to a shortfall in PT repayment.

Napier

Medium
DoS

Unable to deposit to Tranche/Adaptor under certain conditions

Under certain conditions, the stake amount calculated in the adapter can become zero, causing the staking function to revert and preventing users from depositing into the Tranche to mint PT and YT. This breaks a core protocol feature.

Napier

Medium
Business logic

FRAX admin can adjust fee rate to harm Napier and its users

The FRAX admin can set the redemption fee to 100%, which would consume the entire amount when Napier's adaptor redeems staked ETH, leaving nothing for Napier users. This prevents users from withdrawing their assets.

Napier

Medium
Crypto

The pool verification in `NapierRouter` is prone to collision attacks

The NapierRouter contract verifies callback callers by computing a CREATE2 pool address from user-supplied basePool and underlying values, which is collision-prone because the 256-bit hash is truncated to 160 bits. An attacker who finds a basePool and underlying combination that yields an address they control could impersonate a pool and steal all token allowances given to the router.

Napier

Medium