Rubic Hack
Incident Overview
USDC balances of Rubic’s users have been drained. The current losses reached $1.42M.
All USDC approved to the RubicProxy contract got under the risk of being drained after the USDC address was added into the list of available routers in the RubicProxy contract.
Through the routerCallNative() function, the attacker could call safeTransferFrom() on the USDC contract inputting user addresses, which have approved their USDC balances to be spent by RubicProxy, as the “from” parameter.
The attacker address:
https://etherscan.io/address/0x001b91c7…0b6ee9
The exploit transactions:
https://etherscan.io/tx/0x9a97d856…8e7d46
https://etherscan.io/tx/0x6551b933…e36e56
The “add available router ” transaction:
https://etherscan.io/tx/0x30679e7b…1bbe66
Incident Report
Protocol Information
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 Rubic, these are the critical security checks that could have prevented this incident (December 2022).
- Verify all logic paths related to Router Exploit / 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 TrialProof-of-Concept Exploits
On-Chain Evidence & References
- Twitter/X Alert https://twitter.com/BlockSecTeam/status/1606993118901198849
- Twitter/X Alert https://twitter.com/peckshield/status/1606937055761952770
Sources & References
Learn to Prevent the Next Rubic
The Rubic 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.