You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
sherlock-admin opened this issue
Apr 30, 2023
· 0 comments
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelHighA valid High severity issueRewardA payout will be made for this issue
The quotes from Curve may be subject to manipulation
Summary
The get_virtual_price() function in Curve has a reentrancy risk, which can affect the price if the protocol fetches quotes from pools integrated with ETH on Curve.
Vulnerability Detail
The CurveOracle protocol calls the function get_virtual_price_from_lp_token() to obtain a quote from Curve. However, all pools integrated with ETH pose a read-only reentrancy risk. Please refer below link for detail. https://chainsecurity.com/heartbreaks-curve-lp-oracles/
Impact
The read-only reentrancy operation manipulates the price.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelHighA valid High severity issueRewardA payout will be made for this issue
Bauer
high
The quotes from Curve may be subject to manipulation
Summary
The
get_virtual_price()
function in Curve has a reentrancy risk, which can affect the price if the protocol fetches quotes from pools integrated with ETH on Curve.Vulnerability Detail
The
CurveOracle
protocol calls the functionget_virtual_price_from_lp_token()
to obtain a quote from Curve. However, all pools integrated with ETH pose a read-only reentrancy risk. Please refer below link for detail.https://chainsecurity.com/heartbreaks-curve-lp-oracles/
Impact
The read-only reentrancy operation manipulates the price.
Code Snippet
https://github.com/sherlock-audit/2023-04-blueberry/blob/main/blueberry-core/contracts/oracle/CurveOracle.sol#L101
Tool used
Manual Review
Recommendation
Duplicate of #123
The text was updated successfully, but these errors were encountered: