Web 3.0 Smart Contracts Could Be Leaky
summary
Built CTF smart contracts on Goerli/Rinkeby using Hardhat and a React + ethers.js front end, then discovers the flag is exposed in the contract creation/input data and visible on Etherscan/Blockscout; integer-overflow exploits fail because Solidity 0.8+ has built‑in checks; fixes leak by obfuscating the flag with ABI.encodePacked (concatenating letters) so input hex decodes no longer show the plaintext. Testnets, transaction hashes and ABI files are the attack surface and the fix is obfuscation, not true secrecy.
AI-written summary · about
