The Denial of Service vulnerability in the buy
function is a high severity issue that can lead to potential centralization of ZENO bonds and compromise the fairness and decentralization of the auction. Implementing checks for minimum purchase amount and gas limit, and conducting thorough audits and testing are essential to address this issue and enhance the security and reliability of the auction. The severity of this issue is classified as high due to the potential impact on the auction's functionality and fairness.
The buy
function in the Auction
contract is vulnerable to a Denial of Service (DoS) attack. A malicious user can call the function with an amount of zero or with an incredibly high gas price, repeatedly entering the function and potentially freezing its functionality. This can prevent other users from participating in the auction and allow the attacker to buy a large amount of ZENO bonds at the reserve price towards the end of the auction, compromising the fairness and decentralization of the auction.
Denial of Service: A malicious user can repeatedly call the buy
function with an amount of zero or high gas price, freezing the functionality and preventing other users from participating in the auction.
Centralization: The attacker can exploit the DoS vulnerability to buy a large amount of ZENO bonds at the reserve price towards the end of the auction, leading to centralization and compromising the fairness of the auction.
Loss of Trust: The vulnerability can lead to loss of trust in the auction platform, affecting its credibility and user participation.
manual review
Minimum Purchase Amount: Implement a check to ensure that the purchase amount is greater than zero.
Gas Limit: Implement a gas limit to prevent transactions with an incredibly high gas price from being processed.
Audit and Testing: Conduct a thorough audit and testing of the contract to ensure that the buy
function is secure and resistant to DoS attacks.
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.