link.png

ID:

qubit-finance-107

Date:

Status:

Incident Count:

January 27, 2022

Verified

1

info.png
target.png
REKT

Contributor:

chain.png

zerofriction.io

KYC By:

KYC:

No

info.png

Audit By:

Audits:

Peckshield

Loss Amount:

80,000,000

info.png

Recovered:

-

Rewards:

Currency:

USD, xETH

info.png

Key Indicators

Platform:

Type:

Category:

Method:

Data Sources:

Ethereum

Protocol

Bridge

Contract Vulnerabilities

Extended Method:

Lack of validation

info.png

Days in Operation:

430

(1.18 Years)

chain.png
chain.png
chain.png
chain.png
datasource.png

Qubit is Mound’s innovative DeFi protocol optimized to deliver “Lending as a utility”. The Qubit protocol was subject to an exploit to our QBridge deposit function.The attacker called the QBridge deposit function on the ethereum network, which calls the deposit function QBridgeHandler. QBridgeHandler should receive the WETH token, which is the original tokenAddress, and if the person who performed the tx does not have a WETH token, the transfer should not occur. tokenAddress.safeTransferFrom(depositer, address(this), amount); In the code, tokenAddress is 0, so safeTransferFrom didn’t fail and the deposit function ended normally regardless of the amount value. Additionally, tokenAddress was the WETH address before depositETH was added, but as depositETH is added, it is replaced with the zero address that is the tokenAddress of ETH. In summary, the deposit function was a function that should not be used after depositETH was newly developed, but it remained in the contract. 77,162 xETH were liquidated.

info.png

DISCLAIMER: While web3rekt has used the best efforts in aggregating and maintaining this database, this web site makes no representations or warranties with respect to the accuracy or completeness of its information and data herein, and specifically disclaim any implied warranties of merchantability or fitness for any particular purpose. 

Under no circumstances, shall web3rekt be liable for any loss of profit or funds, any regulatory or governmental penalties, any legal costs, or any other commercial and non-commercial damages, including but not limited to special, incidental, consequential, or other damages from any or all usage of the data and information derived from this database.