Computer Science · Web Security
A malicious user tries to enter the text ' OR '1'='1' -- into the password field of a web application login page. What is this type of attack, and what is the primary defense against it?
- 1Denial-of-Service (DoS); defended by implementing a network firewall
- 2Brute Force Attack; defended by enforcing strong password policies
- 3SQL Injection; defended by using Prepared Statements and Parameterized Queries✓
- 4Cross-Site Scripting (XSS); defended by using HTTPS
Correct answer
SQL Injection; defended by using Prepared Statements and Parameterized Queries
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Web Security?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Web Security