Abracadabra Mimswap - 0xE1's results

General Information

Platform: Code4rena

Start Date: 07/03/2024

Pot Size: $63,000 USDC

Total HM: 20

Participants: 36

Period: 5 days

Judge: cccz

Total Solo HM: 11

Id: 349

League: BLAST

Abracadabra Money

Findings Distribution

Researcher Performance

Rank: 32/36

Findings: 1

Award: $15.33

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

15.328 USDC - $15.33

Labels

bug
downgraded by judge
grade-b
QA (Quality Assurance)
sponsor disputed
sufficient quality report
Q-09

External Links

Lines of code

https://github.com/code-423n4/2024-03-abracadabra-money/blob/1f4693fdbf33e9ad28132643e2d6f7635834c6c6/src/staking/LockingMultiRewards.sol#L300

Vulnerability details

Impact

rewardTokens array is vulnerable to potential future failure because once tokens added they can no longer be removed.

Proof of Concept

The current version of LockingMultiRewards contract does not allow for rewardTokens to be removed. They can only be added using addReward function, however in case some of them are no valid anymore, there is not function for removing them again from the list.

Tools Used

Manual checking

Implement a function that allows the owner to remove delete reward tokens from the list.

Assessed type

Context

#0 - 0xm3rlin

2024-03-15T00:45:27Z

no factor

#1 - c4-pre-sort

2024-03-15T13:19:25Z

141345 marked the issue as sufficient quality report

#2 - 141345

2024-03-15T13:19:33Z

remove reward token lack detailed impact QA is more appropriate

#3 - Ivan-Dosev

2024-03-23T14:45:13Z

@141345 Thank you for the review. I think it should be considered because in case there is a an issue with the reward token. Let's say vulnerability that occurs later, caused by external factor. Example compiler version in Curves attack but applied for the solidity version of the reward contract or similar. The vulnerability will persist and protocol would not be able to isolate it.

#4 - c4-sponsor

2024-03-28T17:57:43Z

0xCalibur (sponsor) disputed

#5 - thereksfour

2024-03-29T10:40:38Z

Consider QA, no direct impact.

#6 - c4-judge

2024-03-29T10:41:36Z

thereksfour changed the severity to QA (Quality Assurance)

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter