What type of software vulnerability allows attackers to inject malicious client-side scripts into web pages viewed by other users, bypassing browser security controls? MCQ with Answer and Explanation

What type of software vulnerability allows attackers to inject malicious client-side scripts into web pages viewed by other users, bypassing browser security controls?
A. Cross-Site Scripting (XSS)
B. Buffer Overflow
C. SQL Injection
D. Zero-Day Exploit
Answer: Option A
Solution (By JKSSB Mock Tests)
XSS vulnerabilities occur when web applications include unvalidated data in web outputs, allowing threat actors to inject malicious scripts into a victim's browser session.

Discuss this Question (0)

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

Practice More Cyber Security Questions

Question #1
Which of the following is a type of malware that can record keystrokes?
A. Worm
B. Adware
C. Keylogger
D. Ransomware

Correct Answer: Option C


Explanation:
A keylogger is a type of malware that records every keystroke made on a device, capturing sensitive information like passwords and credit card numbers.

This question belongs to: Computer Cyber Security
Question #2
Which of the following is a method to prevent SQL injection attacks?
A. Installing antivirus
B. Using a firewall
C. Using parameterized queries
D. Using strong passwords

Correct Answer: Option C


Explanation:
Parameterized queries are a programming technique that prevents SQL injection by treating user input as data, not as part of the SQL command.

This question belongs to: Computer Cyber Security
Question #3
Which of the following is a type of malware that replicates by attaching itself to other programs?
A. Trojan
B. Spyware
C. Worm
D. Virus

Correct Answer: Option D


Explanation:
A virus is a type of malware that attaches itself to a host program or file and replicates when that program is executed, spreading to other files.

This question belongs to: Computer Cyber Security