xWin Finance Hack
Reported loss
$270K
Other
What happened
xWin Finance was exploited through invalid slippage control in its xWinFund swap logic. Flash-loaned BNB let the attacker repeatedly collect excess xWIN rewards and sell them for BNB.
Technical root cause
Invalid slippage control in xWinFund's _swapBNBToTokens() allowed a flash-loan-funded sequence to extract excess xWIN rewards.
How it happened
- The attacker borrowed BNB through a Fortube flash loan.
- They swapped and supplied liquidity through the PancakeSwap V1 BNB/xWIN pool, exploiting xWin's invalid slippage control to receive extra rewards.
- They unwound the liquidity position and repeated the cycle to accumulate xWIN.
- The reward tokens were sold through PancakeSwap V2, and the flash loan was repaid.
Protocol details
Classification
Yield Aggregator / Input Validation
Protocol Type
Indexes
Affected asset / contract
XWIN
Implementation language
Solidity
Protocol links
Website
@xwinfinance
Security review history
- CertiK View report
Evidence
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.