On November 7, 2022, MooCAKECTX on BSC was exploited via a flashloan attack targeting the reward settlement logic, where the attacker borrowed 50,000 CAKE, pledged twice in the same transaction without reward settlement, and withdrew to profit approximately $143,921. The contract failed to settle previous rewards before reinvesting.
MooCAKECTX
אירוע שתועד ב-DefiLlama, SlowMist, DeFiHackLabs. הסיווג: חוזים חכמים ולוגיקת פרוטוקול.
הדיווחים על האירוע
| מקור | תאריך במקור | הערכת נזק | כספים שהוחזרו | שיטה כפי שדווחה |
|---|---|---|---|---|
| DefiLlama | 7 בנוב׳ 2022 | $140,000 | לא פורסם | Incorrect Share Accounting |
| SlowMist | 7 בנוב׳ 2022 | $143,921 | לא פורסם | Flash Loan Attack |
| DeFiHackLabs | 7 בנוב׳ 2022 | $140,000 | לא פורסם | FlashLoan Attack |
מה ידוע על המתקפה?
הסיווג ושיטת התקיפה משקפים את דיווחי המקורות. תיאורים מפורטים מוצגים בשפת המקור; לקריאת התחקיר המלא ניתן לפתוח את הקישור המצורף.
The MooCakeCTX project suffered a flash loan attack, and the attackers made a profit of $143,921. According to Fairyproof’s analysis, the suspected reason is that the contract reinvested (the earn function was not called) before the user pledged (depositAll function) without settlement of the reward, that is, when the user pledged, the contract did not settle the previous reward and conduct new investment. This will cause users to get the previous pledge dividends immediately after the pledge. After the attacker borrows 50,000 cake tokens using a flash loan in the same block, he pledges it twice in a row, and then withdraws the pledged cake tokens and returns them to make a profit.
מקורות וניתוחים נוספים
תמונת המצב נאספה ב-5 בנוב׳ 2026. הסכומים נקובים בדולרים ומשקפים הערכות מקור. סכום לא ידוע אינו אפס; סכום שהוקפא אינו בהכרח כסף שהוחזר.
