You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Description
The LM_PC_Bounties_v1::addClaim(...) and LM_PC_Bounties_v1::updateClaimContributors(...) functions are used to add new claims and update existing claims respectively. The contributorAddressToClaimIds which maps each contributor's address to the claimId is an EnumerableSet whose add(...)and remove(...) functions each return boolean values, but the value is not checked for each contibutor to ensure the claim ID is added as shown on L376 and as such the function will not revert if a claimId is not successfully added/removed for a given contributor address.
Attack Scenario
Describe how the vulnerability can be exploited.
Attachments
Proof of Concept (PoC) File
Revised Code File (Optional)
Modify the LM_PC_Bounties_v1::addClaim(...) function as shown below and also do likwise for the LM_PC_Bounties_v1::updateClaimContributors(...)function
Github username: @Audinarey
Twitter username: audinarey
Submission hash (on-chain): 0xa44b30387ddf9d23a4220c308eb0d96433ecc5b62da6700aeb7f303a95c94b4e
Severity: low
Description:
Description
The
LM_PC_Bounties_v1::addClaim(...)
andLM_PC_Bounties_v1::updateClaimContributors(...)
functions are used to add new claims and update existing claims respectively. ThecontributorAddressToClaimIds
which maps each contributor's address to theclaimId
is anEnumerableSet
whoseadd(...)
andremove(...)
functions each return boolean values, but the value is not checked for each contibutor to ensure the claim ID is added as shown on L376 and as such the function will not revert if aclaimId
is not successfully added/removed for a given contributor address.Attack Scenario
Describe how the vulnerability can be exploited.
Attachments
Modify the
LM_PC_Bounties_v1::addClaim(...)
function as shown below and also do likwise for theLM_PC_Bounties_v1::updateClaimContributors(...)
functionThe text was updated successfully, but these errors were encountered: