Close Menu
Altcoin ObserverAltcoin Observer
  • Regulation
  • Bitcoin
  • Altcoins
  • Market
  • Analysis
  • DeFi
  • Security
  • Ethereum
Categories
  • Altcoins (1,195)
  • Analysis (1,395)
  • Bitcoin (1,970)
  • Blockchain (1,140)
  • DeFi (1,352)
  • Ethereum (1,355)
  • Event (50)
  • Exclusive Deep Dive (1)
  • Landscape Ads (2)
  • Market (1,396)
  • Reddit (621)
  • Regulation (1,298)
  • Security (1,864)
  • Thought Leadership (1)
  • Uncategorized (3)
  • Videos (39)
Hand picked
  • Strategy’s Infinite Money Glitch Is The Corporate Cheat Code of the Decade
  • The former CEO of Coinbase in Germany joins Lukso, aims to break the grip of Big Tech on the autonomy of the creator
  • Synthetix offers a $ 27 million chip exchange to acquire the derive option platform
  • Chaincin in the mist – an overthrow of $ 15.85 can erase the path
  • The former CEO of Coinbase Germany joins Lukso as a COO to accelerate traditional web3 adoption
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

Ethereum seems ready to surpass bitcoin in the coming months – the incoming Altsaison?

May 18, 2025
Ethereum

Ethereum went to a crucial meeting at $ 4,000 – here is why

May 18, 2025
Ethereum

Ethereum accumulation accumulates – Smart Money accuses 450K ETH

May 17, 2025
Add A Comment
Leave A Reply Cancel Reply

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

Super Vietnam 2025: Where Blockchain, AI, and Innovation Converge in Southeast Asia’s Rising Tech Powerhouse

May 13, 2025

Vietnam is riding a powerful wave of technological innovation, and Super Vietnam 2025 arrives at…

Event

Istanbul Blockchain Week 2025 Is Back: The Future of Web3 Unfolds in Turkey’s Innovation Hub

May 13, 2025

Leading Web3 marketing agency EAK Digital with official media partner Altcoin Observer is proud to…

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

Synthetix offers a $ 27 million chip exchange to acquire the derive option platform

May 18, 2025

Paraguay Foils Crypto Mining Flight near the Itaipu dam, 3 deportees, 1 decree

May 18, 2025

Shiba Inu Burn Rate Skyrocket, Shib Price Breakout to come?

May 17, 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) $ 103,617.76
ethereum
Ethereum (ETH) $ 2,504.24
tether
Tether (USDT) $ 1.00
xrp
XRP (XRP) $ 2.39
bnb
BNB (BNB) $ 644.68
solana
Solana (SOL) $ 169.83
usd-coin
USDC (USDC) $ 1.00
dogecoin
Dogecoin (DOGE) $ 0.220414
cardano
Cardano (ADA) $ 0.756973
tron
TRON (TRX) $ 0.272927