nerdexam
Cisco

350-701 · Question #173

An organization has two machines hosting web applications. Machine 1 is vulnerable to SQL injection while machine 2 is vulnerable to buffer overflows. What action would allow the attacker to gain…

The correct answer is D. inserting malicious commands into the database. To gain access to Machine 1, which is vulnerable to SQL injection, an attacker would exploit its specific vulnerability by inserting malicious commands into its database, while this action would not affect Machine 2.

Submitted by sofia.br· Mar 30, 2026Security Concepts

Question

An organization has two machines hosting web applications. Machine 1 is vulnerable to SQL injection while machine 2 is vulnerable to buffer overflows. What action would allow the attacker to gain access to machine 1 but not machine 2?

Options

  • Asniffing the packets between the two hosts
  • Bsending continuous pings
  • Coverflowing the buffer's memory
  • Dinserting malicious commands into the database

How the community answered

(48 responses)
  • A
    4% (2)
  • B
    2% (1)
  • C
    13% (6)
  • D
    81% (39)

Why each option

To gain access to Machine 1, which is vulnerable to SQL injection, an attacker would exploit its specific vulnerability by inserting malicious commands into its database, while this action would not affect Machine 2.

Asniffing the packets between the two hosts

Sniffing packets is a passive reconnaissance technique that captures data in transit and does not directly exploit a SQL injection vulnerability to gain access.

Bsending continuous pings

Sending continuous pings is a denial-of-service technique or for network reachability testing, not an exploit for SQL injection or buffer overflows to gain access.

Coverflowing the buffer's memory

Overflowing the buffer's memory is the specific exploit for a buffer overflow vulnerability, which applies to Machine 2, not Machine 1's SQL injection vulnerability.

Dinserting malicious commands into the databaseCorrect

Inserting malicious commands into the database is the direct method for exploiting an SQL injection vulnerability, specifically targeting Machine 1's web application and its backend database. This action is unrelated to buffer overflows and thus would not affect Machine 2.

Concept tested: SQL injection attack principle

Source: https://www.owasp.org/www-project-top-ten/2017/A1_2017-Injection

Topics

#SQL injection#vulnerability exploitation#web application attacks#attack vectors

Community Discussion

No community discussion yet for this question.

Full 350-701 Practice