
إثبات المفهوم لـ CVE-2021-42574 لمجمع Solidity و solc
31 يناير 2023، Altin (tin-z)، github.com/tin-z
POC الخاص بـ CVE-2021-42574 لمترجم solidity و 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 موجود داخل التعليق
