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
Sandwich attack to ReputationMarket.sol::sellVotes() causes user sellVotes to lower price than expected
Summary
The missing of slipage tolerence check in ethos/packages/contracts/contracts/ReputationMarket.sol::sellVotes will cause user votes selling transaction been sandwich as an attacker fruntrun and backrun their transactions
Icy Cyan Terrier
Medium
Sandwich attack to ReputationMarket.sol::sellVotes() causes user sellVotes to lower price than expected
Summary
The missing of slipage tolerence check in
ethos/packages/contracts/contracts/ReputationMarket.sol::sellVotes
will cause user votes selling transaction beensandwich
as an attacker fruntrun and backrun their transactionsRoot Cause
In
ReputationMarket.sol#L495-L534
sellVotes
function does not implement any slipage tolerence checkhttps://github.com/sherlock-audit/2024-11-ethos-network-ii/blob/main/ethos/packages/contracts/contracts/ReputationMarket.sol#L495-L534
Internal pre-conditions
External pre-conditions
No response
Attack Path
No response
Impact
Users sell vote to lower price than expected
No response
PoC
No response
Mitigation
Implement the
_checkSlippageLimit()
to thesellVotes()
function too like it was done to thebuyVotes()
function to allow user to be able to set they slipage tolerencehttps://github.com/sherlock-audit/2024-11-ethos-network-ii/blob/main/ethos/packages/contracts/contracts/ReputationMarket.sol#L461
The text was updated successfully, but these errors were encountered: