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?

  1. A. Cross-site scripting
  2. B. SQL injection
  3. C. Buffer overflow
  4. 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 टाइप करने से हमलावर बिना पासवर्ड के लॉग इन हो जाता है। यह कौन-सा हमला है?

  1. A. क्रॉस-साइट स्क्रिप्टिंग
  2. B. SQL इंजेक्शन
  3. C. बफ़र ओवरफ़्लो
  4. D. ब्रूट-फ़ोर्स अटैक

उत्तर: B. इनपुट SQL क्वेरी का अर्थ बदल देता है, जिससे उसकी WHERE शर्त सदा सत्य हो जाती है। पैरामीटरयुक्त क्वेरी इसे रोकती हैं; क्रॉस-साइट स्क्रिप्टिंग इसके बजाय ब्राउज़र स्क्रिप्ट डालती है।

More Computer Awareness questions

Exams that ask this topic