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

EC-CouncilCertified Ethical Hacker

Domain 5Objective 4

API and Webhook Hacking CEH Practice Questions (Page 7)

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 31–35

  1. 31application · medium

    A CRM system uses webhooks to sync contact information from a third-party marketing platform. The webhook endpoint parses the 'email' field and inserts it into a SQL database without sanitization. An attacker discovers they can send a webhook with a crafted 'email' value that causes the database to execute an unintended SQL command. Which of the following is the most effective defense?

    Select an answer first
  2. 32application · medium

    A developer creates a user profile update endpoint that accepts a JSON object and directly binds it to a User model. The model has fields: username, email, password, and isAdmin. A tester sends a PUT request with the body {"username":"newuser","email":"a@b.com","isAdmin":true} and the response shows the user now has administrator privileges. Which vulnerability is this, and what is the best fix?

    Select an answer first
  3. 33application · medium

    A webhook endpoint receives JSON payloads from a payment provider. The payload contains a 'callback_url' field that the application uses to send a confirmation request. A tester modifies the callback_url to point to an internal server and observes that the application sends the confirmation to that internal address. Which vulnerability is this, and what is the best mitigation?

    Select an answer first
  4. 34expert · hard

    A developer is building a webhook receiver that processes JSON payloads from a CRM. The payload contains a 'user' object with fields 'name' and 'email'. The receiver deserializes the JSON directly into a User object and then saves it to the database. A tester sends a payload with an extra field 'isAdmin': true and observes that the user is created with admin privileges. The developer needs to fix this without breaking the ability to receive new legitimate fields in the future. Which approach is best?

    Select an answer first
  5. 35expert · hard

    A company operates a webhook endpoint that receives order updates from multiple partners. Each partner has a unique shared secret. The endpoint currently verifies the HMAC signature of each request. However, an attacker has obtained one partner's secret and is replaying old, valid requests to cause duplicate order processing. The company wants to prevent replay attacks without breaking legitimate retries from partners. Which approach is most effective?

    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.