BTC $64,244.76 -1.65%
ETH $1,803.32 -1.40%
BNB $590.21 -0.64%
XRP $0.9695 +0.97%
SOL $73.34 +2.10%
TRX $0.3071 +0.63%
DOGE $0.0592 -0.27%
ADA $0.1535 +0.08%
BCH $209.21 -0.32%
LINK $9.17 +0.09%
HYPE $68.94 -2.29%
AAVE $110.74 +2.57%
SUI $0.7262 +0.23%
XLM $0.1388 +0.87%
ZEC $930.93 +2.24%
AAPL $350.47 -0.64%
AMZN $257.33 -0.34%
GOOGL $280.58 -1.34%
MSFT $504.97 -2.54%
META $617.19 -1.26%
NVDA $157.94 +0.92%
TSLA $380.76 +0.46%
SNDK $814.56 +0.16%
INTC $55.42 +1.17%
SPCX $142.09 +3.08%
MU $720.07 -0.18%
AMD $506.99 +0.43%
BTC $64,244.76 -1.65%
ETH $1,803.32 -1.40%
BNB $590.21 -0.64%
XRP $0.9695 +0.97%
SOL $73.34 +2.10%
TRX $0.3071 +0.63%
DOGE $0.0592 -0.27%
ADA $0.1535 +0.08%
BCH $209.21 -0.32%
LINK $9.17 +0.09%
HYPE $68.94 -2.29%
AAVE $110.74 +2.57%
SUI $0.7262 +0.23%
XLM $0.1388 +0.87%
ZEC $930.93 +2.24%
AAPL $350.47 -0.64%
AMZN $257.33 -0.34%
GOOGL $280.58 -1.34%
MSFT $504.97 -2.54%
META $617.19 -1.26%
NVDA $157.94 +0.92%
TSLA $380.76 +0.46%
SNDK $814.56 +0.16%
INTC $55.42 +1.17%
SPCX $142.09 +3.08%
MU $720.07 -0.18%
AMD $506.99 +0.43%

Dilation Effect: The Venus lending protocol has a precision loss vulnerability, which may lead to financial risks

2024-11-26 19:07:09

ChainCatcher news, Dilation Effect stated in a post that it has discovered a precision loss vulnerability in the core pool series contracts of the Venus lending protocol. When the protocol adds new collateral assets, it becomes very easy for attackers to exploit this vulnerability and drain all funds.

Specifically, the VToken contract of the core pool has a division precision loss issue in the redeemUnderlying function when calculating redeemTokens. If the protocol adds new collateral assets on-chain, and the LTV is greater than 0, and the new asset pool is an empty pool (totalSupply=0), when the new asset is mintable, it can be exploited by hackers. This puts all funds within the core pool at risk.

Dilation Effect recommends that Venus fully fix this vulnerability (covering all involved chains and pools). Possible methods include rounding up the division result when calculating redeemTokens (recommended), mimicking Uniswap's design using initialdepositamount, or directly removing the redeemUnderlying interface, etc.

链捕手ChainCatcher nhắc nhở: hãy nhìn nhận blockchain một cách tỉnh táo, nâng cao ý thức rủi ro, cảnh giác với việc phát hành và đầu cơ các token ảo. Mọi nội dung trên trang chỉ là thông tin thị trường hoặc quan điểm của các bên liên quan, không cấu thành bất kỳ hình thức tư vấn đầu tư nào. Nếu phát hiện nội dung nhạy cảm, hãy nhấp , chúng tôi sẽ xử lý kịp thời.

Dự án được đề cập
app_icon
ChainCatcher Building the Web3 world with innovations.