In yet another setback for Solana supporters, decentralized exchange Raydium confirmed that it suffered an exploit on Friday.
Early investigations suggest that the hacker managed to take over the protocol’s owner account and used the access to drain funds from the liquidity pools. To protect against further erosion, Raydium has paused the owner account’s authority on automated match maker and farm programs.
An exploit on Raydium is being investigated that affected liquidity pools. Details to follow as more is known
— Raydium (@RaydiumProtocol) December 16, 2022
⁰Initial understanding is owner authority was overtaken by attacker, but authority has been halted on AMM & farm programs for now
Attacker accnthttps://t.co/ZnEgL1KSwz
According to blockchain analytics firm Nansen, within hours, the attacker stole over $2.2 million worth of crypto, including $1.6 million worth of SOL.
The wallet draining LP Pools from Raydium liquidity pools has received over $2.2M now, including $1.6M $SOL
— Nansen Portfolio (@nansenportfolio) December 16, 2022
Track here: https://t.co/IQedsOstPE pic.twitter.com/OAQJgaq5Mc
At around 2PM, the hacker’s wallet address had over a thousand transactions, each removing liquidity from Raydium without depositing a corresponding LP token.
The exploit, which was first spotted by Prism, kept on draining funds until Raydium stopped owner account access. Prism also warned its users to immediately withdraw their tokens from the exchange.
????????????????????
— PRISM (@prism_ag) December 16, 2022
There seems to be a wallet is draining LP Pools from Raydium liquidity pools using admin wallet as a signer without having/burning LP tokens.
We withdrew protocol provided PRISM/USDC liquidity from Raydium
WITHDRAW YOUR PRISM/USDC LIQUIDITY FROM RAYDIUM
After a few hours, the hacker bridged the funds to ETH and routed the funds through crypto mixer Tornado Cash, per crypto sleuth ZachXBT.
Cause of the exploit
According to security auditor Ottersec, the attacker repeatedly invoked the withdraw_pnl function, used by the Solana team to withdraw trading fees, to drain the funds.
Ottersec further confirmed that the root cause might be a private key compromise, but it’s still unclear how the hacker obtained the private key.
At the time of writing, Raydium is still in the process of investigating the issue and hasn’t made any announcements about compensation for the victims.
Admin account exploits have seen a surge recently. Earlier this month, Ankr fell victim to a hack when the deployer’s private key was exposed, costing the firm over $5 million.
In another instance, the Ronin network bridge was hacked for over $600 million in a similar fashion.