RetoSwap Hack

TOTAL LOST $2.7M
Medium Other / Missing Input Validation monero
Affected Chain monero Incident surface
Recovered - No recovery reported
All-Time Rank #668 By amount stolen
Protocol Type Dexs Target category

Incident Overview

On May 20, 2026, the P2P decentralized exchange RetoSwap was exploited for approximately 7,000 XMR (~$2.7M) due to a critical vulnerability in its upstream Haveno trading protocol. The attack allowed a malicious actor to impersonate an arbitrator, enabling them to hijack multisig wallet creation before funds were deposited.

The exploit relied on a flaw in how the Haveno trade protocol handled message synchronization during the initial trade setup. When an attacker initiated a trade, they sent a fraudulent, out-of-order acknowledgment (ACK) message to the victim, effectively impersonating the platform's arbitrator.

This spoofed message tricked the trading software into updating the arbitrator's node address to one controlled by the attacker. By controlling this address, the attacker was able to position themselves as a participant in the multisig wallet creation process. This allowed them to construct a compromised multisig wallet, which they subsequently drained once the victim deposited their funds. The incident primarily impacted large-scale crypto-to-crypto offers, while fiat-based trading remained unaffected.

Incident Report

Protocol / Project RetoSwap
Date of Incident
Affected Chain(s) monero
Attack Technique Other / Missing Input Validation
Classification Exchange (DEX) / Input Validation

Protocol Information

Protocol Type Dexs
Smart Contract Language C++
Official Website retoswap.com/
Protocol Twitter/X @RetoSwap
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Categories
Arbitrum Ecosystem

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Deep understanding of other / missing input validation and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with monero smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in RetoSwap's contract logic - root cause: exchange (dex) / input validation
Execution Speed Precise transaction ordering and timing to exploit the vulnerability within a single atomic block
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Likely, with a thorough Other / Missing Input Validation audit checklist and test coverage

If you're auditing a protocol with similar architecture to RetoSwap, these are the critical security checks that could have prevented this incident (May 2026).

  • Verify all logic paths related to Other / Missing Input Validation are guarded by proper access controls and input validation
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Sources & References

Learn to Prevent the Next RetoSwap

The RetoSwap hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial