What type of software vulnerability occurs when untrusted user code commands are output directly into another user’s browser view, enabling script injection exploits? MCQ with Answer and Explanation

What type of software vulnerability occurs when untrusted user code commands are output directly into another user’s browser view, enabling script injection exploits?
A. SQL Injection
B. Buffer Overflow
C. Cross-Site Scripting (XSS)
D. Zero-Day Exploit
Answer: Option C
Solution (By JKSSB Mock Tests)
XSS allows threat actors to execute malicious client-side scripts inside other users' browser views by compromising vulnerable web outputs.

Discuss this Question (0)

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

Practice More Cyber Security Questions

Question #1
What form of malware creates a secret communications link back to an attacker's control server, allowing them to remotely manipulate and spy on the victim's machine?
A. Logic Bomb Module
B. Adware Component
C. Macro Virus String
D. Remote Access Trojan (RAT)

Correct Answer: Option D


Explanation:
A RAT is a specialized Trojan variant that establishes an unauthorized administrative control channel, giving remote threat actors full command over infected endpoints.

This question belongs to: Computer Cyber Security
Question #2
Which protocol establishes a secure, encrypted data corridor across public networks, shielding a client device's data traffic from local network interception?
A. Intrusion Detection Module
B. Proxy Gateway Server
C. Virtual Private Network (VPN)
D. Firewall Layer

Correct Answer: Option C


Explanation:
VPNs establish encrypted tunnels over public networks, shielding active data data traffic from interception or monitoring.

This question belongs to: Computer Cyber Security
Question #3
An attacker uses a network configuration trick to intercept wireless session cookies, letting them access a corporate web account without needing the user's password. This exploit is:
A. SQL Injection Exploit
B. Brute Force Attack
C. Session Hijacking
D. IP Header Spoofing

Correct Answer: Option C


Explanation:
Session hijacking captures live authentication tokens or active session state cookies, enabling attackers to bypass authentication gateways and impersonate victims.

This question belongs to: Computer Cyber Security