
POC of CVE-2021-42574 for solidity and solc compiler
2023년 1월 31일, Altin (tin-z), github.com/tin-z
Solidity 및 solc 컴파일러를 위한 CVE-2021-42574의 PoC입니다.
# 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가 주석 안에 있는 것으로 표시합니다
