exam questions

Exam CS0-003 All Questions

View all questions & answers for the CS0-003 exam

Exam CS0-003 topic 1 question 95 discussion

Actual exam question from CompTIA's CS0-003
Question #: 95
Topic #: 1
[All CS0-003 Questions]

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?

  • A. Command injection
  • B. XML injection
  • C. Server-side request forgery
  • D. Cross-site scripting
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kmordalv
Highly Voted 1 year, 8 months ago
Selected Answer: 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".
upvoted 10 times
...
voiddraco
Most Recent 8 months, 4 weeks ago
D, IMG SRC= is HTML and Cross-site scripting (XSS) injects code into a web app
upvoted 2 times
...
maggie22
10 months, 4 weeks ago
Selected Answer: D
< IMG SRC='vbscript:msgbox("test")' > attempts to inject a VBScript code snippet (vbscript:msgbox("test")) into an HTML IMG tag's source attribute.
upvoted 3 times
...
Frog_Man
1 year, 6 months ago
I used Google and it verified XSS.
upvoted 3 times
...
chaddman
1 year, 6 months ago
Selected Answer: 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."
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago