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 9 Question 104 Discussion

Actual exam question for The SecOps Group's CAP exam
Question #: 104
Topic #: 9
[All CAP Questions]

In the context of the CORS (Cross-origin resource sharing) misconfiguration, which of the following statements is true?

Show Suggested Answer Hide Answer
Suggested Answer: A

CORS (Cross-Origin Resource Sharing) is a mechanism that allows servers to specify which origins can access their resources, enhancing security for cross-origin requests. A common misconfiguration occurs with the Access-Control-Allow-Origin and Access-Control-Allow-Credentials headers. When Access-Control-Allow-Origin is set to * (wildcard, allowing all origins), it permits any domain to make requests. However, if Access-Control-Allow-Credentials is set to true (allowing credentials like cookies or HTTP authentication), this creates a security risk. Browsers will block such requests because sending credentials with a wildcard origin violates CORS security policies, but an attacker could exploit this misconfiguration to trick a victim's browser into making unauthorized requests if other controls are absent.

Option A is correct because the combination of Access-Control-Allow-Origin: * and Access-Control-Allow-Credentials: true is exploitable, as it enables potential credential leakage or unauthorized access. Option B is incorrect because Access-Control-Allow-Credentials: false disables credential sending, reducing exploitability. Option C is incorrect because the value of Access-Control-Allow-Credentials is not irrelevant; it must be false with a wildcard origin to comply with security standards. Option D ('All of the above') is incorrect as only A holds true. This is a key topic in the CAP syllabus under 'CORS Misconfiguration' and 'Client-Side Security.'


Contribute your Thoughts:

0/2000 characters
Francoise
24 hours ago
I feel like I came across a similar question in practice exams. I think C might be correct because the credentials header can change the behavior of CORS.
upvoted 0 times
...
Jennifer
6 days ago
I remember studying that CORS can be tricky, especially with the credentials setting. I think A might be the right answer, but I'm not completely sure.
upvoted 0 times
...
Domonique
11 days ago
I recall that the Access-Control-Allow-Credentials header can change the security implications, but I can't remember how it interacts with the wildcard origin.
upvoted 0 times
...
Nickie
16 days ago
I'm not entirely sure, but I feel like option A might be the right answer since it combines both headers in a problematic way.
upvoted 0 times
...
Leota
22 days ago
I think I saw a practice question that mentioned the implications of Access-Control-Allow-Credentials being true with a wildcard origin.
upvoted 0 times
...
Cristal
27 days ago
I remember studying that if Access-Control-Allow-Origin is set to *, it can be risky, especially with credentials.
upvoted 0 times
...

Save Cancel