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 Jan 7, 2024. It is now read-only.
sherlock-admin opened this issue
Jul 3, 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
It only checks if the timestamp of priceSig has expired compared to the liquidation timeout - whether the priceSig is too late.
However, it does not check if the timestamp is before the liquidation timestamp or not - whether the priceSig is too early.
Moreover, the verifyPrices for priceSig also doesn't check if the signature is expired or not.
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
sinarette
medium
setSymbolPrice Accepts Outdated Signatures
Summary
LiquidationFacetImpl#setSymbolsPrice
acceptspriceSig
as input, but it does not check if the signature is out of date.Vulnerability Detail
setSymbolsPrice
marks the symbol prices and upnl for liquidation, which are input as thepriceSig
signature.It only checks if the timestamp of
priceSig
has expired compared to the liquidation timeout - whether thepriceSig
is too late.However, it does not check if the timestamp is before the liquidation timestamp or not - whether the
priceSig
is too early.Moreover, the
verifyPrices
forpriceSig
also doesn't check if the signature is expired or not.For reference, you can check that the other verify methods check for the timestamp validity.
Impact
Malicious validators can set wrong prices and upnl for liquidation
Code Snippet
https://github.com/sherlock-audit/2023-06-symmetrical/blob/main/symmio-core/contracts/facets/liquidation/LiquidationFacetImpl.sol#L39-L44
Tool used
Manual Review
Recommendation
Add validation for price signature, e.g.
Duplicate of #113
The text was updated successfully, but these errors were encountered: