NowSwap Protocol Hack

TOTAL LOST $1.1M
Medium Other

Summarize with AI

Affected Chain 2021 Incident surface
Recovered - No recovery reported
All-Time Rank #808 By amount stolen
Auditors 1 Prior security audit

Incident Overview

The attacker's address:

https://etherscan.io/address/0x5676e585…a5f1a3

The transaction behind the exploit:

https://etherscan.io/tx/0xf3158a7e…c50713

NowSwap hack was made possible by an error when updating the smart contract’s code.  The original code of the contract contained a value, K, of 1,000 in three different places.  The update to the code changed this value in two places but not the third.

This third location was a check of the value of K, but it only checked for a value 1/10 of the actual value.  This enabled the attacker to swap 1 wei for 98% of the value stored in the contract.

Stolen funds were deposited into Tornado Cash mixer:

https://bloxy.info/txs/calls_from/0x5676e585…a5f1a3?signature_id=994162&smart_contract_address_bin=0x722122df…5b6967

Incident Report

Protocol / Project NowSwap Protocol
Date of Incident
Attack Technique Other
Classification Exchange (DEX)

Protocol Information

Protocol Type Yield Aggregator
Official Website nowswap.org/
Protocol Twitter/X @nowswap_org
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Categories
Decentralized Exchange (DEX) Token DeFi Yield Farming AMM XDC 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 and Solidity and EVM internals
Capital Required Seed capital to cover gas and initial position setup
On-Chain Access Ability to interact with smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in NowSwap Protocol's contract logic - root cause: exchange (dex)
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 audit checklist and test coverage
Audited by Audit Report 1 — still lost $1.1M. Prior audits don't guarantee safety, especially after post-audit code changes.

If you're auditing a protocol with similar architecture to NowSwap Protocol, these are the critical security checks that could have prevented this incident (September 2021).

  • Verify all logic paths related to Other 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

Security Audit History

Sources & References

Learn to Prevent the Next NowSwap Protocol

The NowSwap Protocol 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