ESEIW 2022
Sun 18 - Fri 23 September 2022 Helsinki, Finland
Thu 22 Sep 2022 11:40 - 12:00 at Sonck - Session 1B - Testing & Security Chair(s): Guilherme Horta Travassos

Background: With the proliferation of crowd-sourced developer forums, Software developers are increasingly sharing more coding solution to a programming problem with others in the forums. The decentralized nature of knowledge sharing in the sites has raised the concerns of sharing security vulnerable code, which then can be reused into mission critical software systems - making those systems vulnerable in the process. Collaborative editing is introduced in forums like Stack Overflow to improve the quality of the shared contents.

Aim: In this paper, we investigate whether code editing can mitigate shared vulnerable code examples by analyzing IoT code snippets and their revisions in three Stack Exchange sites: Stack Overflow, Arduino, and Raspberry Pi. With the increased adoption of IoT devices in our everyday life, we have observed growing discussions of IoT solutions in the Stack Exchange forums.

Method: We analyze the vulnerabilities present in Shared IoT C/C++ code snippets, as C/C++ is one of the most widely used language in mission-critical devices and low-powered IoT devices. We further analyse the revisions made to these code snippets, and their effect.

Results: We find several vulnerabilities such as CWE 788 - Access of Memory Location After End of Buffer in 740 code snippets. However, we find the vast majority of posts are not revised, or revisions are not made to the code snippets themselves (598 out of 740). We also find that revisions are most likely to result in no change to the number of vulnerabilities in a code snippet rather than deteriorating or improving the snippet.

Conclusions: We conclude that the current collaborating editing system in the forums may be insufficient to help mitigate vulnerabilities in the shared code.

Thu 22 Sep

Displayed time zone: Athens change

11:00 - 12:30
Session 1B - Testing & SecurityESEM Technical Papers at Sonck
Chair(s): Guilherme Horta Travassos Federal University of Rio de Janeiro
11:00
20m
Full-paper
Do Static Analysis Tools Affect Software Quality when Using Test-driven Development?
ESEM Technical Papers
Simone Romano University of Salerno, Fiorella Zampetti University of Sannio, Italy, Maria Teresa Baldassarre Department of Computer Science, University of Bari , Massimiliano Di Penta University of Sannio, Italy, Giuseppe Scanniello University of Salerno
11:20
20m
Full-paper
Understanding the Implementation of Technical Measures in the Process of Data Privacy Compliance: A Qualitative Study
ESEM Technical Papers
Oleksandra Klymenko Technical University of Munich, Oleksandr Kosenkov fortiss GmbH, Stephen Meisenbacher Technical University of Munich, Parisa Elahidoost fortiss GmbH, Daniel Mendez Blekinge Institute of Technology, Florian Matthes Technical University of Munich
11:40
20m
Full-paper
Does Collaborative Editing Help Mitigate Security Vulnerabilities in Crowd-Shared IoT Code Examples?
ESEM Technical Papers
Madhu Selvaraj University of Calgary, Gias Uddin University of Calgary, Canada
12:00
20m
Full-paper
An Exploratory Study on Regression Vulnerabilities
ESEM Technical Papers
Larissa Braz University of Zurich, Enrico Fregnan University of Zurich, Vivek Arora Independent Researcher, Alberto Bacchelli University of Zurich
Pre-print Media Attached