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

EC-CouncilCertified Ethical Hacker

Domain 5Objective 4

API and Webhook Hacking CEH Practice Questions (Page 5)

Part of the Web Application Hacking domain, which makes up ~8% of our current practice bank. EC-Council does not publish an official question count, but from its 240-minute exam (~95–160 total, ~8–13 in this domain), expect 2–3 from this objective — we provide 46 practice questions to prepare you well beyond it. (estimate)

46questions here
10free pages
8concepts

Questions 21–25

  1. 21application · medium

    A security tester is evaluating an API that accepts a 'filename' parameter and uses it in a system command to generate a thumbnail: system('convert ' . $filename . ' -resize 100x100 /tmp/out.png'). The tester sends filename=image.png; cat /etc/passwd and the response includes the contents of /etc/passwd. Which vulnerability is this, and what is the most effective fix?

    Select an answer first
  2. 22application · medium

    An API for a document management system uses API keys passed in the 'X-API-Key' header. A security audit finds that the API key is included in the URL query string in some client applications. Which of the following is the most appropriate remediation?

    Select an answer first
  3. 23application · medium

    A developer is creating a REST API for a blogging platform. The API accepts a JSON payload to create a new post. The Post model has fields: title, body, authorId, published, and views. The developer wants to prevent users from setting the 'views' field or the 'published' field. Which approach is the most secure and maintainable?

    Select an answer first
  4. 24foundation · easy

    An API returns detailed stack traces and database error messages to clients. Which security misconfiguration does this represent?

    Select an answer first
  5. 25application · medium

    A security analyst is testing a REST API that accepts a JSON payload to search a product catalog. The payload includes a 'category' field that is later used in a MongoDB query. The analyst sends {"category": {"$ne": "nonexistent"}} and receives all products. Which finding should the analyst report, and what is the most effective immediate mitigation?

    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. “CEH” is a trademark of its owner, used for identification only.