Analyzing the Impact of Copying-and-Pasting Vulnerable Solidity Code Snippets from Question-and-Answer Websites
Konrad Weiss, Christof Ferreira Torres, and Florian Wendland

TL;DR
This study investigates how copying vulnerable code snippets from Q&A websites affects deployed Ethereum smart contracts, introduces detection tools, and reveals significant reuse of vulnerable code in real-world contracts.
Contribution
The paper presents a novel pattern-based vulnerability detection tool and a fuzzy hashing methodology for identifying vulnerable code reuse in smart contracts.
Findings
4,596 vulnerable snippets identified in 18,660 analyzed
616 snippets found in 7,852 deployed smart contracts
Vulnerable code reuse is a significant issue in deployed contracts
Abstract
Ethereum smart contracts are executable programs deployed on a blockchain. Once deployed, they cannot be updated due to their inherent immutability. Moreover, they often manage valuable assets that are worth millions of dollars, making them attractive targets for attackers. The introduction of vulnerabilities in programs due to the reuse of vulnerable code posted on Q&A websites such as Stack Overflow is not a new issue. However, little effort has been made to analyze the extent of this issue on deployed smart contracts. In this paper, we conduct a study on the impact of vulnerable code reuse from Q&A websites during the development of smart contracts and provide tools uniquely fit to detect vulnerable code patterns in complete and incomplete Smart Contract code. This paper proposes a pattern-based vulnerability detection tool that is able to analyze code snippets (i.e., incomplete…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsExpert finding and Q&A systems · Topic Modeling · Web Data Mining and Analysis
