
EC-CouncilWeb Application Hacking and Security
Domain 1Objective 5
CORS Misconfiguration WAHS Practice Questions (Page 6)
Part of the Broken Access Control domain, which makes up ~23% of our current practice bank. EC-Council does not publish an official question count, but from its 360-minute exam (~145–240 total, ~33–55 in this domain), expect 7–11 from this objective — we provide 33 practice questions to prepare you well beyond it. (estimate)
33questions here
7free pages
6concepts
Questions 26–30
- 26
A company has an API that supports both a public mobile app and a web dashboard. The mobile app does not use cookies; it uses an API key in a custom header. The web dashboard uses cookies. The current CORS configuration reflects any Origin and sets Access-Control-Allow-Credentials: true. The company wants to fix the vulnerability without breaking the mobile app. What is the best approach?
Select an answer first - 27
A security analyst is investigating a report that a user's profile data was stolen from a web application. The application reflects any Origin header in Access-Control-Allow-Origin and sets Access-Control-Allow-Credentials to true. The user was logged in and visited a malicious site. How did the attacker most likely steal the data?
Select an answer first - 28
A developer wants to securely allow a single trusted partner domain to access an API. Which CORS configuration is the most appropriate?
Select an answer first - 29
A developer configures the server to reflect any Origin header value in the Access-Control-Allow-Origin response header. Which CORS misconfiguration pattern does this represent?
Select an answer first - 30
A security team is performing a risk assessment of a web application that uses cookie-based authentication. They find that the API reflects any Origin header and sets Access-Control-Allow-Credentials to true. Which impact best describes the risk to the application?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “WAHS” is a trademark of its owner, used for identification only.