2023年1月31日,Altin (tin-z),github.com/tin-z
针对solidity和solc编译器的CVE-2021-42574的PoC。
# solc 并选择 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 在注释内部
