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.
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)- A8% (3)
- B83% (30)
- C6% (2)
- D3% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.