Contract HolographERC20 lacks withdraw functions #52
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
edited-by-warden
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Lines of code
https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/enforcer/HolographERC20.sol#L138-L757
Vulnerability details
Impact
Contract HolographERC20 (enforcer/HolographERC20.sol#138-757) has payable functions (receive(), fallback(), etc.), but does not have a function to withdraw, therefore, every Ether sent to HolographERC20 will be lost.
Proof of Concept
Contract functions and structure illustrate the concept.
Tools Used
Slither
Recommended Mitigation Steps
Remove the payable attribute or add a withdraw function.
The text was updated successfully, but these errors were encountered: