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
Tandra
15 days ago
Wait, are we sure about A? That seems off.
upvoted 0 times
...
Orville
20 days ago
C makes sense, the credentials part can be tricky.
upvoted 0 times
...
Rashad
26 days ago
I think D is misleading, not all of them are exploitable.
upvoted 0 times
...
Jaime
1 month ago
A is definitely true, that's a big security risk!
upvoted 0 times
...
Lindsey
1 month ago
I vaguely recall that D could be a possibility, but I don't think all options are true. I need to think more about how credentials interact with the origin header.
upvoted 0 times
...
Cherri
1 month ago
I'm a bit confused about the implications of the headers. I thought if Access-Control-Allow-Origin is set to *, it could be risky regardless of the credentials setting.
upvoted 0 times
...
Francoise
2 months 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
2 months 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
2 months 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
2 months 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
2 months 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
2 months 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