
EC-CouncilWeb Application Hacking and Security
Domain 1Objective 4
API Abuse WAHS Practice Questions (Page 10)
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 46–50
- 46
A security engineer is reviewing a banking API that allows users to transfer money between accounts. The API endpoint POST /api/transfer takes a JSON body with 'fromAccount', 'toAccount', and 'amount'. The application authenticates the user but does not verify that the 'fromAccount' belongs to the authenticated user. An attacker discovers they can specify any account number as the 'fromAccount' and initiate a transfer. Additionally, the API accepts an optional 'feeWaiver' parameter that, when set to true, waives the transfer fee. Which of the following is the most critical vulnerability and the most appropriate remediation?
Select an answer first - 47
Which of the following is the best defense against parameter manipulation attacks?
Select an answer first - 48
A company's API has a login endpoint that is protected by rate limiting (5 attempts per minute per IP). An attacker uses a distributed botnet with thousands of IP addresses to perform a credential stuffing attack, each IP staying under the limit. The attack succeeds because the rate limit is per-IP. Which additional control would most effectively mitigate this distributed brute-force attack?
Select an answer first - 49
A developer is fixing a BOLA vulnerability in an API endpoint GET /api/v1/invoices/{invoiceId}. The current code fetches the invoice using the invoiceId from the URL and returns it without checking ownership. The developer proposes two fixes: (1) check that the invoice's customerId matches the authenticated user's ID, or (2) replace the sequential invoiceId with a UUID. Which approach is the most secure and why?
Select an answer first - 50
How can insufficient input validation in an API lead to an access control bypass?
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.