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

The SecOps Group CAP Exam - Topic 5 Question 100 Discussion

Posted by Novella on Nov 23, 2025 at 05:49 PM

Based on the below HTTP request, which of the following statements is correct?

POST /changepassword HTTP/2

Host: example.com

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0

Sec-Fetch-Dest: document

Sec-Fetch-Mode: navigate

Sec-Fetch-Site: same-origin

Cookie: JSESSIONID=38RB5ECV10785B53AF29816E92E2E50

Content-Length: 95

new_password=usher!@22&confirm_password=usher!@22

Suggested Answer: C

The HTTP request is a POST to /changepassword with a session cookie (JSESSIONID) and parameters new_password and confirm_password. Let's evaluate each option:

Option A ('The change password feature does not validate the user'): The request includes a JSESSIONID cookie, which typically indicates that the user is authenticated via a session. There's no evidence that user validation is absent, so this is not correct.

Option B ('The change password feature uses basic authorization'): Basic authorization would involve an Authorization: Basic header with a Base64-encoded username and password, which is not present here. The authentication appears to be session-based (via cookie), not basic auth, so this is incorrect.

Option C ('The change password feature is vulnerable to Cross-Site Request Forgery attack'): Cross-Site Request Forgery (CSRF) occurs when a malicious site tricks a user's browser into making an unintended request to another site where the user is authenticated. This request lacks a CSRF token (e.g., a unique, unpredictable token in the request body or header) to verify the request's legitimacy. The Sec-Fetch-Site: same-origin header indicates the request is currently from the same origin, but this is a browser feature, not a server-side CSRF protection. Without a CSRF token, the endpoint is vulnerable to CSRF, as an attacker could craft a malicious form on another site to submit this request on behalf of the user. This is the correct answer.

Option D ('All of the above'): Since A and B are incorrect, D cannot be correct.

The correct answer is C, aligning with the CAP syllabus under 'Cross-Site Request Forgery (CSRF)' and 'OWASP Top 10 (A08:2021 - Software and Data Integrity Failures).'


Get Premium CAP Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
30 comments · newest first
ST
Stevie 7 months ago
Overall, D covers all bases. Better safe than sorry!
CR
Cristy 8 months ago
But what about B? Basic auth could be implied.
RE
Rebbeca 8 months ago
I agree with Makeda. Validation is crucial for security.
LA
Laurel 8 months ago
Option C stands out. CSRF is a real concern here.
LE
Leonard 8 months ago
I feel like D is the best choice. All points seem valid.
MA
Makeda 8 months ago
I think option A is correct. No user validation shown.
EL
Eladia 8 months ago
Definitely needs better security measures!
ME
Merissa 9 months ago
Wait, are we sure about D? That seems too broad.
JA
Jani 9 months ago
C seems likely, CSRF is a common issue.
BR
Britt 9 months ago
I disagree, it could validate in the backend.
AL
Alisha 10 months ago
A looks correct, no user validation shown.
FE
Felix 10 months ago
I'm feeling a bit hungry, anyone else want to grab a snack after this exam? Oh, and the answer is C, by the way.
DO
Dong 10 months ago
C) is the way to go. Gotta watch out for those CSRF attacks, they can be a real pain.
GR
Gregg 10 months ago
Haha, I bet the developer who wrote this code was having a bad day. C) is definitely the right answer.
SH
Shaunna 10 months ago
Wow, this is a tricky one. I'd say C) is the correct answer. That CSRF attack is a real security risk.
TE
Tegan 10 months ago
Could it be D? I feel like all these issues could be present, but I need to double-check my notes on that.
AB
Abraham 11 months ago
I think we had a practice question about CSRF vulnerabilities, and this request might be susceptible since it doesn't show any anti-CSRF tokens.
NI
Nickole 11 months ago
I’m not sure about B; I thought basic authorization was more about sending credentials in headers, not in the body like this.
AB
Abraham 11 months ago
I remember we discussed how important user validation is in password change requests, so A seems likely.
IZ
Izetta 11 months ago
The request body contains the new and confirm passwords, so it's clear the application is not using basic auth. I'll need to think about how the application is validating those passwords and whether there are any weaknesses in that process.
DO
Dorian 11 months ago
C) The change password feature is vulnerable to Cross-Site Request Forgery attack. That's a classic CSRF vulnerability right there.
DI
Dino 12 months ago
This is a good opportunity to apply my knowledge of common web application security vulnerabilities. I'll carefully analyze each part of the request to identify any potential issues, like weak password requirements or lack of CSRF protection.
FL
Floyd 12 months ago
Aha, the request includes a cookie, which means the application is using session-based authentication. I'll need to consider the implications of that for potential CSRF vulnerabilities.
BE
Beckie 1 year ago
Hmm, the request is using HTTP/2 and includes some security-related headers like Sec-Fetch-*. I'll need to dig deeper into what those mean and how they might impact the security of the change password feature.
MI
Miss 1 year ago
This looks like a typical change password request. I'd focus on analyzing the request headers and parameters to identify any potential security issues.
AL
Alva 7 months ago
↳ replying to Miss
All options seem concerning, especially D.
TO
Toi 7 months ago
↳ replying to Miss
True, no user validation is visible.
CO
Colene 7 months ago
↳ replying to Miss
I think it could be vulnerable to CSRF.
LO
Loren 7 months ago
↳ replying to Miss
Yeah, but what about security?
GR
Gracia 11 months ago
↳ replying to Miss
Looks like a standard request.
0/2000 characters

Save Cancel