Exam CS0-003 All QuestionsBrowse all questions from this exam
Question 95

While reviewing web server logs, a security analyst found the following line:

< IMG SRC='vbscript:msgbox("test")' >

Which of the following malicious activities was attempted?

    Correct Answer: D

    The line provided in the web server logs shows an attempt to inject a VBScript snippet within an IMG tag. This form of injection is characteristic of Cross-site scripting (XSS) attacks, where attackers inject malicious scripts (in this case, VBScript) into web pages. When users view these pages, the script is executed in their browsers, potentially leading to various malicious outcomes. This scenario clearly aligns with the definition of cross-site scripting.

Discussion
kmordalvOption: D

Correct The provided line is an example of a cross-site scripting (XSS) attack. In an XSS attack, malicious code is injected into a web application, and when other users view the page containing this code, the injected code is executed in their browsers. In this case, the code attempts to execute a VBScript message box with the text "test".

chaddmanOption: D

D. Cross-site scripting (XSS) The line you provided is an example of a cross-site scripting (XSS) attempt. In XSS attacks, an attacker injects malicious code, typically JavaScript, into a web application. When this code is executed by a victim's browser, it can perform various actions, such as displaying pop-up messages (as in the "msgbox("test")" part of the code), stealing user data, or performing other malicious activities. In this case, it's attempting to display a message box with the text "test."

maggie22Option: D

< IMG SRC='vbscript:msgbox("test")' > attempts to inject a VBScript code snippet (vbscript:msgbox("test")) into an HTML IMG tag's source attribute.

Frog_ManOption: D

I used Google and it verified XSS.