instead of call() , transfer() is used to withdraw the ether #229
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
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/main/contracts/HolographOperator.sol#L596
Vulnerability details
Impact
The usage of send or transfer limits the amount of gas send in the trans�action to 2300. This can be considered a safeguard to avoid reentrancy.
However, given the current protections of the contracts, it does seem
feasible to use call function without further risk. This implies that
the system expects to be used by some contracts that can execute more
complex code on the fallback function.
Proof of Concept
Tools Used
vscode
Recommended Mitigation Steps
use call()
The text was updated successfully, but these errors were encountered: