nerdexam
EC-Council

312-38 · Question #1

John works as a C programmer. He develops the following C program: His program is vulnerable to a __________ attack.

The correct answer is C. Buffer overflow. This program takes a user-supplied string and copies it into 'buffer1', which can hold up to 10 bytes of data. If a user sends more than 10 bytes, it would result in a buffer overflow.

Network Security Threats, Attacks, and Vulnerabilities

Question

John works as a C programmer. He develops the following C program: His program is vulnerable to a __________ attack.

Options

  • ASQL injection
  • BDenial-of-Service
  • CBuffer overflow
  • DCross site scripting

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    17% (5)
  • C
    69% (20)
  • D
    10% (3)

Explanation

This program takes a user-supplied string and copies it into 'buffer1', which can hold up to 10 bytes of data. If a user sends more than 10 bytes, it would result in a buffer overflow.

Topics

#buffer overflow#C programming#memory vulnerability#application security

Community Discussion

No community discussion yet for this question.

Full 312-38 Practice