Skip to content

Quiz: Testing & Pitfalls

Review first: Testing & Pitfalls

#

Question 1

You have one afternoon to look for BOLA in an API you're authorized to test. Which technique gives the most coverage?

#

Question 2

A developer adds GET /reports/revenue and forgets the authorization decorator. Which automated control catches this before it ships?

#

Question 3

POST /documents/{id}/transfer checks that the caller owns the document, then — in a separate query a few lines later — updates its owner. Under concurrent requests, two different users each end up "owning" the same document. What's the bug class and fix?

#

Question 4

REST endpoints enforce ownership correctly, but a pentester reads other users' orders through the GraphQL API, and also through the CSV export. What's the systemic fix?

#

Question 5

GET /invoices/{id} returns 403 when the invoice exists but belongs to someone else, and 404 when it doesn't exist. Why is this a problem for sensitive resources?

#

Question 6

All authorization tests pass, yet a pentest finds BFLA on a dozen endpoints. The fixtures show every test authenticates as admin@example.com. Which changes address this? Select ALL that apply: