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
Liquidation can be avoided by frontrunning and all the other functions that depend on AccountStorage.layout().partyBNonces
inside LibMuon vulnerable as well
Vulnerability Detail
Whenever the liquidator calls liquidatePartyB there is a hash check against AccountStorage.layout().partyBNonces[partyB][partyA]
symmio-core/contracts/libraries/LibMuon.sol#L152
but partyB can avoid being liquidated by moving funds to yourself thus increasing accountLayout.partyBNonces[msg.sender][origin] so verifyPartyBUpnl will be reverted
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
volodya
high
liquidatePartyB can be avoided by frontrunning
Summary
Liquidation can be avoided by frontrunning and all the other functions that depend on
AccountStorage.layout().partyBNonces
inside
LibMuon
vulnerable as wellVulnerability Detail
Whenever the liquidator calls
liquidatePartyB
there is a hash check againstAccountStorage.layout().partyBNonces[partyB][partyA]
symmio-core/contracts/libraries/LibMuon.sol#L152
but partyB can avoid being liquidated by moving funds to yourself thus increasing
accountLayout.partyBNonces[msg.sender][origin]
soverifyPartyBUpnl
will be revertedcontracts/facets/Account/AccountFacetImpl.sol#L101
Or allocating and deallocating
Impact
Liquidation can be avoided by frontrunning
Code Snippet
Tool used
Manual Review
Recommendation
I didn't figure out how to fix this issue
Duplicate of #233
The text was updated successfully, but these errors were encountered: