The Vault contract and the modules contracts should not receive ETH #546
Labels
bug
Warden finding
duplicate
Another warden found this issue
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Lines of code
https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/Vault.sol#L32
https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/modules/Buyout.sol#L53
https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/modules/Migration.sol#L63
Vulnerability details
Impact
If this contracts receive eth and this eth could get stuck in the contract
Proof of Concept
receive() external payable {}
receive() external payable {}
receive() external payable {}
Tools Used
Manual Review
Recommended Mitigation Steps
Remove the
receive
function of Vault contract and modules contracts:The text was updated successfully, but these errors were encountered: