PancakeSwap Hack

TOTAL LOST
Other

What happened

Bad actors took advantage of a flaw in the connection between the MasterChef contract and the SyrupBar contract. Previously, when CAKE was staked, an equivalent number of SYRUP tokens were created. The SYRUP tokens would be burnt once the CAKE was unstaked and withdrawn. The exact attack here was that if a user invoked the MasterChef contract's emergencyWithdraw method to withdraw their staked CAKE, the related SYRUP tokens were not burned as planned. This enabled malicious actors to mint additional SYRUP tokens using their CAKE tokens on a regular basis.

Because there were much more SYRUP tokens in circulation than was permitted, the bad actors received a larger share of Syrup Pool rewards.

Case & protocol details

Classification Exchange (DEX)
Protocol Type Exploit/Other
Affected asset / contract CAKE
Official Website pancakeswap.finance/
Protocol Twitter/X @PancakeSwap

Evidence & learning

Sources and on-chain records

Practice this exploit pattern safely

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.