TrustPad Hack
What happened
On November 6, 2023, an attacker drained TPAD reward tokens from TrustPad's 1095-day IDO staking pool on BNB Smart Chain. The pool's receiveUpPool() function did not check who was calling it, so the attacker's contract could pose as an upstream pool, register deposits and control the lock start time. By cycling deposits and withdrawals, the attacker piled up pending rewards, converted them to stake and withdrew millions of TPAD, then sold them on PancakeSwap.
TrustPad put the loss at about $155,000 in TPAD liquidity, and the TPAD price collapsed. The team warned users not to trade, removed liquidity, secured the other staking contracts and later migrated holders to a new TPAD 2.0 token.
How it happened
- The attacker deployed a helper contract that implemented the callbacks the staking contract expects from a trusted pool, such as
isLockedanddepositLockStart. - The helper called
receiveUpPool()onLaunchpadLockableStaking. Becausemsg.senderwas never verified, the call was accepted, and the attacker-supplied lock start made the deposit look already unlocked. - The attacker repeatedly called
receiveUpPool()andwithdraw()in a loop, accruing pending rewards each cycle without keeping funds locked. stakePendingRewards()converted the accumulated rewards into staked balance, and a finalwithdraw()pulled out the inflated TPAD amount.- The attacker sold the TPAD on PancakeSwap and later moved proceeds to Tornado Cash.
Protocol details
Evidence
- report @TrustPad incident report twitter.com
- report TrustPad Attack Post-Mortem trustpad.medium.com
- transaction bscscan.com transaction 0x191a…3182 bscscan.com
- transaction bscscan.com transaction 0xfe55…4eee bscscan.com
- address bscscan.com address 0x1694…909a bscscan.com
- address bscscan.com address 0x1a7b…0dC9 bscscan.com
- code DeFiHackLabs TrustPad_exp.sol github.com
- analysis DeFiLlama defillama.com
- analysis Decoding TrustPad's $155k Exploit (QuillAudits) quillaudits.com
- analysis BscScan block 33260391 bscscan.com
Understand the attack patterns
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.