nerdexam
CompTIA

220-1102 · Question #715

A malicious user was able to export an entire website's user database by entering specific commands into a field on the company's website. Which of the following did the malicious user most likely…

The correct answer is B. SQL injection. Extracting an entire database by entering commands into a website field is a classic sign of a SQL injection attack, which exploits vulnerabilities in a web application's database queries.

Security

Question

A malicious user was able to export an entire website's user database by entering specific commands into a field on the company's website. Which of the following did the malicious user most likely exploit to extract the data?

Options

  • ACross-site scripting
  • BSQL injection
  • CBrute-force attack
  • DDDoS attack

How the community answered

(36 responses)
  • A
    8% (3)
  • B
    83% (30)
  • C
    6% (2)
  • D
    3% (1)

Why each option

Extracting an entire database by entering commands into a website field is a classic sign of a SQL injection attack, which exploits vulnerabilities in a web application's database queries.

ACross-site scripting

Cross-site scripting (XSS) involves injecting malicious scripts into web pages viewed by other users, primarily for stealing cookies or defacing sites, not for directly exporting databases from the backend.

BSQL injectionCorrect

SQL injection occurs when an attacker inserts malicious SQL code into input fields on a web application, which is then executed by the backend database. This allows the attacker to bypass authentication, retrieve sensitive data like user databases, or even modify/delete database contents.

CBrute-force attack

A brute-force attack involves systematically trying many combinations of passwords or passphrases to guess credentials, not entering commands into a field to extract a database directly.

DDDoS attack

A Distributed Denial of Service (DDoS) attack aims to disrupt service by overwhelming a system with traffic, not to extract data from a database.

Concept tested: Web application vulnerabilities - SQL injection

Source: https://learn.microsoft.com/en-us/azure/security/fundamentals/sql-injection

Topics

#SQL injection#Web security#Database exploitation#Vulnerability

Community Discussion

No community discussion yet for this question.

Full 220-1102 Practice