Pool manager can reallocate the accepted Recipient
No check in _allocate function to verify is accepted recipient is already added. This allows a pool manager to reallocation of acceptedRecipientId
Vulnerability Detail
In RFPSimpleStrategy contract, _allocate function doesn’t check if acceptedRecipientId is already set.
A non trusted pool manager can just set poolActive to true and reallocate a new acceptedRecipientId.
Impact
Allows reallocation of accepted Recipient at any point of time
Martians
medium
Pool manager can reallocate the accepted Recipient
No check in
_allocate
function to verify is accepted recipient is already added. This allows a pool manager to reallocation ofacceptedRecipientId
Vulnerability Detail
In
RFPSimpleStrategy
contract,_allocate
function doesn’t check ifacceptedRecipientId
is already set. A non trusted pool manager can just setpoolActive
to true and reallocate a newacceptedRecipientId
.Impact
Allows reallocation of accepted Recipient at any point of time
Code Snippet
https://github.com/sherlock-audit/2023-09-Gitcoin/blob/main/allo-v2/contracts/strategies/rfp-simple/RFPSimpleStrategy.sol#L386
Tool used
Manual Review
Recommendation