can withdraw shares on behalf of anyone #215
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
cmichel
Vulnerability details
The
BasicSale.withdrawShareForMember
function allows withdrawing the shares of other users.While the tokens are sent to the correct address, this can lead to issues with smart contracts that might rely on claiming the tokens themselves.
As an example, suppose the
member
address corresponds to a smart contract that has a function of the following form:Impact
If the contract has no other functions to transfer out funds, they may be locked forever in this contract.
Recommended Mitigation Steps
Do not allow users to withdraw on behalf of other users.
The text was updated successfully, but these errors were encountered: