The challenger reward in the Frankencoin auction is calculated from the position's self-declared price, which the owner can set arbitrarily high. An attacker can open a position with a huge price, immediately challenge and end it, causing the protocol to pay an enormous reward by draining the reserve and minting new ZCHF.
A position owner can set the position price to the maximum unsigned integer value, which causes an overflow in the challenge logic so that bids and challenge endings revert. This lets the owner avoid liquidation and leave the challenger's funds stuck.
The position's cooldown period is only extended when its collateral balance falls below the minimum after a successful challenge. An attacker can send collateral just before the challenge ends, keeping the balance above the minimum, so the cooldown is not extended and they can immediately mint a large amount of ZCHF at the manipulated price.
A position owner can transfer ownership to the zero address, causing the challenge end function to revert when it tries to refund the owner. This locks the bidder's funds and the challenger's collateral, preventing the challenge from completing.
A position owner can front-run a challenge by repaying the debt and setting the position price to zero, so the challenger's bid passes the collateral check with almost no value and the owner can then back-run with a tiny bid to take the challenger's collateral. This sandwich attack causes challengers to lose their collateral.
The share calculation in the Equity contract mints a fixed number of shares when total shares are below 1000e18, but shares can be burned below that threshold, so a depositor can receive only 1 share for a large deposit. An attacker can repeatedly redeem small amounts to keep total shares below the threshold, causing future depositors to lose most of their deposited Frankencoin.
The end() function in MintingHub.sol performs multiple token transfers in one call, so if any single transfer reverts (for example, a zero-amount transfer on a token that rejects it, or a transfer to the zero address), the entire end() call fails and all funds remain locked. An attacker could exploit this to temporarily or permanently lock challengers' collateral and bidders' funds.
The Equity contract allows minting and redeeming FPS without any slippage control, so the price changes with the ZCHF reserve. An attacker can sandwich a user's transaction to profit at the user's expense.
The system allows token holders to suggest new minters but provides no mechanism to remove or pause a registered minter after a 10-day denial window. An attacker could exploit a buggy minter to break the whole system, affecting all token holders.
A challenger and bidder can collude to repeatedly trigger challenges that, when averted, call restrictMinting and suspend the position owner's minting for an additional day. This allows them to indefinitely block the owner from minting new tokens.
The price calculation in initializeClone() rounds down, which can cause a revert in checkCollateral() when the division is not exact. An attacker could trigger this revert by providing parameters that cause precision loss, leading to a denial of service for legitimate users.
A later challenger can bid on an earlier challenge to extend its expiration time, causing the later challenge to succeed first and take the reward. The earlier challenger then cannot claim the reward because the collateral is already gone.
The auction mechanism for challenged positions accepts the highest bid even if it is near zero, so under extreme network congestion or market panic, an attacker could win valuable collateral for almost nothing. The report also notes that without any bids, the protocol treats the collateral as worthless and fails to liquidate.
The notifyLoss function transfers reserve funds out, reducing the value per share. A depositor who has passed the cooldown can frontrun the loss by redeeming before notifyLoss is called, then re-depositing at the lower share price to profit.
The Position::withdraw function allows the position owner to withdraw any ERC20 token, but if the collateral token is a double-entrypoint token, the owner can dust the contract with the legacy token and then withdraw the full collateral balance without repaying the ZCHF debt.
The restructureCapTable function in Equity.sol always reads the first element of the addressesToWipe array inside its loop instead of the current index. As a result only the first address's tokens are burned, and the call reverts once that address has a zero balance while other addresses remain.
When a position is denied, its cooldown is set to the expiry time, and the noCooldown modifier prevents the owner from withdrawing collateral until that time. This locks the owner's funds for a potentially long period.
The adjust function in Position.sol reverts when the new price is higher than the current price and the caller tries to reduce collateral or increase minted amount, because a cooldown is set that blocks those operations. An attacker could not exploit this; it is a usability bug that prevents legitimate position adjustments.
The contract uses block.number to compute a time anchor, which is unreliable on Optimism because block numbers do not correspond to constant time intervals. This could cause the holding duration for votes to deviate from the intended 90-day minimum, affecting redeem().
A newly opened position's limit could be fully reduced to zero by a cloner, leaving the original owner unable to mint any Frankencoin. This happens because the clone reduction calculation can allocate the entire remaining limit to the cloner.
The createClone function deploys a clone contract using create, so the address depends only on the PositionFactory nonce. An attacker could exploit a chain re-org to deploy a clone at the same address where a victim had already sent funds, potentially stealing those funds.
FR
Frankencoin
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.