ethernaut icon indicating copy to clipboard operation
ethernaut copied to clipboard

Preservation: `library` doesn't prevent access to state

Open mtomassoli opened this issue 3 years ago • 0 comments

Great level! I just want to point out that library is not completely foolproof as the final explanation seems to suggest:

library LibraryContract {
    function setTime(uint256 _time) public {
        assembly {
            sstore(0, _time)
        }
    }
}

mtomassoli avatar Sep 26 '22 09:09 mtomassoli