350-701 · Question #785
What is a difference between SQL injection and buffer overflow attacks?
The correct answer is B. SQL injection targets databases, and buffer overflow targets applications. SQL injection attacks target databases by manipulating queries, whereas buffer overflow attacks exploit vulnerabilities in applications to overwrite memory.
Question
Options
- ASQL injection reads data from memory, and buffer overflow inserts data into memory.
- BSQL injection targets databases, and buffer overflow targets applications.
- CSQL injection targets websites, and buffer overflow targets software.
- DSQL injection requires only remote access, and buffer overflow needs local access
How the community answered
(37 responses)- A11% (4)
- B81% (30)
- C3% (1)
- D5% (2)
Why each option
SQL injection attacks target databases by manipulating queries, whereas buffer overflow attacks exploit vulnerabilities in applications to overwrite memory.
SQL injection manipulates database queries to extract or modify data, not directly read from the application's memory; buffer overflow involves writing beyond a buffer, which overwrites adjacent memory.
SQL injection attacks exploit vulnerabilities in input fields of web applications to insert malicious SQL code, primarily targeting the underlying database to read, modify, or delete data. Buffer overflow attacks occur when a program writes data beyond the allocated buffer in memory, often leading to execution of arbitrary code within the application's process space.
While SQL injection often targets web applications interacting with databases, and buffer overflows can target various software, stating SQL injection targets 'websites' and buffer overflow targets 'software' is less precise than specifying the components they exploit.
Both SQL injection and buffer overflow attacks can often be executed remotely without needing local access to the target system.
Concept tested: Differences between SQL injection and buffer overflow
Source: https://www.microsoft.com/en-us/security/blog/2023/07/20/understanding-and-mitigating-buffer-overflow-vulnerabilities/
Topics
Community Discussion
No community discussion yet for this question.