BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA CS0-003 Exam - Topic 3 Question 49 Discussion

Posted by Sabine on Nov 22, 2025 at 05:27 PM

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

Which of the following malicious activities was attempted?

Suggested Answer: D

XSS is a type of web application attack that exploits the vulnerability of a web server or browser to execute malicious scripts or commands on the client-side. XSS attackers inject malicious code, such as JavaScript, VBScript, HTML, or CSS, into a web page or application that is viewed by other users.The malicious code can then access or manipulate the user's session, cookies, browser history, or personal information, or perform actions on behalf of the user, such as stealing credentials, redirecting to phishing sites, or installing malware12

The line in the web server log shows an example of an XSS attack using VBScript. The attacker tried to insert an <IMG> tag with a malicious SRC attribute that contains a VBScript code. The VBScript code is intended to display a message box with the text ''test'' when the user views the web page or application.This is a simple and harmless example of XSS, but it could be used to test the vulnerability of the web server or browser, or to launch more sophisticated and harmful attacks3


Get Premium CS0-003 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
30 comments · newest first
RE
Reiko 7 months ago
D) Cross-site scripting is the best choice. The context fits perfectly.
MI
Mira 8 months ago
I feel like A is a possibility, but D is more likely here.
LE
Leonida 8 months ago
No way, it's definitely D. The message box indicates XSS.
HA
Harris 8 months ago
I was leaning towards A) Command injection. It seems like it could be that too.
AD
Adolph 8 months ago
Agreed, D makes sense. The script tag is a giveaway.
LI
Lillian 8 months ago
Not so sure about that, could be something else too.
LA
Laurel 8 months ago
Totally agree, it's XSS for sure.
PA
Pa 9 months ago
I think it's more like command injection.
TE
Tequila 9 months ago
D) Cross-site scripting, no doubt. Gotta love those creative hackers and their little tricks.
EL
Elmer 9 months ago
I'd go with D) Cross-site scripting on this one. Looks like someone's trying to get a little too creative with their web server logs.
AR
Arthur 10 months ago
Haha, someone's trying to pull off a little D) Cross-site scripting action, eh? Classic.
JA
Jarod 10 months ago
A) Command injection? Nah, this looks more like a case of D) Cross-site scripting to me.
TH
Thomasena 10 months ago
D) Cross-site scripting, definitely. That's a classic XSS attack right there.
MA
Maybelle 10 months ago
I practiced a question like this, and I think the answer is definitely A) Command injection, but I could be wrong.
HO
Hoa 10 months ago
This looks like a classic case of XSS, but I wonder if it could also be interpreted as something else.
CO
Cordie 10 months ago
I'm not entirely sure, but I remember something about command injection being similar.
LO
Lonny 11 months ago
Easy one! Cross-site scripting (XSS) all the way. The `vbscript:` prefix is a dead giveaway.
ID
Idella 11 months ago
I'm a bit confused here. Isn't command injection more about executing arbitrary system commands? This seems more like a client-side attack.
RE
Renato 11 months ago
Definitely going with D) Cross-site scripting. The `msgbox("test")` function call is a classic XSS payload.
JO
Jose 11 months ago
I think this might be related to Cross-site scripting since it involves injecting a script.
GE
Gene 11 months ago
I think it's D) Cross-site scripting. Looks like an XSS attempt.
MA
Mammie 12 months ago
Surprised to see that in logs! Is that really a thing?
LA
Lai 12 months ago
That's definitely a cross-site scripting attempt.
JA
Janey 1 year ago
I'm not too sure about this one. Could it also be a server-side request forgery (SSRF) attack? The `SRC` attribute seems a bit suspicious.
LI
Lili 1 year ago
Hmm, this looks like a cross-site scripting (XSS) attempt. The `vbscript:` prefix is a clear giveaway.
GE
Genevieve 7 months ago
↳ replying to Lili
Good catch! XSS can be really damaging.
HE
Heike 7 months ago
↳ replying to Lili
We need to sanitize inputs better to prevent this.
JE
Jerry 7 months ago
↳ replying to Lili
I wonder how many sites are vulnerable to this.
FR
Francene 7 months ago
↳ replying to Lili
Agreed! It's a classic XSS attack.
OZ
Ozell 11 months ago
↳ replying to Lili
Definitely looks like XSS to me. That `vbscript:` is suspicious.
0/2000 characters

Save Cancel