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

Increase voting power by tokenizing the address that deposits the token #552

Closed
code423n4 opened this issue Aug 1, 2022 · 2 comments
Closed
Labels
bug Something isn't working invalid This doesn't seem right sponsor disputed Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue

Comments

@code423n4
Copy link
Contributor

Lines of code

https://github.com/code-423n4/2022-07-golom/blob/e5efa8f9d6dda92a90b8b2c4902320acf0c26816/contracts/vote-escrow/VoteEscrowCore.sol#L833-L866

Vulnerability details

Impact

Similar to code-423n4/2022-05-aura-findings#278.
Without restriction on the type of address that deposit the token, a bad actor could deposit the token through the smart contract. The bad actor could attract people to deposit the token through his smart contract instead of directly depositing with VoteEscrowCore by injecting better short-term incentives to his wrapper token. This enable the bad actor to accumulate voting power that could dictate the future of the protocol.

Proof of Concept

https://github.com/code-423n4/2022-07-golom/blob/e5efa8f9d6dda92a90b8b2c4902320acf0c26816/contracts/vote-escrow/VoteEscrowCore.sol#L833-L866

Tools Used

None

Recommended Mitigation Steps

It would be best to check whether the depositor is the smart contract or the wallet and, if the protocol wants the smart contract to be the depositor, it can implement the whitelist or blacklist.

@code423n4 code423n4 added 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 labels Aug 1, 2022
code423n4 added a commit that referenced this issue Aug 1, 2022
@0xsaruman
Copy link
Collaborator

its similar to vote convex does on curve and it doesnt mean its a bad actor

@0xsaruman 0xsaruman added the sponsor disputed Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue label Aug 25, 2022
@dmvt
Copy link
Collaborator

dmvt commented Oct 18, 2022

Invalid. This is called a Liquid Stake Derivative token.

@dmvt dmvt closed this as completed Oct 18, 2022
@dmvt dmvt added invalid This doesn't seem right and removed 2 (Med Risk) Assets not at direct risk, but function/availability of the protocol could be impacted or leak value labels Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right 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