Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low
Valid

blacklisting can cause winner to cause reverts

Summary

standard blacklisting issue seen in other contests but this protocol uses stablecoins like (usdc) that have blacklisting

Vulnerability Details

A winner who is not happy with the issue can blacklist himself/contract and cause the function to revert
This can be done by frontrunning the distribute tx with a small amount of sanctioned funds, then the owner will have to call the onlyOwner function.

Impact

The attacker can cause reverts and anyone can do it.The other option is that we can blacklist the contract making the funds not accessible since in usdcProxy

// @note usdc Transfer function
function transfer(address to, uint256 value)
external
override
whenNotPaused
notBlacklisted(msg.sender)
notBlacklisted(to)
returns (bool)

Tools Used

Recommendations

Use push instead of pull by allowing that address to send out the funds if the transfer failed

Support

FAQs

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

Give us feedback!