PolyDEX Hack
Incident Overview
The attacker's address:
https://polygonscan.com/address/0x8a0a1eb0…907c6c
The transaction behind the attack:
https://polygonscan.com/tx/0x6b3f0576…ebe3a2
The attacker performed the re-entrance attack on the Token Locker smart contract. The contract itself does not have an issue with standard ERC20, but since the PLX token is ERC777 standard, there will be tokenReceived() callback event every time method transfer() triggered. The attacking smart contract deployed by the hacker has included the unlockAll() trigger repeatedly (40 times) in the event, so he was able to unlock more than the amount he locked in before.
The attacker:
- locked 15,711,384 PLX in the Locker, received 15,711,384 fPLX
- unlocked all 15,711,384 fPLX from the Locker, received 1,184,289 PLX
- in the tokenReceived() called unlockAll() function
- repeated previous step 40 times.
Stolen tokens were sold on USDC, which then were bridged on Ethereum:
https://polygonscan.com/tx/0xe02124b1…6bd1ad
Incident Report
Protocol Information
Market Context at Time of Hack
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.
What Auditors Should Check
If you're auditing a protocol with similar architecture to PolyDEX, these are the critical security checks that could have prevented this incident (June 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 TrialSecurity Audit History
- Audit Report 1 Report
Sources & References
Learn to Prevent the Next PolyDEX
The PolyDEX 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.