Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
EC-Council logo

EC-CouncilWeb Application Hacking and Security

Domain 1Objective 4

API Abuse WAHS Practice Questions (Page 5)

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 21–25

  1. 21application · medium

    An e-commerce platform has an admin panel with a REST API. The endpoint DELETE /api/admin/products/{id} is intended for administrators only. During testing, you find that a regular authenticated user can successfully call this endpoint if they change the HTTP method from DELETE to POST. The server processes the POST request and deletes the product. Which of the following is the most likely cause and the best fix?

    Select an answer first
  2. 22expert · hard

    A security engineer is reviewing a microservices architecture where each service validates JWTs independently. One service uses a library that only verifies the signature but does not check the "aud" (audience) claim. An attacker obtains a JWT issued for a different service (e.g., the profile service) and uses it to call the admin service. The signature is valid. Which JWT validation flaw is being exploited, and what is the most effective fix?

    Select an answer first
  3. 23application · medium

    A web application at https://app.example.com makes authenticated AJAX requests to an API at https://api.example.com. The API responds with the header: Access-Control-Allow-Origin: https://app.example.com and Access-Control-Allow-Credentials: true. An attacker discovers that the API also reflects any Origin header sent in the request. Which attack becomes possible?

    Select an answer first
  4. 24application · medium

    A social media application allows users to update their profile via the endpoint PATCH /api/v1/users/me. The request body is bound directly to the user object in the database. A user discovers they can add the field "role":"admin" to the request body and their account is granted administrator privileges. Which of the following is the most appropriate remediation?

    Select an answer first
  5. 25application · medium

    A security team discovers that an attacker exploited a broken function-level authorization flaw in an API to delete user accounts over several weeks. The API logs did not record the user ID, the endpoint accessed, or the HTTP status code, so the team cannot determine which accounts were affected or when the attack occurred. Which gap is most directly highlighted?

    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.