Close Menu
Altcoin ObserverAltcoin Observer
  • Regulation
  • Bitcoin
  • Altcoins
  • Market
  • Analysis
  • DeFi
  • Security
  • Ethereum
Categories
  • Altcoins (2,404)
  • Analysis (2,557)
  • Bitcoin (3,160)
  • Blockchain (1,933)
  • DeFi (2,309)
  • Ethereum (2,222)
  • Event (88)
  • Exclusive Deep Dive (1)
  • Landscape Ads (2)
  • Market (2,365)
  • Press Releases (10)
  • Reddit (1,826)
  • Regulation (2,210)
  • Security (3,038)
  • Thought Leadership (3)
  • Videos (43)
Hand picked
  • Daily Crypto Discussion – November 14, 2025 (GMT+0)
  • Kraken partners with Avelacom to bring ultra-low latency connectivity to institutional traders
  • Global Blockchain Show 2025 to Spotlight Web3 Innovation in Abu Dhabi
  • Binance Receives Full ADGM Approval for Global Operations
  • What is happening with XRP and why has its Spot ETF dropped 20%?
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

BitMine Buys The Dip: Treasury Firm Buys $199M Worth of Ethereum – Details

December 7, 2025
Ethereum

Indicators suggest greater progress

December 6, 2025
Ethereum

Industry Leader Explains Why Ethereum Price Will Hit $12,000

December 6, 2025
Add A Comment
Leave A Reply Cancel Reply

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

Global Blockchain Show 2025 to Spotlight Web3 Innovation in Abu Dhabi

December 8, 2025

Abu Dhabi, UAE – The Global Blockchain Show 2025 will take place at the prestigious…

Event

Global AI Show 2025 Abu Dhabi Partners & World-Class Speaker Lineup

December 5, 2025

The Global AI Show 2025 Abu Dhabi, a premier platform driving the future of artificial…

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

Binance Receives Full ADGM Approval for Global Operations

December 8, 2025

IMF Warns Dollar Stablecoins Threaten Monetary Policy

December 8, 2025

Hyperliquid Wallets Sell for $2.2M in HYPE Before $10M Release – Details

December 8, 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) $ 91,827.60
ethereum
Ethereum (ETH) $ 3,139.16
tether
Tether (USDT) $ 1.00
xrp
XRP (XRP) $ 2.09
bnb
BNB (BNB) $ 905.42
usd-coin
USDC (USDC) $ 0.999969
solana
Wrapped SOL (SOL) $ 138.01
staked-ether
Lido Staked Ether (STETH) $ 3,138.10
tron
TRON (TRX) $ 0.286025
dogecoin
Dogecoin (DOGE) $ 0.142842