Close Menu
Altcoin ObserverAltcoin Observer
  • Regulation
  • Bitcoin
  • Altcoins
  • Market
  • Analysis
  • DeFi
  • Security
  • Ethereum
Categories
  • Altcoins (3,732)
  • Analysis (3,840)
  • Bitcoin (4,470)
  • Blockchain (2,157)
  • DeFi (2,623)
  • Ethereum (2,773)
  • Event (119)
  • Exclusive Deep Dive (1)
  • Landscape Ads (2)
  • Market (2,714)
  • Press Releases (12)
  • Reddit (2,847)
  • Regulation (2,474)
  • Security (4,103)
  • Thought Leadership (3)
  • Videos (44)
Hand picked
  • Uniswap RFC explores running private exchanges using v4 and UniswapX hooks
  • Australia targets Telegram a day after Russia indicts Durov
  • Bitcoin’s weak hands fold
  • Success Story: Jonathan Nichols’ Learning Journey with 101 Blockchains
  • Kraken Cyprus honored at the 14th Invest Cyprus International Investment Awards
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 Comments
Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
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

Ethereum Foundation Board Update | Ethereum Foundation Blog

July 30, 2026
Ethereum

Morgan Stanley uses $7.4 trillion in client assets and minimal fees to hijack Wall Street’s crypto boom

July 29, 2026
Ethereum

On-chain data shows 5,280 ETH flowing to single address following quiet Triple-A wallet breach

July 27, 2026
Add A Comment
Leave A Reply Cancel Reply

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

Dutch Blockchain Week 2026 strengthens position as Europe’s leading B2B blockchain event week

April 14, 2026

Amsterdam, April 2026 – Dutch Blockchain Week 2026 is rapidly evolving into one of Europe’s…

Event

Global Games Show Riyadh: The Ultimate Creator & Influencer Hub

March 31, 2026

The fast-evolving gaming ecosystem of Riyadh is powered by solid national investment, a flourishing esports…

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

Australia targets Telegram a day after Russia indicts Durov

July 30, 2026

Ethena whales withdraw 102 million tokens from exchanges: has ENA selling pressure eased?

July 30, 2026

Audiera loses KEY support – can BEAT recover from 24% crash?

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

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

bitcoin
Bitcoin (BTC) $ 75,932.00
ethereum
Ethereum (ETH) $ 2,246.18
tether
Tether (USDT) $ 0.999123
bnb
BNB (BNB) $ 694.66
xrp
XRP (XRP) $ 1.16
usd-coin
USDC (USDC) $ 0.999671
solana
Solana (SOL) $ 90.04
tron
TRON (TRX) $ 0.317185
staked-ether
Lido Staked Ether (STETH) $ 2,265.05
figure-heloc
Figure Heloc (FIGR_HELOC) $ 1.02