Skip to content
DoS Audit finding Beginner

Auction multiplier set to zero

The factory owner can set the auction multiplier to zero, which causes the auction settlement calculation to underflow and revert. This would prevent auctions from ever settling.

goatbug Follow

Originally disclosed on Code4rena

Submitted by goatbug

Impact

function setAuctionMultiplier(uint256 newAuctionMultiplier) public override onlyOwner {
    auctionMultiplier = newAuctionMultiplier;
}

auction multiplier can be set to zero by factory owner. This would stop the auction settling, function would always revert.

uint256 a = factory.auctionMultiplier() * basket.ibRatio();
    uint256 b = (bondTimestamp - auctionStart) * BASE / factory.auctionDecrement();
    uint256 newRatio = a - b;

causing a safe math error and newRatio to revert.

Proof of Concept

Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.

Recommended Mitigation Steps

frank-beard (Kuiper) acknowledged and disagreed with severity:

it is assumed the owner is trustworthy in this version of the protocol, however we will add mitigations and further decentralization in future updates

Alex the Entreprenerd (judge) commented:

Agree with the finding, because the warden showed a specific “admin privilege” that DOSses the protocol, the finding is valid and of medium severity

The original report as published on Code4rena, by goatbug. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

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

Likely the setter function lacks a check to prevent the auction multiplier from being set to zero, and the settlement calculation does not handle a zero multiplier safely.

Impact

The owner could set the multiplier to zero, causing all auction settlements to revert and effectively blocking the auction mechanism.

What the attacker needed

Owner privileges

The fix

The setter should reject a zero value, or the settlement logic should handle a zero multiplier without reverting.

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.

The owner of a smart contract can change a number that controls how auctions finish. If they set it to zero, the maths used to finish an auction breaks, so no auction can ever complete.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More from Kuiper contest

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.