BTC $58,681.20 -2.77%
ETH $1,639.16 -3.35%
BNB $538.35 -2.43%
XRP $0.9143 -3.13%
SOL $67.88 -5.17%
TRX $0.3081 -0.48%
DOGE $0.0542 -3.41%
ADA $0.1423 -3.57%
BCH $195.91 -2.09%
LINK $8.71 -3.75%
HYPE $58.63 -8.17%
AAVE $92.48 -3.49%
SUI $0.6401 -4.10%
XLM $0.1228 -5.02%
ZEC $729.45 -3.86%
AAPL $352.59 +0.59%
AMZN $248.99 -3.42%
GOOGL $274.73 -3.86%
MSFT $489.14 -1.64%
META $580.04 -3.68%
NVDA $149.83 -8.41%
TSLA $378.65 -2.22%
SNDK $74.83 -14.38%
INTC $53.19 -8.29%
SPCX $123.48 -8.19%
MU $603.86 -13.88%
AMD $397.06 -11.83%
BTC $58,681.20 -2.77%
ETH $1,639.16 -3.35%
BNB $538.35 -2.43%
XRP $0.9143 -3.13%
SOL $67.88 -5.17%
TRX $0.3081 -0.48%
DOGE $0.0542 -3.41%
ADA $0.1423 -3.57%
BCH $195.91 -2.09%
LINK $8.71 -3.75%
HYPE $58.63 -8.17%
AAVE $92.48 -3.49%
SUI $0.6401 -4.10%
XLM $0.1228 -5.02%
ZEC $729.45 -3.86%
AAPL $352.59 +0.59%
AMZN $248.99 -3.42%
GOOGL $274.73 -3.86%
MSFT $489.14 -1.64%
META $580.04 -3.68%
NVDA $149.83 -8.41%
TSLA $378.65 -2.22%
SNDK $74.83 -14.38%
INTC $53.19 -8.29%
SPCX $123.48 -8.19%
MU $603.86 -13.88%
AMD $397.06 -11.83%

Security company Dedaub discovered vulnerabilities in the Solidity compiler, which significantly increase gas costs due to dead code in most deployed contracts

2023-02-11 11:05:11

ChainCatcher news, the security company Dedaub team discovered a vulnerability in the Ethereum programming language Solidity compiler, which causes dead code to be included in the bytecode of deployed contracts, significantly increasing the gas cost when deploying and operating smart contracts. Dedaub stated that the team found this error while evaluating the open-source binary decompiler Gigahorse. The vulnerability occurs when library methods are only called by the contract's constructor.

Through the analysis with Gigahorse, Dedaub found that at least 35% of contracts contain some dead code, with 33% occupying most of their running bytecode. These results are predominantly seen in NFT proxies, but other proxy contracts also have the same issue. For large contracts, this problem can be overlooked, but most deployed contracts are small contracts. The Dedaub team had already discovered this error last November and alerted the Solidity team to confirm the issue. (source link)

链捕手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.

app_icon
ChainCatcher Building the Web3 world with innovations.