-
Notifications
You must be signed in to change notification settings - Fork 11
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
LendingTerm can go offboard without a poll in certain situation #680
Comments
it's only true if |
0xSorryNotSorry marked the issue as insufficient quality report |
0xSorryNotSorry marked the issue as duplicate of #1141 |
Trumpero marked the issue as satisfactory |
dup of #1141 due to the root cause: supportOffboard can still be called after offboarding. |
Trumpero marked the issue as not a duplicate |
Trumpero marked the issue as duplicate of #1141 |
Lines of code
https://github.com/code-423n4/2023-12-ethereumcreditguild/blob/2376d9af792584e3d15ec9c32578daa33bb56b43/src/governance/LendingTermOffboarding.sol#L139
Vulnerability details
Description
Removal of a lending term consist of 4 procedures.
proposeOffboard
is called to create a poll.supportOffboard
. Here if enough vote(weight) has been collected,canOffboard[term]
is set to true.offboard
is called and lending term is removed from gauge.cleanup
is called to clear the roles of a lending term and setcanOffboard[term]
to false.However any GUILD holder can still call
supportOffboard
after cleanup is called as there aren’t any checks. As poll already passed the quorum,canOffboard[term]
is set back to true.Later if this lending term is added back to gauge for use, it can go offboard without the removal procedure described above as
canOffboard[term]
is already set to true.PoC
Add this function to LendingTermOffboarding.t.sol.
Result
Recommeded Mitigation Steps
Block users from calling supportOffboard if lending term is not an active term.
Assessed type
Invalid Validation
The text was updated successfully, but these errors were encountered: