Which of the following is a type of web attack that injects malicious scripts into web pages? MCQ with Answer and Explanation

Which of the following is a type of web attack that injects malicious scripts into web pages?
A. SQL Injection
B. Cross-Site Request Forgery (CSRF)
C. Cross-Site Scripting (XSS)
D. Phishing
Answer: Option C
Solution (By JKExamLibrary)
Cross-Site Scripting (XSS) is a vulnerability where attackers inject malicious scripts into otherwise benign websites, which are then executed in users' browsers.

This question belongs to: Computer Internet and Web Technologies

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1 Report Error
What does an 'Asymmetric Encryption' implementation use to secure web communications over HTTPS links?
A. A series of mechanical network router configuration keys
B. A single shared secret password key for both operations
C. A localized cookie token combined with basic user credentials
D. A mathematically linked key pair consisting of a Public Key and a Private Key

Correct Answer: Option D


Explanation:
Asymmetric cryptography utilizes a public key (available to everyone for data encryption) and a private key (kept secret by the server for data decryption).

This question belongs to: Computer Internet and Web Technologies
Question #2 Report Error
Which top-level domain designation (TLD) is reserved exclusively for official government entities and administrative bodies?
A. .com
B. .net
C. .org
D. .gov

Correct Answer: Option D


Explanation:
The '.gov' top-level domain is restricted solely to verified government agencies, institutional departments, and state-level operations.

This question belongs to: Computer Internet and Web Technologies
Question #3 Report Error
Which of the following is a type of web-based attack that exploits the trust a site has in a user's browser?
A. CSRF
B. Session fixation
C. Clickjacking
D. XSS

Correct Answer: Option A


Explanation:
CSRF exploits the trust a website has in the user's authenticated session, forcing the user to perform unwanted actions.

This question belongs to: Computer Internet and Web Technologies