HOPR is an open incentivized mixnet which enables privacy-preserving point-to-point data exchange. HOPR is similar to Tor but actually private, decentralized and economically sustainable.
Github username: --
Submission hash (on-chain): 0x63f3d8b1e124ef3ce4c7437e2d4926aa1c9dadaf3e016bfc75608cbd95cfd6d5
Severity: medium
Description:Description\
The safeProxyAddr made payable for deployed safe proxy contract safeProxy, which allows the contract to accept ether sent to contract but does not have any means to withdraw the funds.
Attack Scenario\
A user may send ethers to the deployed safeProxy contract and will get stuck as the contract does not have means to withdraw the received ethers.
Github username: -- Submission hash (on-chain): 0x63f3d8b1e124ef3ce4c7437e2d4926aa1c9dadaf3e016bfc75608cbd95cfd6d5 Severity: medium
Description: Description\ The
safeProxyAddr
made payable for deployed safe proxy contractsafeProxy
, which allows the contract to accept ether sent to contract but does not have any means to withdraw the funds.Attack Scenario\ A user may send ethers to the deployed
safeProxy
contract and will get stuck as the contract does not have means to withdraw the received ethers.Attachments https://github.com/hoprnet/hoprnet/blob/master/packages/ethereum/contracts/src/node-stake/NodeStakeFactory.sol#L123
The
clone
function inNodeStakeFactory.sol
have address payable which allows a user to send ether to the contract.The first option is to remove payable from safeProxyAddr variable.
The second option is to create a function in
NodeStakeFactory.sol
contract to withdraw or transfer ethers.