Bitzu

312-50 ยท Web servers and web applications

Web services, APIs, webhooks and web shells

REST/SOAP/GraphQL API risks, broken object-level authorization, excessive data exposure, webhook abuse, web shell detection.

Key points

  • REST, SOAP, GraphQL APIs expose data and actions directly.
  • Broken object-level authorization: a changed object ID returns another user's data.
  • Excessive data exposure: more fields than needed. Also missing rate limits, unauthenticated endpoints.
  • Webhooks: authenticate inbound callbacks (e.g. signed payload) or they can be forged.
  • Web shell: malicious script for remote control; watch for new scripts, odd file changes, unusual processes.

Practice questions

Single choice

What does broken object-level authorization (BOLA) mean in an API?

  1. The API fails to check that the caller may access the requested object
  2. The API responds slowly under load
  3. The API uses an outdated TLS version
  4. The API returns JSON instead of XML
Show answer

Answer: A. The API fails to check that the caller may access the requested object

The API does not verify that the caller may access the specific object ID in the request. It is not about weak TLS or slow responses.

Select all that apply

Which practices secure an inbound webhook endpoint?

  1. Verifying a signature computed with a shared secret
  2. Rejecting old timestamps to stop replay
  3. Accepting requests from any source without checks
  4. Relying only on keeping the URL secret
  5. Logging the shared secret in plain text
Show answer

Answer: A. Verifying a signature computed with a shared secret, B. Rejecting old timestamps to stop replay

Verifying a signature and rejecting stale timestamps prevent forged and replayed callbacks. Accepting any caller or relying on a secret URL alone is weak.

True or false

True or false: an API that requires login is safe from broken object-level authorization.

Show answer

Answer: False

False. Authentication proves identity, but BOLA is about whether that identity may access each specific object; the check must be made per request.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module