Skip to content

Sherlock

Hubble Exchange

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

disclosed reports
16
most reported class
Business logic
bug classes found
3
first disclosure
2023
Find Hubble Exchange on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Hubble Exchange chose to make public.

DoS

ProcessWithdrawals is still DOS-able

The withdrawal queue processing function can be permanently blocked by a malicious user who withdraws to a smart contract that consumes all available gas during the external call. This prevents any further withdrawals from being processed, causing users to lose their funds.

Hubble Exchange

High
DoS

Funding settlement will be DOS'd for a time after the phaseID change of an underlying chainlink aggregator

The oracle incorrectly assumes that Chainlink round IDs increment by one, but they actually pack a phase ID and aggregator round ID. When the phase ID increments, the round ID jumps by 2^64, causing calls to settle funding to revert for up to 24 hours, which delays funding settlement and results in different TWAP values being used, leading to yield loss for some users.

Hubble Exchange

Medium
Audit finding

`Chainlink.latestRoundData()` may return stale results

The Oracle.getUnderlyingPrice() function did not check whether the Chainlink price feed data was stale. An attacker could exploit stale prices to cause incorrect valuations in the InsuranceFund, MarginAccount, and AMM contracts, potentially leading to financial loss.

Hubble Exchange

Medium
Business logic

Malicious user can control premium emissions to steal margin from other traders

The premium calculation in the perpetual market relies too heavily on the last traded price, allowing a malicious user to place orders that manipulate the time-weighted average price (TWAP) and generate premiums in their favour. This lets them steal margin from other traders who take the opposite side of their positions.

Hubble Exchange

Medium
Business logic

User will be forced liquidated

The addMargin function is blocked while the contract is paused, so users cannot top up collateral during that time. After unpausing, a liquidator can front-run a user's margin addition and liquidate the position, causing loss of collateral.

Hubble Exchange

Medium
Audit finding

No `minAnswer/maxAnswer` Circuit Breaker Checks while Querying Prices in Oracle.sol

The Oracle contract does not check whether Chainlink price feeds return the minimum or maximum configured answer, so if an asset's market price falls outside that band, the oracle keeps reporting the boundary value. An attacker could then borrow or interact with the protocol using an incorrect, inflated price for a crashed asset.

Hubble Exchange

Medium
Race condition

Malicious user can grief withdrawing users via VUSD reentrancy

The VUSD contract's withdrawal processing sends the withdrawn gas token to the user's address using a low-level call, which triggers the recipient's receive function. An attacker could deploy a malicious contract that, upon receiving the gas token, immediately deposits and withdraws again, thereby lengthening the withdrawal queue and forcing other users to spend more gas to process their withdrawals.

Hubble Exchange

Medium
Business logic

Rogue validators can manipulate funding rates and profit unfairly from liquidations

Validators on the Hubble exchange have the exclusive right to match orders, and a malicious validator can abuse this to manipulate funding rates and profit unfairly from liquidations. The report describes two attack vectors: profiting from liquidations by matching them against the validator's own orders at a worse price, and manipulating the funding rate by placing and matching tiny orders at the extremes of the allowed spread.

Hubble Exchange

High