TempleGold

TempleDAO
Foundry
25,000 USDC
View results
Submission Details
Severity: low
Invalid

`SpiceAuction.bid()` function could be DoSed

## Summary
​
`SpiceAuction.bid()` function could be DoSed if the auction bid token recipient (`auctionConfigs[epochId].recipient`) got blacklisted by the `$TGLD` bid token.
​
## Vulnerability Details
​
`SpiceAuction` contract enables using `$TGLD` token (TempleGold token) as a bid token as well as an auction token, and this token can't be transferred between users, only from/to a whitelisted addresses.
So if the bid token recipient for an auction got removed from the `$TGLD` token whitelist, then `SpiceAuction.bid()` function will revert as it will fail to transfer these bid tokens to the non-whitelisted address.
​
## Impact
​
This would result in disabling the bidding for the running auction as there's no mechanism to change the bid proceeds address (`config.recipient`).
​
## Code Snippet
​
```javascript
//@note : `SpiceAuction.bid()`
function bid(uint256 amount) external virtual override {
//................
SpiceAuctionConfig storage config = auctionConfigs[epochId];
(address bidToken, ) = _getBidAndAuctionTokens(config);
address _recipient = config.recipient;
//................
IERC20(bidToken).safeTransferFrom(msg.sender, _recipient, amount);
//................
}
​
```
​
## Tools Used
​
Manual Review.
​
## Recommendations
​
Add a mechanism to change the recipient of the bid proceeds of an auction in case they got blacklisted from the bid token.
​
Updates

Lead Judging Commences

inallhonesty Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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

Give us feedback!