Close Menu
Altcoin ObserverAltcoin Observer
  • Regulation
  • Bitcoin
  • Altcoins
  • Market
  • Analysis
  • DeFi
  • Security
  • Ethereum
Categories
  • Altcoins (1,430)
  • Analysis (1,613)
  • Bitcoin (2,202)
  • Blockchain (1,296)
  • DeFi (1,519)
  • Ethereum (1,501)
  • Event (56)
  • Exclusive Deep Dive (1)
  • Landscape Ads (2)
  • Market (1,562)
  • Press Releases (2)
  • Reddit (853)
  • Regulation (1,461)
  • Security (2,084)
  • Thought Leadership (3)
  • Videos (41)
Hand picked
  • $103,000 Liquidity Wall Acts as Bitcoin’s Safety Net Amid Global Tensions
  • Why are we launching Krak – Kraken Blog Kraken Blog
  • Why does the Pi network bleed while the rest of the crypto soar?
  • Why $ PEPD could be larger than penging: real utility, fixed supply and tokenomics coded by memes
  • Game on, bags up: Toller Cat’s beta Game Center fuels the best presale of money to buy now with 2 Rivaux Wild Crypto
We are social
  • Facebook
  • Twitter
  • Instagram
  • YouTube
Facebook X (Twitter) Instagram
  • About us
  • Disclaimer
  • Terms of service
  • Privacy policy
  • Contact us
Facebook X (Twitter) Instagram YouTube LinkedIn
Altcoin ObserverAltcoin Observer
  • Regulation
  • Bitcoin
  • Altcoins
  • Market
  • Analysis
  • DeFi
  • Security
  • Ethereum
Events
Altcoin ObserverAltcoin Observer
Home»Ethereum»Safety alert – Solidity – Variables can be replaced in storage
Ethereum

Safety alert – Solidity – Variables can be replaced in storage

March 17, 2025No Comments2 Mins Read
Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
Eth org.jpeg
Share
Facebook Twitter LinkedIn Pinterest Email


Summary: In certain situations, the variables can crush other storage variables.

Affected solidity compiler versions: 0.1.6 to 0.4.3 (including 0.4.4 pre-liberated versions)

Detailed description:

The storage variables which are smaller by 256 bits are packed in the same location at 256 bits if they can adapt. If a value greater than what is authorized by the type is attributed to the first variable, this value will crush the second variable.

This means that if an attacker can cause overflow in the value of the first variable, the second variable can be modified. The creation of an overflow in the first variable is possible using Arithmetics or by directly transmitting a value from the call data (the values ​​in the call data are aligned on 32 bytes, and the padding is neither verified nor applied).

Contracts that only use the types listed below for state variables are not affected. Tables, mappings and structures (based on the following types) are also not affected:

  • signed whole, including sizes less than 256 bits
  • Bytesnn types, including sizes less than 256 bits
  • Uninfer (UINT) of 256 bits

Contracts with types less than 256 bits which are never close to each other (note that the state variables of the basic contracts are “drawn”) not affected.

Ethereum Multisignature Portfolio Contract is not affected. Note that addresses take 160 bits, so contracts that use only addresses and 256 -bit types are safe. In addition, addresses and Booleans are almost never handled via arithmetic operations in practice, so contracts using only addresses, Booleans and 256 -bit types should also be safe.

The following contracts can be assigned: the contracts containing two or more adjoining state variables where the sum of their sizes is less than 256 bits and the first state variable is not a signed integer and not by Bytesnn.

The types of less than 256 bits include: Bool, Enums, Uint8, …, Uint248, int8, …, int248, address, any type of

Recommended action:

  • Recomplile the contracts which have not yet been deployed using at least the 0.4.4 version of the solidity (not the pre-liberation or nocturnal version).
  • Disable, delete funds or upgrade contracts already deployed.

This vulnerability was found by (github.com/catageek) (((



Source link

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticleLSeth is available for trading!
Next Article Why Defi is the new money laundering tool

Related Posts

Ethereum

Zklend stops in the middle of the fallout and exploit delights, the remaining $ 200,000 are redirected to users

June 26, 2025
Ethereum

Ethereum builds a critical model on the daily graphic, volatility in advance

June 25, 2025
Ethereum

Coinbase launches the wrapped tokens Cardano and Litecoin Cbada, CBLTC on the basis

June 25, 2025
Add A Comment
Leave A Reply Cancel Reply

Single Page Post
Share
  • Facebook
  • Twitter
  • Instagram
  • YouTube
Featured Content
Event

Philippine Blockchain Week 2025 Welcomes Global Web3 Trailblazers to Manila

June 9, 2025

Manila, Philippines – June 9, 2025 — As Philippine Blockchain Week (PBW) 2025 returns for…

Event

ETHMilan 2025 Returns With a Stellar Line-Up at One of Milan’s Most Iconic Venues

June 5, 2025

Milan, Italy – Mark your calendars! ETHMilan, Italy’s largest international Ethereum and Web3 conference, is…

1 2 3 … 49 Next
  • Facebook
  • Twitter
  • Instagram
  • YouTube

Why does the Pi network bleed while the rest of the crypto soar?

June 26, 2025

The whales add $ 915 million in XRP – can make up for detail, in the affirmative, prices will be …

June 26, 2025

Altcoins could ignite the major pump ” If these two things happen, according to analyst Kevin Svenson

June 26, 2025
Facebook X (Twitter) Instagram LinkedIn
  • About us
  • Disclaimer
  • Terms of service
  • Privacy policy
  • Contact us
© 2025 Altcoin Observer. all rights reserved by Tech Team.

Type above and press Enter to search. Press Esc to cancel.

bitcoin
Bitcoin (BTC) $ 107,367.77
ethereum
Ethereum (ETH) $ 2,429.57
tether
Tether (USDT) $ 1.00
xrp
XRP (XRP) $ 2.12
bnb
BNB (BNB) $ 647.03
solana
Solana (SOL) $ 142.36
usd-coin
USDC (USDC) $ 1.00
tron
TRON (TRX) $ 0.271049
dogecoin
Dogecoin (DOGE) $ 0.160379
staked-ether
Lido Staked Ether (STETH) $ 2,429.01