
POC de CVE-2021-42574 pour le compilateur solidity et solc
31 janvier 2023, Altin (tin-z), github.com/tin-z
POC du CVE-2021-42574 pour le compilateur Solidity et solc.
# solc and select 0.8.17 version (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 se trouve à l'intérieur du commentaire
