The claimProfit
function in MembershipERC1155
involves an external call to transfer ERC20 tokens after updating state, exposing it to potential reentrancy.
File: MembershipERC1155.sol
Function: claimProfit
An attacker could use a custom ERC20 token that re-enters claimProfit
, allowing multiple claims for a single savedProfit
value.
This could lead to unauthorized profit claims and depletion of the profit pool.
Manual review.
Add a reentrancy guard to claimProfit
to prevent reentrant calls:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.