
EC-CouncilWeb Application Hacking and Security
Domain 1Objective 4
API Abuse 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 63 practice questions to prepare you well beyond it. (estimate)
63questions here
13free pages
14concepts
Questions 26–30
- 26
A developer built a REST API that uses JSON Web Tokens (JWTs) for authentication. The server-side code verifies the token's signature using the algorithm specified in the token's header. During a security review, you discover that the server does not restrict which algorithms are accepted. Which of the following attacks is most likely to succeed against this API?
Select an answer first - 27
Which of the following is a common JWT vulnerability that can lead to access control bypass?
Select an answer first - 28
An API endpoint is protected by a WAF rule that blocks DELETE requests, but the attacker sends a POST request to the same URL and successfully deletes a resource. Which vulnerability is this?
Select an answer first - 29
A company has an API with multiple versions: /api/v1, /api/v2, and /api/v3. The v1 endpoint is deprecated but still accessible. A security assessment reveals that the v1 endpoint does not enforce the same authorization checks as v2 and v3. Which of the following is the most likely risk and the best mitigation?
Select an answer first - 30
A security engineer is reviewing an API that allows users to upload profile images. The API accepts a filename parameter and uses it in a filesystem path without sanitization. An attacker uploads a file with the name "../../etc/cron.d/backdoor" and the API writes the file outside the intended directory. Which two vulnerabilities are combined in this attack?
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.