Hunt prep
Before you test Frankencoin
What 21 disclosed reports say about Frankencoin: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 13 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Race condition lesson | 3 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
CHALLENGER_REWARD can be used to drain reserves and free mint
The fix should restrict when challenges can be started (not before the position's start time and not when denied) and limit how much the price can be changed per adjustment.
Disclosed
-
When the challenge is successful, the user can send tokens to the position to avoid the position’s cooldown period being extended
The cooldown period should be extended even when a challenge is successful, regardless of the remaining collateral balance.
Disclosed
-
Challenges can be frontrun with de-leveraging to cause lossses for challengers
The fix is to add front-running protection to the launchChallenge function by requiring an expected price argument and reverting if the actual price does not match.
Disclosed
-
Manipulation of total share amount might cause future depositors to lose their assets
The check in calculateSharesInternal should compare totalShares to 1e18 instead of 1000e18, so that the initial depositor gets 1000e18 shares and subsequent depositors never receive a disproportionate amount.
Disclosed
-
Need alternative ways for fund transfer in end() to prevent DoS
The report recommends recording amounts owed and letting users pull funds later, and disallowing total challenges from exceeding the position collateral.
Disclosed
-
Can’t pause or remove a minter
Implement the ability for token holders to temporarily pause a minter as well as remove it altogether.
Disclosed
-
Challengers and bidders can collude together to restrict the minting of position owner
The protocol should be changed so that a challenge cannot be launched and averted in the same block, ensuring the challenger has funds at risk.
Disclosed
-
initializeClone() price calculation should round up
The price calculation should round up to avoid the revert in checkCollateral.
Disclosed
-
Later challengers can bid on the previous challenge to extend the expiration time of the previous challenge, so that their own challenge can succeed before the previous challenge and get challenge rewards
The project should implement a challenge queue so that later challenges can only be ended after earlier ones have ended.
Disclosed
-
Auctions fail to account for network and market conditions
The report recommends converting the auctions to Dutch auctions, starting above the liquidation price and gradually decreasing, to prevent near-zero winning bids.
Disclosed
-
notifyLoss can be frontrun by redeem
The report suggests a whitelisted private-mempool caller for end, amortising the loss over time, or a withdrawal queue that uses the upcoming equity change; the text does not say it was fixed.
Disclosed
-
Double-entrypoint collateral token allows position owner to withdraw underlying collateral without repaying ZCHF
Validate the collateral balance has not changed after the token transfer within the call to Position::withdraw, or restrict/remove Position::withdraw.
Disclosed
-
Function restructureCapTable() in Equity.sol not functioning as expected
The loop should read the current index of the array rather than always the first element, and the report notes the project confirmed the issue.
Disclosed
-
Owner of Denied Position is not able to withdraw collateral until expiry
The collateral should be returned to the owner at the end of the deny function.
Disclosed
-
Unable to adjust position in some cases
The adjust function should be modified to perform collateral deposit, minted burning, collateral withdrawal, and minting in a specific order that avoids the cooldown restriction, as shown in the recommended mitigation.
Disclosed