arrow
arrow
arrow
Which of the following web application attacks involves injecting malicious scripts into trusted websites to target users?
Question



Which of the following web application attacks involves injecting malicious scripts into trusted websites to target users?

A.

Cross-Site Request Forgery (CSRF)

B.

Injection Attacks

C.

Cross-Site Scripting (XSS)

D.

Distributed Denial-of-Service (DDoS)

E.

Brute Force Attack

Correct option is C

Cross-Site Scripting (XSS) involves injecting malicious scripts into websites to compromise users by making them execute unwanted scripts.
Important Key Points:
1. XSS is a client-side attack, affecting users through their web browsers.
2. It typically happens when user input is not sanitized properly before being included in a web page.
3. Attackers use XSS to steal cookies, session tokens, or perform actions on behalf of the user.
Knowledge Booster
· CSRF: Forces users to execute unwanted actions without their consent on websites where they are authenticated.
· Injection Attacks: Occurs when malicious code is injected into web applications (e.g., SQL, XML).
· DDoS: Overwhelms a server with requests, causing it to become unavailable.
· Brute Force: Involves repeated trial and error to guess login credentials.

Free Tests

Free
Must Attempt
Video Solutions

RBI Assistant Pre 2026 Full Mock Test -01

languageIcon English
  • pdpQsnIcon100 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon60 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Asst Prelims 2026 : Reasoning Section Test 01

languageIcon English
  • pdpQsnIcon35 Questions
  • pdpsheetsIcon35 Marks
  • timerIcon20 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Office Attendant 2026 Full Mock Test - 01

languageIcon English
  • pdpQsnIcon120 Questions
  • pdpsheetsIcon120 Marks
  • timerIcon90 Mins
languageIcon English
test-prime-package

Access ‘IBPS SO IT Officer’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
354k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow