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)- A3% (1)
- B17% (5)
- C69% (20)
- D10% (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.