WePiggy Hack
Incident Overview
WePiggy-OEC protocol experienced a short-term error in the CHE oracle, causing the CHE price in WePiggy to be much higher than the market price, and resulting in abnormal liquidations for users who borrowed CHE assets. Based on prices at the time of the incident, the total loss of user assets was approximately US$400,000.
The price of CHE surged from the normal US$0.28 to a maximum of US$33,486,904.70
All abnormal liquidating transactions:
https://www.oklink.com/zh-cn/oec/tx/0xe9651ee3…245295
https://www.oklink.com/zh-cn/oec/tx/0x07727fba…90f3c9
https://www.oklink.com/zh-cn/oec/tx/0xab489d06…6f5319
https://www.oklink.com/zh- cn/oec/tx/0xec53bc8d…7a0122
https://www.oklink.com/zh-cn/oec/tx/0x9b1c3aef…af9fe8
https://www.oklink.com/zh-cn/oec/tx/0x7ad59f19…2ca82e
https://www.oklink.com/zh-cn/oec/tx/0x77e49db8…4c95d2
https://www.oklink.com/zh-cn/oec/tx/0xb3940113…10116c
https://www.oklink.com/zh-cn/oec/tx/0x57b7c656…1151ab
Affected user addresses:
List of lost funds:
1.78975414 BTC
2.221780053 ETH
301,310.5381 USDT
173.6123858 OKT
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 WePiggy, these are the critical security checks that could have prevented this incident (December 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 WePiggy
The WePiggy 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.