Security
Which attack inserts malicious database commands into a web form field so that the back-end database runs them?
Show the answer
Correct answerB. SQL injection
AWhy not this: An on-path attack intercepts traffic between two parties and does not target a database.
BWhy this is right: Input containing SQL statements is run by the back-end database, which is what SQL injection does.
CWhy not this: A dictionary attack guesses passwords from a word list and does not inject any commands.
DWhy not this: XSS injects script that runs in other users' browsers, not commands that the database executes.
SQL injection places database commands in user input that the application passes to its database unfiltered, so the database runs them. Cross-site scripting is similar in delivery but runs script in a visitor's browser, not commands in the database.