Users could accidentally burn()
and lose fund
#331
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
invalid
This doesn't seem right
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
responded
The Holograph team has reviewed and responded
Lines of code
https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/enforcer/HolographERC721.sol#L387-L397
https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/enforcer/HolographERC20.sol#L337-L345
Vulnerability details
Impact
If users accidentally
burn()
the token, the fund will be lost. There does not seem any reason for the users to call the publicburn()
function, only by mistake calling the method to lose self fund.Proof of Concept
Tools Used
Manual analysis.
Recommended Mitigation Steps
Remove the public
burn()
functions in ERC721 and ERC20.The text was updated successfully, but these errors were encountered: