source avatarDragonCrip

Share

The attack was carried out through API keys, where the attackers found and exploited a vulnerability. What are API keys used for? They are permissions and keys that enable automated operations via bots—for example. API keys grant permissions to buy, sell, create pools, and more. They allow nearly all actions—EXCEPT WITHDRAWING FUNDS TO ANOTHER ACCOUNT. If your API key is stolen, attackers cannot directly steal your funds, because they cannot withdraw them to another wallet. This provides security, allowing bots to operate calmly and with confidence. —But this is exactly how they exploited Lighter: 1. The attacker obtained the API key of a Market Maker. 2. They closed all open trades, leaving the balance in USDC. 3. They created a Public Pool—but deposited $0. 4. From their own wallet, the attacker invested $10,000 USDC and purchased 100% of the shares (at that point, they were the only investor). 5. They returned to the compromised account (the one that created the pool in step 3) and used the API to perform an internal transfer of $15M into the pool. *Since this was an internal transfer, it did not involve purchasing additional shares in the pool, as in step 4. 6. Because the attacker’s own wallet held 100% of the pool’s shares, they withdrew all funds to their wallet. In other words: the API key alone could not withdraw funds to the hacker’s wallet. So, the attacker created a public pool using the API, used their own wallet to buy 100% of the pool’s shares, then used the compromised API to perform an internal transfer into that pool—and finally withdrew their 100% share using their own wallet. The attacker exploited the system’s logic to steal funds from a user—not the protocol itself. However, they did leverage protocol permissions, such as internal transfers into pools. Lighter’s responsibility lies in enabling this functionality and failing to adequately address the risks associated with API keys.

No.0 picture
Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information. Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.