Lucene search

K
code423n4Code4renaCODE423N4:2023-05-MAIA-FINDINGS-ISSUES-909
HistoryJul 05, 2023 - 12:00 a.m.

Reward clarinets can claim rewards multiple times

2023-07-0500:00:00
Code4rena
github.com
7
reentrancy
multiple claims
mitigation steps
flywheelgaugerewards
manual review

Lines of code

Vulnerability details

Impact

Reward claimers can call the get accrued reward function multiple times and maybe even drain the contract

Proof of Concept

As we can see there’s no check setting the accrued reward to zero after the rewards have been transferred

Tools Used

Manual review

Recommended Mitigation Steps

Add a setter than sets the reward to zero after the function has been called

Assessed type

Reentrancy


The text was updated successfully, but these errors were encountered:

All reactions