Can’t pause or remove a minter
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.
Submitted by Ruhum, also found by juancito, 7siech, rbserver, santipu_, deliriusz, hihen, foxb868, Lirios, zaevlad, ladboy233, DadeKuma, and J4de
The project is supposed to be self-governing. Token owners are able to suggest new minters and collateral. The auction mechanism allows participants to remove collateral from the system if it’s deemed unhealthy. But, there’s no way to remove a registered minter.
Why would you want to remove a registered minter? Because they can have bugs that could break the whole system. The current minter, MintingHub, for example, implements a novel auction mechanism to price collateral instead of choosing the industry standard Chainlink oracles. While I support the idea of having a fully decentralized system, it does add additional risk to the project. A risk that’s taken not only by the protocol team but every ZCHF holder as well.
Obviously, these are just hypotheticals. But, the system is not equipped to handle a scenario where the minter malfunctions.
Proof of Concept
After a minter is suggested you have generally 10 days to deny it. After that, there’s no way to remove it:
function denyMinter(address _minter, address[] calldata _helpers, string calldata _message) override external {
if (block.timestamp > minters[_minter]) revert TooLate();
reserve.checkQualified(msg.sender, _helpers);
delete minters[_minter];
emit MinterDenied(_minter, _message);
}
Recommended Mitigation Steps
Implement the ability for token holders to temporarily pause a minter as well as remove it altogether.
luziusmeisser (Frankencoin) acknowledged and commented:
I have thought about the ability to remove old minters, but decided against it.
Instead, experimental minters should come with their own limits (time, pause function, volume limits, etc.). They are free to include that. Minters that do not include it, can be expected to be denied unless they have been really thoroughly audited.
So in fact, it is possible to pause a minter assuming the minter supports that functionality.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The denyMinter function only allows denial within a fixed time window after suggestion, and no other function exists to remove or pause a minter.
Impact
A malfunctioning minter could break the whole system, putting all token holders at risk.
What the attacker needed
Minter already registered; 10-day denial window passed
The fix
Implement the ability for token holders to temporarily pause a minter as well as remove it altogether.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A minter is a contract that can create new tokens. Once a minter is approved, there is no way to remove it later, even if it turns out to be faulty. This means a bug in a minter could harm everyone using the token.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.