-
Notifications
You must be signed in to change notification settings - Fork 1
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
Oracle price could not be fresh #179
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
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
added
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
labels
Aug 17, 2022
Out of scope, similar to #361 |
This was referenced Aug 29, 2022
DrakeEvans
added
the
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
label
Sep 6, 2022
Stale oracle data, and bad oracle data in general is an accepted risk of the project. It is listed in known issues as well. Out of scope |
Oracle misconfiguration is listed as a known issue in the README and is out of scope. Presumably Frax has some infrastructure in mind to handle this. Marking invalid. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
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
Lines of code
https://github.com/code-423n4/2022-08-frax/blob/c4189a3a98b38c8c962c5ea72f1a322fbc2ae45f/src/contracts/FraxlendPairCore.sol#L524
https://github.com/code-423n4/2022-08-frax/blob/c4189a3a98b38c8c962c5ea72f1a322fbc2ae45f/src/contracts/FraxlendPairCore.sol#L532
Vulnerability details
Vulnerability
In FraxlendPairCore._updateExchangeRate, we are using
latestRoundData
, but there are no validations that the data is not stale.The current code is:
But is missing the checks to validate the data is stale:
Note that an inaccurate price data could quickly lead to a large loss of funds.
The text was updated successfully, but these errors were encountered: