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. Cross-Site Scripting (XSS)
B. Denial of Service (DoS)
C. Buffer Overflow
D. SQL Injection
Answer: Option A
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 does the 'HttpOnly' attribute flag instruct a web browser to do when handling a specific session cookie?
A. To prevent client-side scripts (like JavaScript) from accessing the cookie, reducing the risk of data theft via Cross-Site Scripting (XSS)
B. To delete the cookie instantly when the network switches to an alternative port path
C. To ensure the cookie only operates when accessing local intranet platforms
D. To force the web page content layout into a text-only presentation mode

Correct Answer: Option A


Explanation:
The 'HttpOnly' security flag prevents client-side scripts from reading cookie strings via properties like 'document.cookie', protecting session tokens from malicious script injection exploits.

This question belongs to: Computer Internet and Web Technologies
Question #2
Which specific browser utility or tool allows web developers to modify, inspect, and trace the active visual styles and spacing constraints of elements on a page in real time natively?
A. Elements Panel / Styles Inspector
B. Local server cache monitoring console
C. Incognito browser window frame
D. Standard bookmark navigation dashboard

Correct Answer: Option A


Explanation:
The Elements panel in browser Developer Tools provides a live, interactive view of a webpage's DOM structure and applied CSS rules, allowing developers to test design adjustments instantly on screen.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which of the following is a popular open-source web browser?
A. Edge
B. Internet Explorer
C. Firefox
D. Safari

Correct Answer: Option C


Explanation:
Mozilla Firefox is an open-source web browser developed by the Mozilla Foundation. Internet Explorer, Safari, and Edge are proprietary.

This question belongs to: Computer Internet and Web Technologies