Polynomial Protocol Hack
What happened
The attacker could drain USDC balances of user addresses that approved their tokens to be spent by the PolynomialZap contract.
The swapAndDeposit() function of the PolynomialZap contract contains a bug: there are no limitations for two input parameters - swapTarget and swapData. This allows anyone to abuse the function and steal tokens approved to the contact.
All tokens that are approved to the vulnerable contract are still in danger.
The vulnerable contract:
https://optimistic.etherscan.io/address/0xB162f01C…D77c82#code
The attack contract:
https://optimistic.etherscan.io/address/0xf682e302…4e29a8#code
Case & protocol details
Evidence & learning
Sources and on-chain records
- report Report twitter.com
- report Report mobile.twitter.com
- analysis Web Archive archive.ph
Practice this exploit pattern safely
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.