Which type of software vulnerability involves an attacker injecting malicious scripts into trusted websites, which are then executed by unsuspecting client web browsers? MCQ with Answer and Explanation

Which type of software vulnerability involves an attacker injecting malicious scripts into trusted websites, which are then executed by unsuspecting client web browsers?
A. Buffer Overflow
B. SQL Injection
C. Denial of Service (DoS)
D. Cross-Site Scripting (XSS)
Answer: Option D
Solution (By JKSSB Mock Tests)
Cross-Site Scripting (XSS) is a security vulnerability where malicious script blocks are injected into reliable web templates, running malicious scripts directly inside client browsers.

Discuss this Question (0)

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

Practice More Internet and Web Technologies Questions

Question #1
What is the role of a web-based application firewall (WAF)?
A. To provide load balancing
B. To accelerate content delivery
C. To manage DNS
D. To filter and monitor HTTP traffic to protect web applications

Correct Answer: Option D


Explanation:
A WAF specifically monitors and filters HTTP traffic, blocking malicious requests, and protecting against common web vulnerabilities.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which HTTP status code indicates a client error (bad request)?
A. 403
B. 400
C. 404
D. 401

Correct Answer: Option B


Explanation:
400 Bad Request indicates that the server cannot process the request due to malformed syntax or invalid parameters. 401 is Unauthorized, 403 Forbidden, 404 Not Found.

This question belongs to: Computer Internet and Web Technologies
Question #3
What mechanism does an online payment web application implement over HTTPS routes to substitute sensitive credit card numbers with secure, randomized reference tokens during financial transactions?
A. Altering localized device hardware MAC address registries
B. Tokenization
C. Static FTP file catalog adjustments
D. Running outbound SMTP mail server delivery routines

Correct Answer: Option B


Explanation:
Tokenization swaps sensitive primary account numbers with algorithmic token strings, protecting original financial data from interception during online payment processing.

This question belongs to: Computer Internet and Web Technologies