Setting Factory.auctionDecrement
to zero causes Denial of Service in Auction.settleAuction()
#24
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Warden finding
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
pants
Vulnerability details
The function
Factory.setAuctionDecrement()
allows the owner to set the state variableFactory.auctionDecrement
to zero.Impact
If
Factory.auctionDecrement
equals zero then the functionAuction.settleAuction()
will always revert due to a division by zero:Tool Used
Manual code review.
Recommended Mitigation Steps
Add an appropriate require statement to the function
Factory.setAuctionDecrement()
to disallow settingFactory.auctionDecrement
to zero.The text was updated successfully, but these errors were encountered: