DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: medium
Invalid

Potential Denial of Service (DoS) Risk from Small Bids in Auction Contract

Summary

See below

Vulnerability Details

In the FjordAuction contract, a potential Denial of Service (DoS) issue arises from the auction's handling of bids. Specifically, a user could place a very small bid relative to the total auction tokens available, which may lead to a disproportionately large multiplier value. This occurs because the multiplier is calculated as follows:

multiplier = totalTokens.mul(PRECISION_18).div(totalBids);

If a single bid is placed with a very small amount (e.g., 1 FjordPoint) and becomes the only bid, totalBids would be very small compared to totalTokens. This results in a large multiplier value:

uint256 claimable = userBids.mul(multiplier).div(PRECISION_18);

This large multiplier could lead to excessive gas consumption or potential arithmetic overflows when users claim their auction tokens.

Impact

A single small bid could dominate the auction by allowing the bidder to claim a disproportionately large amount of auctionToken relative to their bid, leading to unfair distribution and potential gas-related issues or overflow errors during token claims.

Tools Used

Manual

Recommendations

Implement a minimum bid amount to ensure that bids are above a certain threshold, preventing the scenario where a very small bid leads to an excessively large multiplier.

Updates

Lead Judging Commences

inallhonesty Lead Judge
10 months ago
inallhonesty Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.