The bid function does not adequately validate the _recipient address before performing a transfer of the bidToken. If the recipient address in the SpiceAuctionConfig is set to a zero address or any other invalid address, it could lead to failed transactions or loss of funds.
Failure to validate the _recipient address can result in:
Failed transactions due to invalid address checks in the ERC20 safeTransferFrom function.
Potential loss of funds if tokens are sent to a zero address or any unintended address.
Unexpected behaviour and potential security vulnerabilities if the recipient address is manipulated.
Manual Review
Add a validation check to ensure that the _recipient address is not a zero address or any other invalid address. Update the bid function as follows:
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.