Skip to content
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

Rebalance manager can steal tokens #186

Open
code423n4 opened this issue Dec 19, 2021 · 2 comments
Open

Rebalance manager can steal tokens #186

code423n4 opened this issue Dec 19, 2021 · 2 comments
Labels
1 (Low Risk) Assets are not at risk. State handling, function incorrect as to spec, issues with comments bug Something isn't working sponsor disputed Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue

Comments

@code423n4
Copy link
Contributor

Handle

cmichel

Vulnerability details

The rebalance manager can perform trades on the entire basket amount and steal tokens this way, for example, by adding their own contract as the exchange through setExchange, followed by approving tokens to this contract through the RebalanceManagerV2.rebalance action.

Impact

The rebalance manager of each basket needs to be trusted.

Recommended Mitigation Steps

Document that the rebalance manager needs to be trusted as well, the current docs talk about an owner but it was not clear to me that the rebalance manager is always assumed to be the owner of a basket.

  • RebalanceMangers - Enable trading the baskets underlying token to rebalance the index constitution (only owner).
@code423n4 code423n4 added 3 (High Risk) Assets can be stolen/lost/compromised directly bug Something isn't working labels Dec 19, 2021
code423n4 added a commit that referenced this issue Dec 19, 2021
@loki-sama loki-sama added the sponsor disputed Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue label Jan 4, 2022
@loki-sama
Copy link
Collaborator

This is intended behavior

@0xleastwood
Copy link
Collaborator

I think the warden has outlined missing documentation related to the trusted setup of the rebalance manager. As such, I'll mark this as low considering this is intended behaviour.

@0xleastwood 0xleastwood added 1 (Low Risk) Assets are not at risk. State handling, function incorrect as to spec, issues with comments and removed 3 (High Risk) Assets can be stolen/lost/compromised directly labels Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 (Low Risk) Assets are not at risk. State handling, function incorrect as to spec, issues with comments bug Something isn't working sponsor disputed Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Projects
None yet
Development

No branches or pull requests

3 participants