Skip to content

Code4rena

Phuture

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

disclosed reports
10
most reported class
Business logic
bug classes found
3
Find Phuture on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Phuture chose to make public.

Business logic

Wrong shareChange() function ( vToken.sol )

The shareChange() function in vToken.sol calculates new shares incorrectly when the total supply equals the old shares, resulting in zero new shares. An attacker could potentially exploit this to receive fewer vTokens than deserved, causing a loss of funds.

Phuture

Medium
Business logic

Tokens with fee on transfer are not supported

The contract's addValue function assumes the received amount equals the transfer amount, but fee-on-transfer tokens reduce the actual received amount. An attacker could exploit this to cause incorrect attribution calculations and balance discrepancies.

Phuture

Medium
Business logic

Duplicate asset can be added

The initialize function in three index contracts can be called multiple times with the same asset, causing duplicate entries in the assets list. Any function reading the assets list would then retrieve duplicate assets.

Phuture

Medium
Access control

Asset Manager can update existing _assetAggregator

The addAsset function allows an asset manager to change the price aggregator for an existing asset, which affects all functions using that asset. An attacker with the asset manager role could replace the aggregator with a malicious one, potentially manipulating prices.

Phuture

Medium
Business logic

Wrong requirement in reweight function ( ManagedIndexReweightingLogic.sol )

The reweight function in ManagedIndexReweightingLogic.sol checks the length of the updated asset list against the maximum allowed components, but this list includes assets to be removed, so the check can fail even when the final asset count would be within the limit. This causes the transaction to revert, preventing the asset list from being changed.

Phuture

Medium
Business logic

Inactive skipped assets can be drained from the index

The minting logic excludes assets with the SKIPPED_ASSET_ROLE from deposit checks, but the burning logic only skips them when a separate blacklist flag is set. An attacker could repeatedly deposit and withdraw to drain any skipped asset held by the index without ever depositing it.

Phuture

Medium
Audit finding

Chainlink’s latestRoundData might return stale or incorrect results

The Chainlink price oracle contract reads the latest round data without checking whether the returned price is stale or from an incomplete round. An attacker could exploit stale or incorrect prices to manipulate the protocol's valuation of assets.

Phuture

Medium
Access control

Index managers can rug user funds

The ORDERER_ROLE role allows arbitrary transfer of user funds and is also required for rebalancing indices. A malicious manager with this role could steal user funds.

Phuture

Medium