Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
solidity_CVE-2021-42574-POC — POC of CVE-2021-42574 for solidity and solc compiler | Kitploit
Tools/GitHubGitHub/tin-z/solidity_cve-2021-42574-poc
Static AnalysisVulnerability AnalysisCode AnalysisExploitationSupply Chain SecurityLearning & Education
GitHubtin-z/solidity_cve-2021-42574-poc

solidity_CVE-2021-42574-POC

POC of CVE-2021-42574 for solidity and solc compiler

View Repository
3133 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

solidity_CVE-2021-42574-POC

Jan 31 2023, Altin (tin-z), github.com/tin-z

PoC

POC of CVE-2021-42574 for solidity and solc compiler.

  • install
root@kitploit:~
# solc and select 0.8.17 version (https://github.com/crytic/solc-select)
# foundry (https://github.com/foundry-rs/foundry)
  • deploy contract
root@kitploit:~
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/
  • launch the poc
root@kitploit:~
forge build  && \
forge test -vv

t1.jpg


  • So for example chrome does show that x = 42 is inside the comment

t2.jpg


  • But in vim we see the right position of the text

t3.jpg


details

  • https://nvd.nist.gov/vuln/detail/CVE-2021-42574
  • https://www.scyon.nl/post/trojans-in-your-source-code
  • https://github.com/ethereum/solidity/issues/10254
Download Tool