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` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
However, quote's lockedValues is not checked against minAcceptableQuoteValue any more, this is risky as quote's lockedValues can be less than minAcceptableQuoteValue at this time.
If it is in this case, quote will be opened with quote value being less than minAcceptableQuoteValue.
Impact
Quote is opened with its value less than minAcceptableQuoteValue.
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` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
circlelooper
medium
Quote value can be less than minAcceptableQuoteValue
Summary
Quote value can be less than minAcceptableQuoteValue.
Vulnerability Detail
Every time Party A sends a quote, the lockedValues of the quote is checked to ensure its valus is no less than quote symbol's minAcceptableQuoteValue.
When quote is being opened, quote's lockedValues will be adjusted if quote.quantity == filledAmount and quote.orderType == OrderType.LIMIT.
However, quote's lockedValues is not checked against minAcceptableQuoteValue any more, this is risky as quote's lockedValues can be less than minAcceptableQuoteValue at this time.
If it is in this case, quote will be opened with quote value being less than minAcceptableQuoteValue.
Impact
Quote is opened with its value less than minAcceptableQuoteValue.
Code Snippet
https://github.com/sherlock-audit/2023-06-symmetrical/blob/main/symmio-core/contracts/facets/PartyB/PartyBFacetImpl.sol#L158-L167
Tool used
Manual Review
Recommendation
To mitigate this vulnerability, consider checking quote's lockedValues against minAcceptableQuoteValue when quote being opened.
Duplicate of #248
The text was updated successfully, but these errors were encountered: