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 61 Discussion

Posted by Ettie on Jun 26, 2026 at 10:35 AM

A security analyst noticed the following entry on a web server log:

Warning: fopen (http://127.0.0.1:16) : failed to open stream:

Connection refused in /hj/var/www/showimage.php on line 7

Which of the following malicious activities was most likely attempted?

Suggested Answer: C

The malicious activity that was most likely attempted is SSRF (Server-Side Request Forgery). This is a type of attack that exploits a vulnerable web application to make requests to other resources on behalf of the web server. In this case, the attacker tried to use the fopen function to access the local loopback address (127.0.0.1) on port 16, which could be a service that is not intended to be exposed to the public. The connection was refused, indicating that the port was closed or filtered. Reference: CompTIA CySA+ Study Guide: Exam CS0-003, 3rd Edition, Chapter 2: Software and Application Security, page 66.


Get Premium CS0-003 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
27 comments · newest first
MI
Micah 16 days ago
Exactly! The warning indicates a failed attempt to connect.
RI
Ricki 22 days ago
I’m with Alice. SSRF is the best choice based on the log.
BO
Bobbie 27 days ago
True, XSS doesn’t fit either. No script injection shown.
MI
Micah 1 month ago
CSRF is unlikely here. No user interaction involved.
KR
Kristian 1 month ago
But the connection refused suggests SSRF. No access to local server.
CH
Cherry 1 month ago
I lean towards RCE. Could be an attempt to execute code.
FA
Fabiola 2 months ago
Yeah, SSRF makes sense. Trying to access internal resources.
ED
Edgar 2 months ago
I think it's SSRF. The log shows a local request.
LA
Lashawna 2 months ago
XSS doesn’t fit this context at all.
DO
Dorsey 2 months ago
I’m leaning towards SSRF too. Good reasoning!
DE
Dell 2 months ago
Yeah, the URL suggests it's trying to exploit server-side.
JU
Jules 2 months ago
RCE seems too far-fetched for this log.
CE
Cecil 3 months ago
But the warning points to SSRF clearly.
WI
Willis 3 months ago
I feel like CSRF could be a trick option.
BE
Beckie 3 months ago
Agreed, SSRF makes sense here.
PH
Phillip 3 months ago
I think it's SSRF. Trying to access internal resources.
SH
Shay 3 months ago
Definitely. Connection refused indicates an issue.
LA
Laquanda 3 months ago
This log entry looks suspicious.
FR
Francis 4 months ago
I'm surprised it even got logged like that!
LY
Lynelle 4 months ago
Definitely SSRF, no doubt about it.
VI
Vicky 4 months ago
Wait, could it be RCE instead?
AN
Annice 4 months ago
Totally agree, that IP is local!
IL
Iluminada 4 months ago
Looks like a classic SSRF attempt.
ZO
Zona 5 months ago
I don’t think it’s XSS or CSRF, but SSRF makes sense here. The connection refused part seems key to that.
VI
Vincenza 5 months ago
I’m a bit confused; could this also be related to RCE? I feel like I need to review those concepts again.
NO
Novella 5 months ago
I remember practicing a question about SSRF, and it involved similar log entries. This seems like it could be the right answer.
PA
Paulina 5 months ago
I think this might be related to SSRF since it’s trying to access a local resource, but I'm not entirely sure.
0/2000 characters

Save Cancel