-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User can forfeit other user rewards #50
Comments
This is a valid report, however, considering it is only related to the distribution of reward tokens, I have a hard time classifying this as high risk |
I agree with the high risk rating on this one. A third party could cause significant loss of expected reward funds for users across the entire protocol if so inclined. |
This is absolutely not eligible for the additional bonus. It does not affect user deposits. These funds are not part of the AuraLocker at all. It simply allows users who have a balance in the AuraLocker to claim said rewards. |
My mistake, you are correct. This is out of scope. I was reading it as frozen user funds, which is not what you wrote. TBC, This is NOT eligible for the bonus. |
Hey, are there any plans to address this issue maybe? Possible solutions:
|
@sparrowDom You can see solution here https://github.com/aurafinance/aura-contracts/blob/main/contracts/rewards/ExtraRewardsDistributor.sol#L141 makes it such that only the owner can use a custom start index |
Yes you are right thanks! |
Lines of code
https://github.com/code-423n4/2022-05-aura/blob/main/contracts/ExtraRewardsDistributor.sol#L127
Vulnerability details
Impact
User can forfeit other user rewards by giving a higher _startIndex in getReward function
Proof of Concept
Recommended Mitigation Steps
Do not allow users to call getReward function for other users
The text was updated successfully, but these errors were encountered: