Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

The SecOps Group CAP Exam - Topic 19 Question 105 Discussion

Posted by Van on Apr 02, 2026 at 04:30 PM

In the screenshot below, which of the following is incorrect?

Target: https://example.com

HTTP/1.1 404 Not Found

Date: Fri, 09 Dec 2022 18:03:49 GMT

Server: Apache

Vary: Cookie

X-Powered-By: PHP/5.4.5-5

X-Xss-Protection: 1; mode=block

X-Content-Type-Options: nosniff

Content-Length: 0

Content-Type: text/html; charset=UTF-8

Cookie: JSESSIONID=1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789; secure; HttpOnly; SameSite=None

Suggested Answer: A

The screenshot shows an HTTP response header from https://example.com with a 404 status. Let's evaluate each option:

Option A ('The application discloses the framework name and version'): The X-Powered-By: PHP/5.4.5-5 header reveals the server is running PHP version 5.4.5-5, which is a security risk as it exposes the framework and version. This information can help attackers identify known vulnerabilities, making A incorrect (i.e., it is a problem).

Option B ('The application reveals user-agent details'): The response does not include user-agent details; it only shows the server's configuration. User-agent details are part of the request, not the response, so this is incorrect (not a problem here).

Option C ('A cookie is set with HttpOnly and a Secure flag'): The Cookie header includes HttpOnly and Secure attributes, which are best practices to prevent JavaScript access and ensure transmission over HTTPS, respectively. This is correct behavior, so it is not incorrect.

Option D ('The application accepts insecure protocol'): The response uses https://, indicating a secure protocol (TLS), and there's no evidence of accepting insecure protocols like HTTP. This is not incorrect.

Thus, the incorrect statement is A, as disclosing the framework name and version via X-Powered-By is a security misconfiguration. This aligns with the CAP syllabus under 'Security Headers' and 'Information Disclosure.'


Get Premium CAP Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
LE
Leonardo 3 months ago
I see your point, but C is actually correct. HttpOnly and Secure flags are good practices.
JA
Jacob 3 months ago
I agree, but I feel option D is the real issue. It accepts insecure protocols.
CU
Curtis 3 months ago
I think option B is incorrect. No user-agent details are shown.
RE
Rene 3 months ago
D) seems off, but I don't see any insecure protocol mentioned.
RO
Romana 3 months ago
Wait, how is there a 404 but still a cookie?
DO
Dorthy 4 months ago
B) is wrong, no user-agent details here.
CE
Ceola 5 months ago
Totally agree, that's a security risk!
LA
Lashaunda 5 months ago
A) is correct, it shows the framework version.
PH
Phillip 6 months ago
I keep getting confused about the protocols, but I think option D might be the answer since a 404 error usually means the resource isn’t found, not necessarily about the protocol used.
CA
Cassi 6 months ago
I practiced a similar question where we had to identify security headers, and I think option C is actually correct because HttpOnly and Secure flags are good practices.
AN
Angella 6 months ago
I'm not entirely sure, but I feel like option B is also a possibility since it mentions user-agent details, which might not be in the response.
HU
Hui 6 months ago
I remember we discussed how revealing the framework name and version can be a security risk, so I think option A is the incorrect one.
0/2000 characters

Save Cancel