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

Posted by Chaya on Mar 04, 2026 at 11:21 PM

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

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.'


Get Premium CAP Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
33 comments · newest first
CH
Chi 2 days ago
I lean towards D. All options seem valid in different contexts.
AU
Audra 7 days ago
I think A is correct. It allows any origin with credentials.
OW
Owen 12 days ago
I agree with A. Wildcard with true is risky!
LE
Letha 17 days ago
D seems too broad. Not all are exploitable.
HY
Hyun 22 days ago
I lean towards C. The credentials setting is key here.
CA
Candida 28 days ago
I think A is correct. Credentials shouldn't be allowed with wildcard.
BE
Benedict 1 month ago
I agree with A. Wildcard with true is risky!
AS
Ashton 1 month ago
D seems too broad. Not all are exploitable.
LE
Leonora 1 month ago
I lean towards C. The credentials setting is key here.
TA
Tamekia 2 months ago
I think A is correct. Credentials shouldn't be allowed with wildcard.
EL
Eleonora 2 months ago
Just to clarify, A) is a big risk!
LI
Lillian 2 months ago
D) seems too broad, not all are exploitable.
PA
Paulina 2 months ago
Wait, C) sounds off to me. How can it be irrelevant?
CL
Clay 2 months ago
I think B) is misleading.
KA
Kayleigh 2 months ago
A) is definitely true!
MA
Maurine 3 months ago
C) is interesting, but I’m not sure it’s accurate.
CE
Celeste 3 months ago
D) seems too broad, not all cases are exploitable.
RU
Rutha 3 months ago
Wait, how can Access-Control-Allow-Origin: * be safe at all?
AL
Alton 3 months ago
I think CORS misconfigurations are often overlooked.
CY
Cyndy 3 months ago
A) is definitely a problem!
JA
Jaime 4 months ago
B is just wrong, credentials being false is safer.
TA
Tandra 5 months ago
Wait, are we sure about A? That seems off.
OR
Orville 5 months ago
C makes sense, the credentials part can be tricky.
RA
Rashad 5 months ago
I think D is misleading, not all of them are exploitable.
JA
Jaime 6 months ago
A is definitely true, that's a big security risk!
LI
Lindsey 6 months 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.
CH
Cherri 6 months 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.
FR
Francoise 6 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.
JE
Jennifer 6 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.
DO
Domonique 6 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.
NI
Nickie 7 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.
LE
Leota 7 months ago
I think I saw a practice question that mentioned the implications of Access-Control-Allow-Credentials being true with a wildcard origin.
CR
Cristal 7 months ago
I remember studying that if Access-Control-Allow-Origin is set to *, it can be risky, especially with credentials.
0/2000 characters

Save Cancel