Friday, January 22, 08:33
Home security Copying codes from Stack Overflow leads to GitHub vulnerabilities

Copying codes from Stack Overflow leads to GitHub vulnerabilities

Very often, when the developers have a problem with him code they get used to copy-pasting code snippets from the popular Stack Overflow forum to resolve it.

However a new one research "An Empirical Study of C ++ Vulnerabilities in Crowd-Sourced Code Examples" suggests that this practice raises serious issues security.

Copying codes can lead to vulnerabilities

Looking at more than 72.000 C ++ code snippets taken from Stack Overflow's 1.325 posts, the research authors discovered 69 vulnerable 29 snippets of different types.

Although this number may seem small, compared to the enormous amount of work on GitHub, the 69 vulnerabilities discovered, appeared in 2.589 GitHub repos, and this is certainly worrying.

Although the researchers they took responsibility for notifying project developers on GitHub, only some of them wanted to fix the deficiencies that were common CWEs (Common Weakness Enumeration).

The purpose of the research was to describe how the code passes through Stack Overflow on GitHub and how using codes without careful control can lead to possible vulnerabilities in software.

For this study, the team chose to focus on C ++-based projects. Most of the CWEs found were CWE-20 (Improper Input Validation), CWE-754 (Improper Check for Unusual or Exceptional Conditions) and CWE-1006 (Bad Coding Practices).

Incorrect use of the platform

The Stack Overflow forum is mainly used for questions and answers. Many developers who submit code snippets as a solution may not have a proper understanding of code security.

Which means that using these excerpts is no better. It is preferable for a developer to devote a little more time and effort to adopt safer practices programming.

But there is a solution

Many developers have a hard time leaving Stack Overflow completely. With this in mind, researchers have developed an extension Chrome, which can help determine the security of a code.

Installing it extension, checks the code being copied, compared to the CWE database, and the developer is notified if the snippet of the code contains known defects.

The extension is scheduled for release soon. Stay short.

LEAVE ANSWER

Please enter your comment!
Please enter your name here

Absent Mia
Absent Miahttps://www.secnews.gr
Being your self, in a world that constantly tries to change you, is your greatest achievement

LIVE NEWS

Mac: How to see which model you have and when it was released

When you need support for your Mac - or want to install some kind of upgrade - you usually need to know the exact ...
00:02:35

Bill Gates: Will he work with Biden on COVID-19 / climate change?

Microsoft co-founder Bill Gates said on Twitter that he is looking forward to working with the new US President, Joe Biden, and ...

What are the rumors circulating about the iPhone 13?

Apple iPhone 13 will have a redesigned Face ID system that will have a smaller notch at the top of the screen, ...

Biden: How was the political transition in the US captured on social media?

As Joe Biden was sworn in as President of the United States, this important political transition was captured on popular social media. On January 20, ...

CentOS ceases to be supported but RHEL is offered for free

Last month, Red Hat caused a great deal of concern in the Linux world when it announced the discontinuation of CentOS Linux.

Microsoft Office 365 employee passwords leaked online!

A new large-scale phishing campaign targeting global organizations has been found to bypass Microsoft Office 365 Advanced Threat Protection (ATP) and ...

COSMOTE and Microsoft provide new cloud solutions for businesses

COSMOTE and Microsoft expand their cooperation, offering even more advanced and high quality cloud solutions, in large and small ...

Cyber ​​attacks in Eastern Europe are on the rise!

The cyber-attacks that have taken place in many US government agencies and companies in recent months have caused concern in the developing countries of ...

Tesla reduces the prices of the Model 3 in Europe

Tesla has reduced the prices of the Model 3 in many European markets, which reductions could be partly linked ...

iOS, Android, XBox users in the crosshairs of a new malvertising campaign

Recently a new malvertising campaign was discovered that targets users of mobile and other connected devices and uses effective ...