The contract lacks validation for the maximum bidding duration, allowing the auction owner to set excessively long or practically eternal auction durations.
In the start
function, the bidding_duration
parameter is not validated against any maximum limit.
Code Reference:
An infinite auction duration can lock the NFT and bidders' funds indefinitely, leading to a denial of service for all participants.
Introduce a maximum bidding duration limit by adding a validation check:
Define MAX_DURATION
based on reasonable auction time frames, such as a few days or weeks.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.