First depositor issue #797
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-848
grade-c
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
satisfactory
satisfies C4 submission criteria; eligible for awards
Lines of code
https://github.com/code-423n4/2023-02-ethos/blob/73687f32b934c9d697b97745356cdf8a1f264955/Ethos-Vault/contracts/ReaperVaultERC4626.sol#L110-L112
https://github.com/code-423n4/2023-02-ethos/blob/73687f32b934c9d697b97745356cdf8a1f264955/Ethos-Vault/contracts/ReaperVaultERC4626.sol#L258-L265
Vulnerability details
Impact
The first depositor inside the vault could take advantage of his positions and the round downs inside the vault logic to steal future tokens.
Proof of Concept
The vaults are in general subject to a share price manipulation attack that allows an attacker to steal underlying tokens from other depositors
Example:
Tools Used
Manual review, hardhat
Recommended Mitigation Steps
Take into consideration forcing the first depositor to mint a higher number of shares initially
The text was updated successfully, but these errors were encountered: