OnlyOwner functions that make critical changes should have safeguards #214
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate
This issue or pull request already exists
Lines of code
https://github.com/code-423n4/2022-05-cally/blob/main/contracts/src/Cally.sol#L117-L121
https://github.com/code-423n4/2022-05-cally/blob/main/contracts/src/Cally.sol#L283-L285
Vulnerability details
Impact
Admin can change the protocol fee anytime, to any value by calling setFee() function. Even if there is no bad intention, this can potentially be used to damage the reputation of the protocol.
Proof of Concept
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
Tools Used
Manual analysis
Recommended Mitigation Steps
The text was updated successfully, but these errors were encountered: