Stack Overflow Considered Harmful? The Impact of Copy&Paste on Android Application Security
Felix Fischer, Konstantin B\"ottinger, Huang Xiao, Christian Stransky,, Yasemin Acar, Michael Backes, Sascha Fahl

TL;DR
This study investigates the security implications of copying code snippets from Stack Overflow into Android apps, revealing that a significant portion of apps include insecure code, raising concerns about software security practices.
Contribution
The paper quantifies the prevalence of Stack Overflow code snippets in Android apps and assesses their security, highlighting the risks of insecure code reuse in mobile applications.
Findings
15.4% of analyzed Android apps contain Stack Overflow snippets.
97.9% of these contain at least one insecure snippet.
Millions of users are potentially exposed to security vulnerabilities.
Abstract
Online programming discussion platforms such as Stack Overflow serve as a rich source of information for software developers. Available information include vibrant discussions and oftentimes ready-to-use code snippets. Anecdotes report that software developers copy and paste code snippets from those information sources for convenience reasons. Such behavior results in a constant flow of community-provided code snippets into production software. To date, the impact of this behaviour on code security is unknown. We answer this highly important question by quantifying the proliferation of security-related code snippets from Stack Overflow in Android applications available on Google Play. Access to the rich source of information available on Stack Overflow including ready-to-use code snippets provides huge benefits for software developers. However, when it comes to code security there are…
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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Malware Detection Techniques · Software Engineering Research · Security and Verification in Computing
