Computer AwarenessHardIBPS SO IT Officer
Typing ' OR '1'='1 into the password box of a poorly written login page logs the attacker in without a password. Which attack is this?
- A. Cross-site scripting
- B. SQL injection
- C. Buffer overflow
- D. Brute-force attack
Correct answer: B. SQL injection
The input changes the meaning of the SQL query so its WHERE condition is always true. Parameterised queries prevent this; cross-site scripting injects browser scripts instead.
हिंदी में
किसी खराब ढंग से लिखे गए लॉगिन पेज के पासवर्ड बॉक्स में ' OR '1'='1 टाइप करने से हमलावर बिना पासवर्ड के लॉग इन हो जाता है। यह कौन-सा हमला है?
- A. क्रॉस-साइट स्क्रिप्टिंग
- B. SQL इंजेक्शन
- C. बफ़र ओवरफ़्लो
- D. ब्रूट-फ़ोर्स अटैक
उत्तर: B. इनपुट SQL क्वेरी का अर्थ बदल देता है, जिससे उसकी WHERE शर्त सदा सत्य हो जाती है। पैरामीटरयुक्त क्वेरी इसे रोकती हैं; क्रॉस-साइट स्क्रिप्टिंग इसके बजाय ब्राउज़र स्क्रिप्ट डालती है।
More Computer Awareness questions
- An attacker posts a comment containing JavaScript on a forum, and the script then runs in the browser of everyone who views that page…
- On a café's open Wi-Fi, an attacker secretly relays all traffic between a customer and her bank, reading and changing it on the way. This…
- A machine can try 1000 PINs per second. In the worst case, about how long does it take to find a 6-digit numeric PIN by trying every…
- How does an intrusion prevention system (IPS) differ from an intrusion detection system (IDS)?
- A security team sets up a deliberately weak-looking decoy server, with no real data, to attract attackers and study their methods. It is a:
- A full backup is taken every Sunday night and an INCREMENTAL backup every other night. The disk fails on Thursday morning. Which backups…