Centralization risks in BathToken #42
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Lines of code
https://github.com/code-423n4/2022-05-rubicon/blob/521d50b22b41b1f52ff9a67ea68ed8012c618da9/contracts/rubiconPools/BathHouse.sol#L225
Vulnerability details
Impact
A centralization problem could favor behaviors not expected by the investor/user.
Proof of Concept
An admin can overwrite a
BathToken
with one of their own, by setting thefeeAddress
to an arbitrary one and the emitted event will reflect that the address isaddress(0)
, which means it is charged by holders, since the emitted event deceives about the real result, it can encourage rouge pool scam behavior.If it's a migration feature it should be limited to the first few blocks or the contract should be stopped.
Affected source code:
Recommended Mitigation Steps
The text was updated successfully, but these errors were encountered: