Skip to content

Immunefi

Fluid Protocol

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

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

Disclosed reports

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

Smart contracts

CRITICAL-02 / The contract could be permanently locked due to not reseting the boolen lock

The smart contract's redemption function uses a reentrancy lock that is not reset when an early return occurs due to the new debt falling below a minimum threshold. An attacker could trigger this condition, leaving the lock permanently engaged and blocking all future collateral redemptions, which could lead to protocol insolvency.

Fluid Protocol

Critical
Business logic

Incorrect Scale Factor value leads to early scale change

The stability pool contract uses a scale factor equal to the decimal precision, so the P value is raised to the next scale on the first liquidation instead of later. This could put depositors on a later scale prematurely and cause them to lose deposits if they do not withdraw in time.

Fluid Protocol

Low
Business logic

Redeem functionality partially failing

The redeem_collateral function reverts if any single trove manager for any asset has only one active trove, even when other assets have many troves. This blocks redemptions and could undermine the USDF peg.

Fluid Protocol

Low
Smart contracts

Lock issue bricks the redeem functionality

A lock flag in the redeem collateral function is set to true but never released when a redemption is cancelled, permanently disabling the redeem functionality. An attacker can repeatedly trigger cancellations to brick redemptions for all troves.

Fluid Protocol

Critical
DoS

Bricking redeem function

The redeem_collateral function always reverts when all borrowers in a trove have an ICR below the MCR, because get_all_assets_info calls get_current_icr on a null identity. This prevents redemption of USDF and could permanently freeze funds.

Fluid Protocol

Low
Misconfiguration

Require_caller_is_bo_or_tm_or_sp_or_pm did not emit correct message

The access-control check in the active pool contract verifies the caller against the stability pool, but its revert message names the default pool instead. An unauthorised caller simply receives a misleading error string; no funds or permissions are affected.

Fluid Protocol

Informational
Business logic

Redeem_collateral does not redeem collateral from riskiest trove but wrongly redeem lowest healthy troves with lowest collateral Ratio

The redeem_collateral function selects healthy troves (collateral ratio >= 135%) instead of the riskiest trove with the lowest collateral ratio, so redemptions take collateral from users who are not the riskiest. An attacker could redeem USDF to unfairly take collateral from healthy troves, causing those users to lose funds.

Fluid Protocol

Informational
DoS

Can not redeem when all current_cr less than MCR.

The redeem_collateral function loops through borrowers whose collateral ratio is below the minimum, but when no previous borrower exists it receives a zero address and adds it to the list, causing the transaction to revert. This prevents users from redeeming their collateral when all borrowers are below the minimum collateral ratio.

Fluid Protocol

Low
DoS

Inconsistent Collateral Ratio Checks in Stability Pool Withdrawals Lead to Fund-Locking DoS

The stability pool withdrawal function rejects withdrawals whenever any trove has an individual collateral ratio at or below the minimum, while trove opening only requires the ratio to be at least the minimum. An attacker can open a trove exactly at the minimum ratio to make legitimate withdrawals revert, locking users' deposits and rewards in the pool.

Fluid Protocol

Informational
DoS

Single below MCR trove temporarily blocks redemptions

When a Trove Manager holds only one trove and that trove's collateral ratio is below the minimum, the redemption loop walks past it to a null identity and then reverts while reading reward snapshots. This temporarily blocks all redemptions for that asset until the trove is liquidated.

Fluid Protocol

Low
Business logic

Inaccurate check leading to debt miscalculation

The function that checks for pending rewards only compares the asset reward index and ignores the USDF debt reward index, so when only the USDF index changes, pending rewards are not applied. An attacker could then withdraw funds without accounting for the additional debt, shifting the burden onto other users or causing minor USDF price fluctuations.

Fluid Protocol

Informational
Smart contracts

Permanent dead Lock in internal_redeem_collateral_from_trove

A function that redeems collateral from a trove returns early without releasing a lock when the resulting debt falls below a minimum threshold. An attacker could trigger this condition, causing the contract to remain permanently locked and preventing further redemptions.

Fluid Protocol

Critical
Audit finding

Redstone's price feed is used incorrectly.

The oracle contract compares a Redstone price timestamp in Unix format against the Fuel block timestamp in TAI64 format, so the staleness check is meaningless. An attacker could cause the contract to accept a stale Redstone price when the Pyth price is stale or outside its confidence interval.

Fluid Protocol

Medium
Business logic

Require_at_least_min_net_debt did not emit correct error message

The `require_at_least_min_net_debt` function in the borrow operations contract emits an error message stating that net debt must be greater than 0, even though the actual minimum is 500 USDF. This misleading message could confuse users and make debugging harder when a trove opening fails due to insufficient debt.

Fluid Protocol

Informational