Skip to content

Code4rena

Open Dollar

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

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

Disclosed reports

Newest first. Only what Open Dollar chose to make public.

Audit finding

Decimal Limitation in CamelotRelayer and UniV3Relayer Contract Deployment

The CamelotRelayer and UniV3Relayer contracts compute a multiplier as 18 minus the quote token's decimals, which underflows when the token has more than 18 decimals. This prevents deployment of the relayer for such tokens, limiting the protocol's compatibility.

Open Dollar

Medium
Business logic

Updating SafeManager address in the Vault721 will disable NFV minting

The Vault721 contract tracks the next NFT ID via the ODSafeManager's _safeId, which resets to zero when governance changes the safe manager address. This causes minting to revert because the new manager tries to mint an NFT with an ID that already exists.

Open Dollar

Medium
Business logic

Missing debt check lets users start a debt auction of non-existent debt

The debt auction function checks the available bad debt before settling it, so after settlement the remaining debt can fall below the minimum bid size, yet the auction still starts. An attacker could start an auction for non-existent debt, diluting the protocol token.

Open Dollar

High
Business logic

Incorrect calculations for Surplus Auction creation cause massive surplus imbalances

The auctionSurplus function used the wrong constant (ONE_HUNDRED_WAD instead of WAD) in a comparison and a multiplication, so a surplus auction could be created with an amount to sell that was about 100 times too large, and even when the transfer percentage was 100% an auction would still be created while the full surplus was also transferred. An attacker could exploit this to buy large amounts of system coins cheaply, causing massive price imbalances and destabilising the protocol.

Open Dollar

High
Access control

transferSAFEOwnership() does not fully transfer ownership

The transferSAFEOwnership function does not clear the safeCan mapping, so addresses previously granted permission to a safe retain access even after ownership changes. If the original owner later regains the safe, those addresses can still perform critical operations on it.

Open Dollar

Medium
Business logic

Unable to retrieve price information with CamelotRelayer contract

The CamelotRelayer contract uses Uniswap V3's OracleLibrary to fetch price data from a Camelot pool, but Camelot pools lack the required functions (slot0, observations, observe), causing calls to revert. As a result, the price lookup feature does not work, breaking the contract's functionality.

Open Dollar

Medium
Business logic

ODSafeManager.enterSystem - Transfer wrong amount of collateral, debt

The enterSystem function in ODSafeManager reads the locked collateral and generated debt of the destination safe handler instead of the source, so it transfers the wrong amounts. This breaks the function's intended behaviour and can cause it to fail or move incorrect collateral and debt.

Open Dollar

Medium
Business logic

Due to extremely short votingDelay and votingPeriod , governance is practically impossible

The governance contract was deployed with a voting delay of 1 block and a voting period of 15 blocks, which on Arbitrum (average block time 0.26 seconds) gives users only about 4 seconds to vote. This makes it practically impossible for enough token holders to participate and reach quorum, effectively disabling governance.

Open Dollar

Medium
Business logic

Vault721.tokenURI does not comply with ERC721 - Metadata specification

The Vault721 contract's tokenURI function does not revert for non-existent token IDs, violating the ERC721 metadata specification. An attacker could call tokenURI with an invalid ID and receive a URI instead of an error, potentially causing confusion or integration issues.

Open Dollar

Medium
Business logic

Malicious users are able to bypass the Tax payment using making a Fake BasicActions Contract

The protocol's proxy contract uses delegatecall to a BasicActions contract to pay taxes on debt operations, but since the target can be any contract, a user can deploy a fake BasicActions without tax payment and bypass taxes. An attacker could interact with the protocol without paying taxes, causing a loss of protocol fees.

Open Dollar

Medium
Access control

Approved address can approve other addresses for an owner’s safe

The allowSAFE function used a modifier that allowed any previously approved address to grant further approvals on the owner's safe. An approved address could therefore give another address permission to act on the safe, which the owner did not intend.

Open Dollar

Medium