code-423n4 / 2023-05-venus-findings

2 stars 1 forks source link

[M-03] A blacklisted address can DOS other users #429

Closed code423n4 closed 1 year ago

code423n4 commented 1 year ago

Lines of code

https://github.com/code-423n4/2023-05-venus/blob/main/contracts/Shortfall/Shortfall.sol#L183 https://github.com/code-423n4/2023-05-venus/blob/main/contracts/Shortfall/Shortfall.sol#L183

Vulnerability details

Impact

If underlying or convertibleBaseAsset is an asset that can blacklist addresses e.g. USDT, USDC and the top bidder is an address that was initially not blacklisted but subsequently blacklisted, other users can no longer:

Proof of Concept

Recommended Mitigation Steps

Favour pull over push. Instead of pushing the funds back to the user, the user has to pull the funds instead.

Assessed type

DoS

c4-judge commented 1 year ago

0xean marked the issue as duplicate of #65

c4-judge commented 1 year ago

0xean changed the severity to QA (Quality Assurance)