General KnowledgeHardSSC CGL Tier 2 · IBPS SO

An attacker types database commands into a website's login box so that the site's database reveals or changes data. This attack is called:

  1. A. Cross-site scripting
  2. B. SQL injection
  3. C. Session hijacking
  4. D. Phishing

Correct answer: B. SQL injection

SQL injection exploits input that is passed unchecked into database queries. Cross-site scripting injects scripts that run in other users' browsers.

हिंदी में

कोई हमलावर किसी वेबसाइट के लॉगिन बॉक्स में डेटाबेस कमांड लिखता है ताकि साइट का डेटाबेस डेटा उजागर करे या बदल दे। इस हमले को क्या कहते हैं?

  1. A. क्रॉस-साइट स्क्रिप्टिंग
  2. B. SQL इंजेक्शन
  3. C. सेशन हाइजैकिंग
  4. D. फ़िशिंग

उत्तर: B. SQL इंजेक्शन उस इनपुट का फ़ायदा उठाता है जो बिना जाँच के डेटाबेस क्वेरी में पहुँच जाता है। क्रॉस-साइट स्क्रिप्टिंग ऐसी स्क्रिप्टें डालती है जो अन्य उपयोगकर्ताओं के ब्राउज़र में चलती हैं।

More Science and Technology (Space, Defence, IT) questions

Exams that ask this topic