CertiK: 80 million RMB disappeared, analysis of Compounder.finance internal operation attack
CertiK
2020-12-02 03:03
本文约2409字,阅读全文需要约10分钟
At 3:00 pm on December 1, Beijing time, the CertiK security technology team discovered several large-value transactions in the Compounder.Finance project. It is an internal operation attack incident.

Does the big case of 80 million RMB remind you of the RMB in the "In the Name of the People"?

In daily life, maybe you accidentally lost your wallet and you can't lose too much money. But in the world of cryptocurrency, if you are a little careless, the amount of loss may be the effect of throwing it out to cover the sky.

In the endless mine pits, if one mistake or omission is made, the whole game will be lost. Often project owners, like investors, are concerned about the safety of their own projects.

But there is one exception.....

At 3:00 pm on December 1, Beijing time, the CertiK security technology team found the Compounder.Finance project via Skynet at0x0b283b107f70d23250f882fbfe7216c38abbd7caSeveral large-value transactions occurred in the smart contract at the address.

After verification by the CertiK security technology team, it was found that these transactions were internal operations of the Compounder.Finance project owner, transferring a large amount of tokens to their own accounts.

According to statistics, Compounder.Finance eventually lost about 80 million RMB worth of tokens.

The attack events are as follows:

Figure 1: inCaseTokenGetStuck() function

The owner of the Compounder.Finance project is located in the0x0b283b107f70d23250f882fbfe7216c38abbd7caThe inCaseTokenGetStuck() function in transfers the token to its own specified address.

When calling this function, it will first check whether the caller of the external function is a strategist or a governance role address at line 1471.0x0b283b107f70d23250f882fbfe7216c38abbd7caThe address of the strategist role of the smart contract was found to be consistent with the address of the Compounder.Finance project owner.

Figure 2: Address of the role of strategist in Compounder.Finance: StrategyControllerV1

Figure 3: Examples of transactions where project managers steal tokens

List of transactions where project managers have stolen tokens:

In today's DeFi market, there are projects with too much authority of project owners and projects with a high degree of centralization everywhere.

At present, there is a lack of additional governance or restrictive measures for project owners, and internal operation attacks due to such reasons are gradually increasing.

The incident caused huge losses, and the technical details of the attack were simple, which sounded the alarm for all DeFi projects:

1. The current DeFi market lacks effective restrictions on project owners.

2. Investors mainly rely on the method of finding project endorsement to confirm this type of security risk.

Welcome to search WeChat [certikchina] and follow CertiK's official WeChat public account, click on the dialog box at the bottom of the public account, leave a message to get free consultation and quotation!

Welcome to search WeChat [certikchina] and follow CertiK's official WeChat public account, click on the dialog box at the bottom of the public account, leave a message to get free consultation and quotation!

CertiK
作者文库