Shedding smart contract storage with Slither
Summary: Trail of Bits released slither-read-storage in Slither version 0.8.3, a tool that retrieves smart contract storage slots from source code using Slither's type analysis to inform slot calculations. The tool can pull the slot of a single variable or an entire contract, read values through an Ethereum RPC, and handle the delegatecall proxy pattern via a --storage-address flag.
Bottom line: Storage slots with no getter are where a contract's real state sits, and the post's own example shows the tool pulling all 25 addresses that can mint FRAX from slot 18 of FRAXStablecoin. For anyone auditing or monitoring a deployed contract, the difference between seeing that state and guessing at it is the difference between confirming a drainable bug and missing it.
Read the original at Trail of Bits Blog ↗