
EC-CouncilWeb Application Hacking and Security
Domain 1Objective 5
CORS Misconfiguration WAHS Practice Questions (Page 1)
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 1–5
- 1
An attacker controls a malicious website at https://evil.example. The target site https://bank.example reflects any Origin header in Access-Control-Allow-Origin and also sets Access-Control-Allow-Credentials: true. What can the attacker's website do to a victim who is logged into bank.example?
Select an answer first - 2
A security analyst is investigating a report that a user's profile data was stolen. The attacker's JavaScript sent a fetch request to https://api.socialapp.com/profile with credentials: 'include'. The server responded with Access-Control-Allow-Origin: https://evil.com and Access-Control-Allow-Credentials: true. The attacker's page then read the response. What is the root cause of this data exposure?
Select an answer first - 3
A developer at a financial services company is configuring CORS for an API that serves account balances. The API is accessed by a trusted partner web app at https://partner.example.com and by the company's own app at https://app.company.com. The developer wants to allow both origins but is concerned about security. Which configuration is the most secure and correct?
Select an answer first - 4
A security auditor is evaluating the impact of a CORS misconfiguration in a healthcare application. The application reflects any Origin header and sets Access-Control-Allow-Credentials to true. The application also uses HTTPS and sets the Secure flag on cookies. Which statement best describes the impact?
Select an answer first - 5
A company's API is accessed by a mobile app and a web dashboard. The mobile app does not send an Origin header, while the web dashboard sends Origin: https://dashboard.example.com. The API uses cookie-based authentication. The team wants to allow both clients while preventing unauthorized cross-origin reads. What should they do?
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.