nerdexam
GIAC

GCIH · Question #170

Which of the following is the most common vulnerability that can affect desktop applications written in native code?

The correct answer is D. Buffer overflow. Buffer overflow is the most prevalent vulnerability in native code (C/C++) desktop applications because those languages allow direct memory access without automatic bounds checking.

Vulnerability Exploitation & Privilege Escalation

Question

Which of the following is the most common vulnerability that can affect desktop applications written in native code?

Options

  • ASpyWare
  • BDDoS attack
  • CMalware
  • DBuffer overflow

How the community answered

(25 responses)
  • A
    4% (1)
  • D
    96% (24)

Why each option

Buffer overflow is the most prevalent vulnerability in native code (C/C++) desktop applications because those languages allow direct memory access without automatic bounds checking.

ASpyWare

Spyware is a category of malware that covertly collects user data - it is a threat tool delivered by attackers, not a coding vulnerability inherent to how native code applications are written.

BDDoS attack

A DDoS attack is a network-based availability attack that overwhelms services with traffic and is not a programming vulnerability specific to desktop applications written in native code.

CMalware

Malware is a broad term for malicious software and represents an external threat, not a vulnerability class that emerges from the coding practices of native code application development.

DBuffer overflowCorrect

A buffer overflow occurs when a program writes more data to a fixed-size memory buffer than it can hold, causing adjacent memory to be overwritten and potentially allowing an attacker to execute arbitrary code. This vulnerability is endemic to native code languages like C and C++ that perform no automatic boundary enforcement, making it the most historically common and critical flaw in such applications.

Concept tested: Buffer overflow vulnerability in native code

Source: https://owasp.org/www-community/vulnerabilities/Buffer_Overflow

Topics

#buffer overflow#native code#memory corruption#desktop vulnerabilities

Community Discussion

No community discussion yet for this question.

Full GCIH Practice