
POC di CVE-2021-42574 per solidity e il compilatore solc
31 Gen 2023, Altin (tin-z), github.com/tin-z
POC della CVE-2021-42574 per il compilatore solidity e solc.
# solc e selezione della versione 0.8.17 (https://github.com/crytic/solc-select)
# foundry (https://github.com/foundry-rs/foundry)
SOLV=0.8.17
folder_t=test_open
mkdir $folder_t && \
cd $folder_t && \
forge init && \
forge install brockelmore/forge-std && \
rm test/Counter.t.sol
cp ../poc.sol src/
cp ../poc.t.sol test/
forge build && \
forge test -vv

x = 42 è dentro il commento
