DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • Goose Migrations for Smooth Database Changes
  • Restoring the MS SQL Server Database in Easy Steps
  • SQL Server to Postgres Database Migration
  • The Ongoing Battle: Is Time on the Side of Hackers or Defenders?

Trending

  • Securing the Future: Best Practices for Privacy and Data Governance in LLMOps
  • Cloud Security and Privacy: Best Practices to Mitigate the Risks
  • How to Build Real-Time BI Systems: Architecture, Code, and Best Practices
  • Endpoint Security Controls: Designing a Secure Endpoint Architecture, Part 2
  1. DZone
  2. Data Engineering
  3. Databases
  4. 5 Important Software Vulnerabilities

5 Important Software Vulnerabilities

We take a look at five dangerous vulnerabilities and how cyber attackers look to exploit these errors in a codebase to wreak havoc.

By 
Somesh Mohanty user avatar
Somesh Mohanty
·
Mar. 08, 18 · Analysis
Likes (2)
Comment
Save
Tweet
Share
49.8K Views

Join the DZone community and get the full member experience.

Join For Free

A software vulnerability is a glitch, flaw, or weakness present in the software or in an OS (Operating System). The severity of software vulnerabilities advances at an exponential rate. Of course, all systems include vulnerabilities. The thing is whether or not they’re exploited to cause damage.

Software vulnerabilities are explained by three ideal factors. These are:

  • Existence – The existence of a vulnerability in the software.

  • Access – The possibility that hackers gain access to the vulnerability.

  • Exploit – The capability of the hacker to take advantage of that vulnerability via tools or with certain techniques.

More and more organizations today are seeing vulnerabilities in their code exploited. For instance, here we presented the table that shows the top 10 software products with the most security flaws in 2016 with the reference of CVSS system:

Table 1: Top 10 Products With Distinct Vulnerabilities in 2016

S.No

Product Name

Vendor Name

Number Of Vulnerabilities

1

Android

Google

523

2

Debian Linux

Debian

327

3

Ubuntu Linux

Canonical

278

4

Flash Player

Adobe

266

5

Leap

Novell

260

6

Opensuse

Novell

228

7

Acrobat Reader Dc

Adobe

227

8

Acrobat Dc

Adobe

227

9

Acrobat

Adobe

224

10

Linux Kernel

Linux

217

5 Important Software Vulnerabilities and Attacks

In order to build secure software, it is indispensable to have an understanding of software vulnerabilities. Here, we presented a brief overview of important, and dangerous, vulnerabilities.

SQL Injection

SQL injection vulnerabilities leave the chance to inject malicious code into a SQL statement(s). With this vulnerability, hackers can provide database applications with some malicious data, and the application utilizes that data to construct a SQL statement by using string concatenation. Then the attackers get the chance to change the SQL query semantics.

Table 2: Ranking in the CWE List

Rank

ID

NAME

1

CWE-89

“Failure to Preserve SQL Query Structure (also known as SQL injection)”

Affected Languages

Any coding language that can be used inline with a SQL database is prone to this vulnerability. However, here are some common languages:

  • High-level language: Perl, Ruby, Python, Java, VB.Net, SQL
  • Server Page technologies: ASP, JSP, ASP.NET, PHP
  • Lower level Languages: C, C++

OS Command Injection

OS Command Injection vulnerabilities happen when software integrates user-manageable data in a command, which is handled under the shell command interpreter. If the data is unchecked, a hacker can make use of shell metacharacters to change the command that is being executed. This weakness is language independent.

Table 3: Ranking in the CWE List

Rank

ID

NAME

2

CWE 78

“OS Command Injection”

Buffer Overflow

The buffer overflow vulnerability is a well-known sort of security vulnerability. It occurs when a program tries to add more data in the buffer than its storage capacity allows. Writing outside of a block of owed memory can crash the program, corrupt data, and even cause the execution of malicious code. Languages like Java, Python, Visual Basic, and C# include bound check arrays and native string types. Hence, buffer overflow is considered to be impossible in environments written in these languages.

Table 4: Ranking in the CWE List

Rank

ID

NAME

3

CWE-120

“ Classic Buffer Overflow”

Table 5: The Following Table Shows the Relevant Entries of This Vulnerability in the CWE List:

ID

Name

CWE 121

“Stack-based Buffer Overflow“

CWE 122

“Heap-based Buffer Overflow”

CWE 123

“Write-what-where Condition”

CWE 124

“Boundary Beginning Violation”

CWE 125

“Out of bounds Read”

CWE 128

“Wrap around Error”

CWE 129

“Unchecked Array Indexing”

CWE 131

“Incorrect Calculation of Buffer Size”

CWE 193

“Off by One Error”

CWE 466

“Return of Pointer Value Outside of Expected Range”

Affected Languages

  • Language: C, Fortran, Assemblys
  • Environments: Application Servers, web servers, and web applications.

Uncontrolled Format String

This vulnerability involves accepting unchecked or unauthorized user input as a format string to execute a function. This weakness can lead to the execution of harmful code and even can crash the system.

Table 6: Ranking in the CWE List

Rank

ID

NAME

23

CWE 134

“Uncontrolled Format String”


Affected Languages

  • Directly vulnerable: C, C++
  • Indirectly vulnerable: Perl (if read in a sort of tampered data).

Integer Overflow

The integer overflow vulnerability exists when the calculation attempts to increment an integer value which is higher than the integer used to store it in the relevant representation. When this error happens, the integer value may convert to become a negative or very small number. This weakness becomes security critical when the calculation result is used to handle the control looping, determine the size or offset in behaviors (like copying, memory allocation, concatenation, etc.), and make a decision.

Table 7: Ranking in the CWE List

Rank

ID

NAME

24

CWE 190

“Integer Wraparound or Overflow”

Table 8: The Following Table Shows the Relevant Entries of This Vulnerability in the CWE List:

ID

Name

CWE 682

“Incorrect Calculation “

CWE 191

“Integer Underflow”

CWE 192

“Coercion Error”


Affected Languages

Mostly all languages are affected; however, the resulting effects differ based on how it handles the integers.

  • Dangerous languages: C, C++

Vulnerability Software Common Weakness Enumeration Database Buffer overflow Data Types sql

Opinions expressed by DZone contributors are their own.

Related

  • Goose Migrations for Smooth Database Changes
  • Restoring the MS SQL Server Database in Easy Steps
  • SQL Server to Postgres Database Migration
  • The Ongoing Battle: Is Time on the Side of Hackers or Defenders?

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!