TwitFi Hack
Incident Overview
The TwitFi token was exploited resulting in a significant amount of ETH being taken due to a miscalculation by the off-chain validator.
The TwitFi token (TWT) has fallen victim to exploitation, leading to a loss of approximately 87 ETH ($137.3k), as the exploiter took advantage of the transfer function to send the tokens to the Reward Contract. Subsequently, the off-chain validator erroneously calculated the claimReward() amount, which the exploiter exploited further by calling the function and transferring the tokens before creating a new EOA and ultimately liquidating all the tokens.
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 TwitFi, these are the critical security checks that could have prevented this incident (February 2023).
- 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
- 01
-
02
Web Archive https://archive.ph/wip/WZpwN
Learn to Prevent the Next TwitFi
The TwitFi 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.