CAS-001 · Question #193
Which of the following displays an example of a buffer overflow attack?
The correct answer is C. #include. The '#include' directive indicates C or C++ source code. Buffer overflow attacks are fundamentally a C/C++ vulnerability - these languages perform no automatic bounds checking on memory operations, so writing beyond an allocated buffer can overwrite adjacent memory, corrupt the…
Question
Which of the following displays an example of a buffer overflow attack?
Options
- A<SCRIPT>
- BChecksums-Sha1:7be9e9bac3882beab1abb002bb5cd2302c76c48d 1157 xfig_3.2.5.b-1.dsc
- C#include
- D<form action="/cgi-bin/login" method=post>
How the community answered
(31 responses)- B6% (2)
- C90% (28)
- D3% (1)
Explanation
The '#include' directive indicates C or C++ source code. Buffer overflow attacks are fundamentally a C/C++ vulnerability - these languages perform no automatic bounds checking on memory operations, so writing beyond an allocated buffer can overwrite adjacent memory, corrupt the stack, and allow arbitrary code execution. Buffer overflow exploits are written and demonstrated in C/C++, making '#include' the contextual indicator of this attack class. Option A ('SCRIPT') is associated with XSS. Option B is a SHA-1 checksum used for integrity verification. Option D is an HTML form tag associated with web-based attacks.
Topics
Community Discussion
No community discussion yet for this question.